python-pro · qdhenry — Claude Code subagent: features and setup
python-pro is a Claude Code subagent for Python refactoring, performance work, and complex features. It joins these coding tasks and includes tests with its changes.
no license ★ 1,357 updated 2026-03-01
.claude/agents/python-pro.mdWhat python-pro does
python-pro examines the project’s existing patterns before changing Python code. It can work with decorators, generators, and asynchronous code, and help locate performance bottlenecks.
It writes pytest tests and uses type annotations alongside static analysis with mypy and ruff. Context7 tools are available for looking up library documentation; sequential-thinking supports work on complex algorithms. Its process calls for lint, type, security, and test checks before a change is considered complete.
What it helps with
- refactor existing Python modules
- locate performance bottlenecks
- build complex features with tests
- design asynchronous I/O code
Example prompts for the agent
- Refactor this Python module and add
pytesttests. - Find the slow part of this code and suggest an optimization.
- Add asynchronous request handling with type checks.
How to install python-pro
Manually: put the files in place
.claude/agents/python-pro.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/python-pro.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/python-pro.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about python-pro
How do I install python-pro in Claude Code?
Save the subagent file at .claude/agents/python-pro.md.
What does python-pro do?
It helps write and refactor Python code, investigate performance issues, and add tests.
Which checks does python-pro use?
Its workflow includes tests, linting, type checks, and security scans. The listed tools include pytest, mypy, and ruff.
Similar subagents
All subagents for Programming languages →python-pro by other authors comes first.