010110-clean-architecture
Installation
SKILL.md
Clean Architecture
Core Principle
Dependencies flow inward. Inner layers know nothing about outer layers.
Layer Order (Outer to Inner)
- UI/Components — Presentation components
- Hooks — React hooks (if applicable)
- App/Pages — Route pages and layouts
- Actions — Entry points (Server Actions, controllers)
- Infrastructure — External integrations (DB, cache, APIs)
- Application — Use cases and services
- Domain — Business entities (pure, no dependencies)