What problem does it solve?
Adding a new aggregate to an existing bounded context requires creating many coordinated files—entity, value objects, repository interface, domain events, and tests—which is repetitive and error-prone when done by hand.
Core Features & Use Cases
- Aggregate Root Scaffolding: Generates a TypeScript aggregate root entity with invariant validation, identity-based equality, and domain methods.
- Supporting Domain Artifacts: Creates immutable ID value objects, a repository interface (findById, save, delete), and past-tense domain events for created/updated lifecycle.
- Test Stubs and Graph Tracking: Produces unit test stubs with behavior-style naming and records the aggregate in a hierarchical domain model graph via memory hooks.
- Use Case: When modeling a new business concept like an order in an existing sales bounded context, run the skill to generate the full entity + repository + events triplet with consistent structure.
Quick Start
Ask the AI to scaffold a new aggregate by providing the bounded context and aggregate name, for example: create a ddd aggregate named order in the sales context.