What problem does it solve?
Clean Architecture helps you avoid tightly coupled codebases where business rules, infrastructure concerns, and API wiring become entangled, making changes risky and refactors expensive.
Core Features & Use Cases
- Dependency inversion by design: Enforces inward dependencies so the Domain layer stays framework-agnostic and stable.
- Domain owns behavior: Encapsulates business rules in entities and domain logic instead of scattering them across handlers or endpoints.
- Use cases as unit of work: Implements commands/queries as focused Application handlers that coordinate domain objects and persistence.
- Infrastructure as a plugin: Keeps EF Core, external services, and persistence implementations behind abstractions so you can swap providers safely.
- Thin API layer: Maps HTTP to use cases and returns responses without embedding business logic.
Quick Start
Load this skill when you are building a .NET application and want to structure Domain, Application, Infrastructure, and Api projects using dependency inversion and use-case handlers.