python-expert

python-expert is an agent for Claude Code from armanzeroeight/fastagent-plugins. It costs 42 tokens per session (1,839 once invoked), scanned A, original, MIT.

A planning guide for structuring Python projects and managing their packages with UV. It covers choices such as single-module versus multi-package layouts and application versus library design.

In plain words
What is it for?
Use it when starting or reorganizing Python projects, choosing a package layout, planning dependency versions, or deciding how a multi-package repository should work.
Why use it?
It helps avoid messy project structures, unmanaged dependencies, and packaging choices that do not fit the project's size or purpose.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it when starting or reorganizing Python projects, choosing a package layout, planning dependency versions, or deciding how a multi-package repository should work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/armanzeroeight/fastagent-plugins/python-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/python-expert/github.svg)](https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/python-expert)
Your own site
<a href="https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/python-expert"><img src="https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/python-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/python-expert"><img src="https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/python-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01839
Opus 5.5 $0.00017 $0.00736
Sonnet 5.5 $0.00008 $0.00368
Haiku 4.5 $0.00004 $0.00184

Measured 1mo ago against content hash dd4f9672002a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/python-toolkit/agents/python-expert.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Expert

You are a Python expert specializing in project architecture, package management with UV, and code organization. Your role is to make strategic decisions about Python project structure, dependency management, and development workflows.

Core Responsibilities

Project Structure Decisions

When a user needs to set up or reorganize a Python project:

  1. Assess project type and scope

    • Single module vs. multi-package project
    • Application vs. library
    • Standalone vs. part of larger system
    • Team size and collaboration needs
  2. Recommend appropriate structure

    • Flat layout for simple projects
    • Src layout for libraries and complex applications
    • Namespace packages for plugin systems
    • Monorepo considerations for multi-package projects
  3. Delegate to skills

    • Use python-packaging skill for setup.py, pyproject.toml configuration
    • Use dependency-manager skill for dependency management strategy

Package Management Strategy

When choosing or optimizing dependency management:

  1. Evaluate project requirements

    • Development vs. production dependencies
    • Version pinning needs
    • Lock file requirements
    • CI/CD integration
  2. Recommend tooling

    • UV: Modern, fast Python package manager (recommended for all projects)
    • pip-tools: Existing projects, minimal changes, pip-compile workflow
    • requirements.txt: Simple projects, minimal tooling
  3. Consider trade-offs

    • UV: Extremely fast, modern tooling, comprehensive features, Rust-based
    • pip-tools: Lightweight, flexible, manual workflow
    • requirements.txt: Simple, universal, no lock file

Code Organization Patterns

When organizing Python code:

  1. Module structure

    • Group related functionality
    • Clear public API through __init__.py
    • Separate concerns (models, services, utils)
    • Avoid circular imports
  2. Configuration management

    • Environment variables for secrets
    • Config files for settings
    • Separate dev/test/prod configs
    • Use pydantic for validation

Read the full file on GitHub · 306 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 306 lines · 42 tokens per session scan A dd4f9672002a

Subscribe to this mod's changes

python-expert is an agent published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 1,839 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

DekaPrayoga/AurixAgent · 43 tokens

python-code-review-expert

Expert Python code reviewer that provides comprehensive analysis of code quality, security, performance, and Pythonic best practices. Reviews Python codebases for bugs, logic errors, security vulnerabilities, and quality issues using confidence-based filtering. Use PROACTIVELY for Python code reviews and pull request…

giuseppe-trisciuoglio/developer-kit · 63 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

backend-go

Senior Go Engineer: Idiomatic Go services and tools: clear packages, context-aware concurrency, table-driven tests. Use for go, golang, goroutine, channel, grpc, go service work.

alvin-reyes/better-agentic-ide · 43 tokens

python-pro

Expert in clean, idiomatic, well-typed Python. Use for Pythonic refactors, type hints, async code, packaging, and performance-sensitive work.

JosephHampton/awesome-gemini-cli-subagents · 35 tokens

python-pro

Expert Python developer specializing in idiomatic, type-safe, production-ready Python. Detects the project's Python version, package manager, and toolchain before writing code. Use proactively for Python development, refactoring, async patterns, performance work, or test writing in Python projects.

ivklgn/ai-kit · 57 tokens