python-expert

python-expert is an agent for coding agents 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

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.

agentmods
npx agentmods add agents/armanzeroeight/fastagent-plugins/python-expert
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00042 $0.01839
Opus 5 $0.00021 $0.00920
Sonnet 5 $0.00008 $0.00368
Haiku 4.5 $0.00004 $0.00184

Measured yesterday against content hash dd4f9672002a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,839 once invoked, about $0.0002 per session on Opus 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

temporal-python-pro

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.

wshobson/agents · 56 tokens

python-performance-engineer

Python performance: profiling, memory optimization, async performance, database query optimization, caching, load testing.

yonatangross/orchestkit · 25 tokens

fenic-feature-developer

Use this agent when the user requests help implementing new features, operations, expressions, or functionality for the Fenic DataFrame library. This includes:\n\n- Adding new DataFrame operations (e.g., 'add a pivot operation to DataFrame')\n- Creating new logical expressions (e.g., 'implement a regexextract…

typedef-ai/fenic · 0 tokens

unittest-generator

Use this agent when you need to create unit tests for your code in unittest.TestCase format, organized in a tests folder with concept-based subfolders. Examples: Context: User has just written a new authentication module and needs comprehensive unit tests. user: 'I just finished writing my user authentication…

Upsonic/Upsonic · 0 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