What problem does it solve?
Helps developers and reviewers apply Pythonic idioms, typing, error handling, and project layout so code is more readable, maintainable, and reliable.
Core Features & Use Cases
- Style & Readability: Guidance on PEP 8, import ordering, and idiomatic constructs to make code easier to understand.
- Typing & Interfaces: Recommendations for modern type hints, TypeVar, Protocol-based duck typing, and gradual typing strategies.
- Error Handling & Resource Management: Patterns for EAFP, specific exception handling, exception chaining, and context managers.
- Concurrency & Performance: Advice on when to use threads, processes, async/await, generators, and memory optimizations.
- Packaging & Tooling: Best practices for project layout, init exports, and integrating formatting, linting, testing, and type-checking tools.
- Use Case: Ideal when writing new modules, performing code reviews, or refactoring to improve maintainability and performance.
Quick Start
Ask the skill to review a Python module and produce a prioritized list of readability, typing, and performance improvements.