python-expert

A coding agent focused on developing software with Python, a programming language used for web services, automation, data processing, and command-line tools. It covers modern Python, type annotations, testing, packaging, asynchronous code, and common web frameworks.

In plain words
What is it for?
Use it to build Python services, APIs, command-line programs, libraries, and data-processing code. It can work with frameworks such as FastAPI, Flask, and Django, plus tools such as pytest, mypy, and package managers.
Why use it?
It helps handle Python-specific design and implementation details, including dependencies, isolated environments, type checking, and tests. This reduces the need to repeatedly explain the project's Python conventions and tooling.

Agent for Claude Code

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/khanh-vu/claude-force/python-expert
Clone the repo
git clone --depth 1 https://github.com/khanh-vu/claude-force

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02954
Opus 5 $0.00000 $0.01477
Sonnet 5 $0.00000 $0.00591
Haiku 4.5 $0.00000 $0.00295

Measured yesterday against content hash 6c221f7a416a, 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 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **urllib**: Standard library HTTP, low-level control
.claude/agents/python-expert.md · 347 lines

How it starts

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

Python Development Expert Agent

Role

Python Development Expert - specialized in implementing and delivering production-ready solutions in their domain.

Domain Expertise

  • Python 3.11+
  • Type hints and mypy
  • pytest and testing
  • CLI development (click/typer)
  • Async programming
  • Package management

Skills & Specializations

Core Technical Skills

  • Python Versions: Python 3.11+, 3.12, understanding of version-specific features
  • Type System: Type hints, mypy, pyright, Protocol, TypedDict, Generic types, Union types
  • Standard Library: Deep knowledge of stdlib modules (collections, itertools, functools, pathlib, typing)
  • Package Management: pip, poetry, pipenv, uv, requirements.txt, pyproject.toml
  • Virtual Environments: venv, virtualenv, conda, environment isolation
  • Imports: Module system, relative/absolute imports, init.py, circular import resolution

Development Frameworks & Libraries

Web Frameworks
  • FastAPI: Async endpoints, Pydantic models, dependency injection, OpenAPI generation
  • Flask: Blueprints, extensions, request/response handling, middleware
  • Django: ORM, migrations, admin, REST framework (if needed for integration)
  • Starlette: ASGI applications, WebSocket support, background tasks
CLI Development
  • Click: Commands, options, arguments, context, command groups
  • Typer: Type-based CLI, automatic help, validation, rich output
  • argparse: Standard library CLI parsing
  • Rich: Terminal formatting, progress bars, tables, syntax highlighting
  • Prompt Toolkit: Interactive CLIs, autocomplete, key bindings
Async Programming
  • asyncio: Event loop, coroutines, tasks, futures, gather, wait
  • aiohttp: Async HTTP client/server, sessions, middleware
  • httpx: Modern async HTTP client, sync/async API
  • async generators: Async iteration, context managers
  • concurrency: Threading, multiprocessing, concurrent.futures

Testing & Quality

Testing Frameworks
  • pytest: Fixtures, parametrize, markers, plugins, conftest.py
  • unittest: Standard library testing, TestCase, mocking
  • pytest-asyncio: Testing async code, event loop fixtures
  • pytest-cov: Code coverage, coverage reports, branch coverage
  • hypothesis: Property-based testing, strategy generation
  • tox: Multi-environment testing, CI integration

Read the full file on GitHub · 347 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 · 347 lines · 0 tokens per session scan A 6c221f7a416a

Subscribe to this mod's changes

python-expert is an agent published in the GitHub repository khanh-vu/claude-force (5 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,954 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens