domain
Installation
SKILL.md
Domain Builder
When to use
Use this skill when asked to create a new domain module (bounded context) in the domains/ directory, or to add new aggregates/commands/events to an existing domain.
Reference
Two patterns exist in the codebase:
- Simple (todo): Everything in a single file
lib/{domain}/todo.rb - Structured (crm, ordering, etc.): Separate files for commands, events, aggregates, and handlers
Use the structured pattern for any non-trivial domain. The simple pattern is only for demos.