Python Pro guides Claude through Python 3.11+ development in five steps: review the codebase, design protocols and dataclasses, implement with full type hints, write a pytest suite above 90 percent coverage, then validate with mypy strict, black and ruff.
The skill has examples for a typed function with documented errors, a validated dataclass, concurrent fetching with asyncio and httpx, pytest fixtures with parametrize and a strict mypy configuration.
What You Get
- A five-step workflow with explicit fix-and-rerun instructions for mypy, tests and ruff or black
- Examples for typed functions, a dataclass with validation, an asyncio gather pattern, pytest fixtures with parametrize and a mypy strict config
- Reference files for the type system, async patterns, the standard library, testing and packaging
- Rules such as X | None over Optional, pathlib over os.path, no mutable defaults and no bare except
- An output template with a typed module, a test file and confirmation that mypy strict passes
Common Use Cases
- Adding full type coverage to an untyped module
- Writing concurrent I/O code with asyncio
- Building a pytest suite with fixtures and parametrized cases
- Packaging a library with Poetry and pyproject.toml
- Profiling and tuning a slow Python function
What Makes It Unique
The skill puts tooling in the loop: mypy strict, pytest, black and ruff are named steps with instructions for what to do when each fails. Its constraints reflect current Python, such as union syntax with the pipe character, pathlib and dataclasses, and a coverage target above 90 percent.
Under The Hood
The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes Python source and test files in your project and runs mypy, pytest, black and ruff from the command line. The async example fetches URLs over HTTP, so code written from it can make network requests when run.