j5ik2o-ddd-module-pattern
Installation
SKILL.md
DDD Module Pattern
A DDD module should hide implementation detail and expose a small language-shaped API.
Workflow
-
Identify the bounded context or subdomain the module represents.
-
Group aggregates, value objects, domain services, policies, and events by domain concept.
-
Expose only stable commands, queries, ports, and domain types needed by other modules.
-
Keep persistence mapping and framework glue outside the domain module or behind adapters.
-
Use language visibility features to enforce the boundary.
Checks
- Module names should be domain terms, not technical layers alone.