model-domain-aggregates

Installation
SKILL.md

Modeling the ABP Domain

The domain layer holds your business objects and core rules. ABP provides base classes for the standard DDD building blocks: entities, aggregate roots, value objects, domain services, and specifications. ABP does not force DDD, but makes these patterns easier to apply.

When to Use

  • Designing entities (Entity<TKey>) and aggregate roots (AggregateRoot<TKey>) with encapsulated invariants.
  • Choosing GUID keys generated via IGuidGenerator.
  • Modeling immutable value objects (ValueObject + GetAtomicValues()).
  • Writing domain services (DomainService) for cross-aggregate or service-dependent logic.
  • Building reusable, composable filters with Specification<T>.
  • Raising local or distributed domain events from an aggregate.

When Not to Use

  • Choosing which project a domain type lives in / overall layering — use the layered-architecture skill.
  • Wiring the module class, [DependsOn], or DI registration — use the define-application-modules skill.
  • Repository implementations and data-store specifics — use the ef-core-integration or mongodb-integration skill.
  • Mapping entities to DTOs — use the map-objects-and-dtos skill.
Installs
27
GitHub Stars
32
First Seen
Aug 15, 2026