0150-python-design-patterns
CommunityRefactor toward clean, testable Python services.
Software Engineering#refactoring#design patterns#python#testability#composition#dependency injection#separation of concerns
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves maintainability problems caused by entangled responsibilities, tight coupling, and overly complex classes/functions by guiding you toward simpler, testable Python architecture decisions.
Core Features & Use Cases
- Single Responsibility & Separation of Concerns: Split HTTP/API handling, business rules, and data access into layers so changes in one area don’t cascade everywhere.
- KISS & Rule of Three: Avoid premature abstraction while still refactoring divergent duplication into the right level of structure.
- Composition over Inheritance: Build flexible, mock-friendly behavior by combining collaborators instead of hard-to-test class hierarchies.
- Practical refactoring & PR review guidance: Identify structural issues such as leaking internal types, mixed I/O and business logic, and layering violations.
Quick Start
Use the skill to refactor a monolithic Python handler into a service + repository structure by applying KISS, SRP, and dependency injection.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0150-python-design-patterns Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0150-python-design-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.