What problem does it solve?
Many Python projects suffer from subtle correctness bugs, inconsistent style, missing type information, weak error handling, and avoidable performance issues; this skill supplies senior-level guidance to fix those problems and raise code quality to production standards.
Core Features & Use Cases
- Code authoring: Produce PEP 8-compliant, type-annotated functions and classes with clear docstrings and sensible defaults.
- Code review & audits: Identify mutable default arguments, improper exception handling, missing type hints, and performance anti-patterns and provide concrete fixes.
- Optimization & debugging: Recommend list comprehensions, context managers, profiling-first optimizations, and safer resource handling for real-world scripts and libraries.
Quick Start
Review the attached Python file for correctness, add missing type hints and docstrings, flag security and performance issues, and suggest concrete fixes.