code-architecture-best-practices
Installation
SKILL.md
Architecture Best Practices
Apply these principles when designing systems, reviewing structure, or making architectural decisions.
Core Principles (Language-Agnostic)
SOLID
- Single Responsibility: One reason to change per class/module
- Open/Closed: Open for extension, closed for modification (use interfaces/protocols)
- Liskov Substitution: Subtypes must be substitutable for base types
- Interface Segregation: Many focused interfaces > one fat interface
- Dependency Inversion: Depend on abstractions, not concretions