
Python Pro
Write type-safe, async-first Python 3.11+ code with pytest suites and mypy/ruff checks
- Repository
- Jeffallan/claude-skills
- Stars
- 12,176
- Licence
- MIT
- Files
- 6 files
What it does
When installed, the agent works like a Python specialist: it writes code with full type hints, uses async/await for I/O-heavy work, and follows dataclass, pathlib and context-manager conventions. It can also set up strict mypy configuration, write pytest tests with fixtures and mocking, and run black and ruff to tidy the code. Reference notes on type system, async, standard library, testing and packaging are loaded when relevant.
Great for
- Developers building or refactoring Python 3.11+ projects who want stricter typing and tests
- Teams adopting mypy --strict, pytest and ruff/black as part of their workflow
- Developers writing async I/O code who want consistent patterns
Skip it if
- Projects on older Python versions (below 3.11), since the guidance assumes 3.11+ features
- Code that must be reviewed line by line without the agent running tools, because the workflow asks it to run mypy, pytest, black and ruff, which execute code in your environment
Try asking
- “Add complete type hints and mypy --strict configuration to my Python service”
- “Write a pytest suite with fixtures and mocks for this module”
- “Convert these synchronous HTTP calls to concurrent async code with httpx”
- “Create a dataclass-based config loader with validation and tests”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 6 original files, the MIT licence and an attribution note.
python-pro.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip python-pro.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip python-pro.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Point the agent at an existing project folder so it can analyse structure and run the validation tools against real code.
- Review generated code before running it, especially if it executes tests or tools against production data.
- Ask for a specific scope (one module or function) to keep type-checking and coverage iterations focused.
What's inside
- references/async-patterns.md
- references/packaging.md
- references/standard-library.md
- references/testing.md
- references/type-system.md
- SKILL.md
Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.