DDD Aggregate
Skill Verified ActiveScaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs
To rapidly generate the foundational code structure for aggregate roots in DDD projects, ensuring consistency and adherence to best practices.
Features
- Scaffolds aggregate root entity with ID, constructor, and domain methods.
- Generates immutable value objects for IDs and other properties.
- Creates repository interfaces for aggregate persistence.
- Generates domain event files for aggregate lifecycle events.
- Provides unit test stubs for entities and value objects.
- Updates barrel exports for module organization.
- Stores domain model information in agent memory.
Use Cases
- When starting a new aggregate root in a DDD project.
- To ensure consistent structure and naming conventions for DDD artifacts.
- When onboarding new developers to a DDD project by providing a clear starting point.
Non-Goals
- Implementing the repository infrastructure (persistence layer).
- Providing business logic beyond basic invariant validation.
- Generating user interface components or controllers.
Workflow
- Validate that the target context directory exists.
- Execute pre-task hook.
- Create aggregate root entity file.
- Create value object files.
- Create repository interface file.
- Create domain event files.
- Create unit test stubs.
- Update barrel exports.
- Store aggregate in domain model graph.
- Execute post-task hook.
Practices
- Domain-Driven Design
- Code generation
- Testing
Installation
First, add the marketplace
/plugin marketplace add ruvnet/ruflo/plugin install ruflo-ddd@rufloQuality Score
VerifiedTrust Signals
Similar Extensions
Ddd Context
98Create and manage a DDD bounded context with standard directory structure
Spec to Repo
100Use when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea into code', 'bootstrap a project', 'I have requirements and need a codebase', or provides a natural-language project specification and expects a complete, runnable repository. Stack-agnostic: Next.js, FastAPI, Rails, Go, Rust, Flutter, and more.
V3 Ddd Architecture
100Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.
Domain Driven Design
98Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", or "strategic design". Also trigger when splitting a monolith into services, defining microservice boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture layers, see clean-architecture. For complexity, see software-design-philosophy.
Ubiquitous Language
95Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
Cli Creator
100Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.