layered-architecture
Installation
SKILL.md
ABP Layered (DDD) Architecture
ABP structures a module/application into layers, each a separate .NET project. Put every type in the layer it belongs to — this keeps dependencies flowing one way (UI → Application → Domain, plus infrastructure providers).
When to Use
- Laying out the projects of an ABP solution or module.
- Deciding which project an entity, aggregate root, repository interface/impl, domain service, or DTO belongs in.
- Understanding the one-way reference flow between layers.
- Placing auditing base classes, repository interfaces vs implementations, and DTOs correctly.
When Not to Use
- Detailed domain modeling of aggregates, value objects, or specifications — use the model-domain-aggregates skill.
- Wiring the module class,
[DependsOn], or DI — use the define-application-modules skill. - Repository implementation details per data store — use the ef-core-integration or mongodb-integration skill.
- Writing application service logic — use the application-services skill.
- DTO mapping mechanics — use the map-objects-and-dtos skill.