What problem does it solve?
This Skill helps developers write maintainable, type-safe Python while avoiding common implementation and design mistakes.
Core Features & Use Cases
- Type-Safe APIs: Apply type hints consistently to function signatures and use appropriate typing constructs for complex values.
- Maintainable Design: Use dependency injection, functional patterns, and simple functions to reduce coupling and unnecessary complexity.
- Robust Error Handling: Model expected failures with a Result pattern and avoid unsafe practices such as bare exception handlers, mutable defaults, wildcard imports, unexplained type ignores, and global state.
- Use Case: Apply these guidelines when adding or refactoring Python files to improve readability, testability, and reliability.
Quick Start
Use the Python skill to review the current Python changes for type-safety issues, dependency-coupling problems, and listed anti-patterns.