clean-architecture
Installation
SKILL.md
When to Use
- Designing a new project structure from scratch
- Refactoring existing code to clean architecture
- Creating domain entities, use cases, or repositories
- Defining boundaries between layers
- Implementing dependency injection patterns
Core Principles
| Principle | Description |
|---|---|
| Dependency Rule | Dependencies point inward. Inner layers know nothing about outer layers |
| Entities | Enterprise business rules, independent of application |
| Use Cases | Application business rules, orchestrate entities |
| Interface Adapters | Convert data between use cases and external agents |
| Frameworks & Drivers | External tools (DB, Web, UI) - outermost layer |
Layer Structure
Related skills