What problem does it solve?
Design, review, refactor, and test repository Python code using typed Python (latest stable) patterns, boundary validation, and structured error handling. Use when tasks involve Python files, pytest/ruff/mypy workflows, packaging/tooling decisions, dataclass or Pydantic modeling, or Python service/repository logic.
Core Features & Use Cases
- Enforce typing discipline: promote typing annotations, modern syntax, and strict contracts across Python code.
- Boundary validation and structured error handling: provide robust data validation and error pathways.
- Migration guidance: help move code toward newer Python versions with minimal disruption.
- Use Case: refactor a service to adopt dataclasses and Pydantic v2 models, while maintaining tests.
Quick Start
Identify the project's Python version from pyproject.toml, then propose a minimal, typed refactor plan that improves typing coverage and boundary validation.