/ddd
Domain-Driven Design scaffolding and boundary enforcement
> /plugin marketplace add ruvnet/rufloHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/ddd
Context preview
What this command does when you run it.
Domain-Driven Design scaffolding and boundary enforcement
Command definition
ddd.mdname: ddd
description: Domain-Driven Design scaffolding and boundary enforcement
$ARGUMENTS
Route DDD commands based on the subcommand:
Subcommands
`ddd context create <name>`
Scaffold a new bounded context directory structure. Invoke the `/ddd-context` skill with the context name.
`ddd context list`
List all bounded contexts by scanning `src/*/domain/` directories:
find src -maxdepth 2 -name "domain" -type d | sed 's|src/||;s|/domain||'
`ddd aggregate <context> <name>`
Generate an aggregate root with entity, value objects, repository interface, domain events, and unit test stubs. Invoke the `/ddd-aggregate` skill with `<context> <name>`.
`ddd event <context> <name>`
Create a domain event class in the target context:
- File: `src/<context>/domain/events/<name>.event.ts`
- Include: event name (past tense), timestamp, payload interface, static factory method
- Register the event in the context's event index
`ddd validate`
Check domain boundary violations. Invoke the `/ddd-validate` skill.
`ddd map`
Visualize the context map with relationships: 1. Scan all bounded contexts under `src/` 2. Analyze imports to detect inter-context dependencies 3. Output a context map showing:
- Each bounded context and its aggregates
- Relationships: upstream/downstream, ACL, shared kernel, published language
- Boundary violations (direct imports instead of events/ACL)
Parsing
Parse `$ARGUMENTS` to extract the subcommand and its arguments. If no arguments are provided, show the help text listing all subcommands.
Read more
name: ddd description: Domain-Driven Design scaffolding and boundary enforcement
$ARGUMENTS
Route DDD commands based on the subcommand:
Subcommands
`ddd context create <name>`
Scaffold a new bounded context directory structure. Invoke the `/ddd-context` skill with the context name.
`ddd context list`
List all bounded contexts by scanning `src/*/domain/` directories:
find src -maxdepth 2 -name "domain" -type d | sed 's|src/||;s|/domain||'
`ddd aggregate <context> <name>`
Generate an aggregate root with entity, value objects, repository interface, domain events, and unit test stubs. Invoke the `/ddd-aggregate` skill with `<context> <name>`.
`ddd event <context> <name>`
Create a domain event class in the target context:
- File: `src/<context>/domain/events/<name>.event.ts`
- Include: event name (past tense), timestamp, payload interface, static factory method
- Register the event in the context's event index
`ddd validate`
Check domain boundary violations. Invoke the `/ddd-validate` skill.
`ddd map`
Visualize the context map with relationships: 1. Scan all bounded contexts under `src/` 2. Analyze imports to detect inter-context dependencies 3. Output a context map showing:
- Each bounded context and its aggregates
- Relationships: upstream/downstream, ACL, shared kernel, published language
- Boundary violations (direct imports instead of events/ACL)
Parsing
Parse `$ARGUMENTS` to extract the subcommand and its arguments. If no arguments are provided, show the help text listing all subcommands.
An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.
Repo: ruvnet/ruflo
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

