What problem does it solve?
This Skill helps you fix overly complex or tightly coupled Python code so it becomes easier to test, maintain, and extend.
Core Features & Use Cases
- KISS and SRP: Simplifies solutions and enforces single responsibility to reduce accidental complexity.
- Composition and Separation of Concerns: Guides layering (API/handlers → services → repositories) and choosing composition over inheritance.
- Refactoring Heuristics: Applies practical triggers like function size limits, the rule of three before abstraction, and dependency injection to improve testability.
Use cases: designing a new service from scratch; refactoring a God class or monolithic function; reviewing a pull request for tight coupling, leaked internal types, or entangled I/O and business logic; choosing inheritance vs composition for a class hierarchy.
Quick Start
Use the python-design-patterns skill to refactor this module by splitting responsibilities, removing layer violations, and replacing inheritance with composition where appropriate.