Load: view .claude/skills/solid-principles/SKILL.md
SOLID principles checklist with detailed Java examples. Each principle includes violation examples, refactored solutions, and detection patterns.
- "Check this class for SOLID violations"
- "Is this class doing too much?" (SRP)
- "How do I add new types without modifying code?" (OCP)
- "Why shouldn't Square extend Rectangle?" (LSP)
- "This interface is too big" (ISP)
- "How to make this testable?" (DIP)
> view .claude/skills/solid-principles/SKILL.md
> "Review this UserService for SOLID principles"
→ Identifies SRP violation, suggests extraction of validation and notification
| Principle | Key Question |
|---|---|
| Single Responsibility | Does it have one reason to change? |
| Open/Closed | Can I extend without modifying? |
| Liskov Substitution | Can subtypes replace base types? |
| Interface Segregation | Are clients forced to implement unused methods? |
| Dependency Inversion | Does it depend on abstractions? |
design-patterns- Implementation patternsclean-code- DRY, KISS, YAGNIjava-code-review- Full review checklist