
Ddd Aggregate
Generates a complete DDD aggregate root with all the surrounding infrastructure: entity class with invariant validation, value objects including an ID type, repository interface, domain events for creation and updates, and test stubs. It wires everything into your bounded context's folder structure and updates barrel exports. The skill also hooks into Claude Flow's memory and neural training system to track what it built. Useful when you're working in a structured DDD codebase and want to skip the boilerplate of setting up a new aggregate by hand. It assumes you already have a bounded context scaffolded under src and follows strict naming conventions.
- skills.sh installs
- 751
- GitHub stars
- 81.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ruvnet/ruflo --skill ddd-aggregate --agent claude-codeInstalls into .claude/skills of the current project.
Files
Scaffold a complete aggregate root inside a bounded context.
Parse $ARGUMENTS as <context-name> <aggregate-name> (both kebab-case). The context must already exist under src/.
Steps
-
Validate: Confirm
src/<context>/domain/exists. If not, suggest running/ddd-context <context>first. -
Pre-task hook:
npx @claude-flow/cli@latest hooks pre-task --description "DDD aggregate: <aggregate-name> in <context>" -
Create aggregate root entity:
- File:
src/<context>/domain/entities/<aggregate-name>.entity.ts - Include: unique ID field, constructor with invariant validation, domain methods that enforce business rules,
equals()based on identity - Export a TypeScript class extending or implementing a base
AggregateRootinterface
- File:
-
Create value objects:
- File:
src/<context>/domain/value-objects/<aggregate-name>-id.value-object.ts - Include: immutable ID value object with factory method and validation
- Add additional value objects as properties of the aggregate suggest them
- File:
Sponsors
Details
- Repository
- github.com/ruvnet/ruflo
- Categories
- Testing & QA, Automation & Workflows
- First seen
- Jun 3, 2026
More from ruvnet/ruflo
All 236- Memory Search751
- Dependency Check749
- Neural Train749
- Swarm Init749
- Security Scan748
- Cost Optimize747
- Horizon Track747
- Agentdb Query746
- Monitor Stream746
- Trader Backtest746
- Adr Review745
- Daa Agent745
- Loop Worker745
- Memory Bridge745
- Trader Signal745
- Autopilot Predict744
- Doc Gen744
- Safety Scan744
- Workflow Run744
- Chat Format743
- Create Plugin743
- Git Workflow743
- Intelligence Route743
- Tdd Workflow743