Ddd Aggregate
Scaffolds an aggregate root with entity, value objects, repository interface, domain events, and tests.
- CCM score
- 58 of 100
- skills.sh installs
- 751
- GitHub stars
- 82.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full aggregate scaffold inside an existing bounded context, from entity through unit test stubs
- Creates an entity, an ID value object, a repository interface,
createdandupdateddomain events, and a test file - Updates barrel exports and records the aggregate and its context in the domain model graph
- Designed for adding a new business concept that owns invariants to a bounded context under
src/
Install
$ npx -y skills add ruvnet/ruflo --skill ddd-aggregate -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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:
Details
- Repository
- github.com/ruvnet/ruflo
- Category
- Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the ddd-aggregate skill do?
ddd-aggregate scaffolds an aggregate root inside an existing bounded context, with an entity, value objects, a repository interface, domain events and unit test stubs. It fits when you add a new aggregate that owns business invariants, or when you need the entity, repository and events boilerplate generated in one pass.
How do I install the ddd-aggregate skill?
Run npx -y skills add ruvnet/ruflo --skill ddd-aggregate -y in your project to install ddd-aggregate. Once installed, ddd-aggregate takes the arguments context and aggregate name in kebab-case, and the context folder under src must already exist.
Where does ddd-aggregate sit in the Backend & APIs category?
ddd-aggregate is listed under Backend & APIs on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Its distinct focus is generating the domain layer of a bounded context rather than wiring up a specific cloud service.
Does ddd-aggregate need any tools or accounts?
ddd-aggregate's SKILL.md lists allowed tools including Bash, Read, Write, Edit, Grep and Glob, plus ruflo memory and hooks tools for storing the aggregate in a domain model graph. It also expects Node tooling, since its hook steps run through npx @claude-flow/cli.
More from ruvnet/ruflo
All 236- Memory Search751
- Dependency Check749
- Neural Train749
- Swarm Init749
- Security Scan748
- Trader Backtest748
- Adr Review747
- Horizon Track747
- Agentdb Query746
- Monitor Stream746
- Daa Agent745
- Loop Worker745
- Memory Bridge745
- Trader Signal745
- Autopilot Predict744
- Doc Gen744
- Safety Scan744
- Workflow Run744
- Adr Create743
- Chat Format743
- Create Plugin743
- Git Workflow743
- Intelligence Route743
- Tdd Workflow743
Similar to Ddd Aggregate
More Backend & APIsruflo-dddPluginruvnet/ruflo82.4K starsDomain-Driven Design scaffolding — bounded contexts, aggregate roots, domain events, and anti-corruption layers
ddd-contextSkillruvnet/ruflo739 installsScaffolds a DDD bounded context directory with domain, application, and infrastructure layers for a new module.
domain-driven-designSkillyonatangross/orchestkit1.3K installsTactical Domain-Driven Design patterns for modeling rich domains with entities, value objects, and aggregates.
ddd-tactical-patternsSkillsickn33/agentic-awesome-skills143 installsConcrete guidance for modeling domain rules in code with entities, value objects, aggregates, repositories, and domain events.
BuilderSkillaj-geddes/claude-code-bmad-skills222 installsScaffolds custom BMAD agents, workflows, and templates to extend the framework with domain-specific components.