SOLID principles for reducing coupling and improving testability — SRP, OCP, LSP, ISP, and DIP with annotated examples. TRIGGER when: user mentions SOLID, SRP, OCP, LSP, ISP, DIP, single responsibility principle, open-closed principle, Liskov substitution, interface segregation, dependency inversion, god class, fat interface, one reason to change, extend without modifying, depend on abstractions, interface too large, reduce coupling, improve testability.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOLID principles for reducing coupling and improving testability — SRP, OCP, LSP, ISP, and DIP with annotated examples. TRIGGER when: user mentions SOLID, SRP, OCP, LSP, ISP, DIP, single responsibility principle, open-closed principle, Liskov substitution, interface segregation, dependency inversion, god class, fat interface, one reason to change, extend without modifying, depend on abstractions, interface too large, reduce coupling, improve testability.
NEUTRAL (no regression). On the OrderService god-class all baselines already name the SRP/DIP violations, split by genuine responsibility, and — notably — do not over-split into anemic classes. The skill neither helps nor harms at this difficulty; the feared dogmatic-over-split regression did not materialise. Follow-up: author a harder borderline scenario (a class that only looks multi-purpose) to find where the skill is load-bearing. Gate per skill-optimizer/release-gates.md.