plugins/ruflo-ddd/commands/ddd.md
$ARGUMENTS
Route DDD commands based on the subcommand:
ddd context create <name>Scaffold a new bounded context directory structure. Invoke the /ddd-context skill with the context name.
ddd context listList 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:
src/<context>/domain/events/<name>.event.tsddd validateCheck domain boundary violations. Invoke the /ddd-validate skill.
ddd mapVisualize the context map with relationships:
src/Parse $ARGUMENTS to extract the subcommand and its arguments. If no arguments are provided, show the help text listing all subcommands.