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.

Step-by-step process

1. Gather requirements

Installs
2
GitHub Stars
504
First Seen
Jun 20, 2026
domain — railseventstore/ecommerce