ddd-architecture
Installation
SKILL.md
Domain-Driven Design (DDD) Architecture
Rules
Layered Architecture
- Use four-layer architecture: Presentation → Application → Domain ← Infrastructure
- Domain layer MUST be pure TypeScript with NO framework dependencies
- ALL dependencies point inward toward the Domain layer
- Do NOT allow Domain layer to depend on Application, Infrastructure, or Presentation
Dependency Direction
- Presentation MAY depend on Application and Shared layers
- Application MAY depend on Domain and Shared layers
- Infrastructure MUST depend ONLY on Domain layer interfaces
- Domain MUST NOT depend on any other layer