What problem does it solve?
Setting up a new bounded context in a domain-driven design codebase requires manually creating many directories and barrel export files, which is repetitive and error-prone. This Skill scaffolds the entire standard structure in one step and records the new context in the domain model graph.
Core Features & Use Cases
- Bounded Context Scaffolding: Creates the full
src/<context-name>/ layout with domain (entities, value-objects, events, services, repositories), application, and infrastructure layers.
- Barrel Export Generation: Writes index.ts files for every submodule, including a public API index that re-exports domain and application but not infrastructure.
- Domain Model Tracking: Stores the new context in the hierarchical agentdb graph and memory store so other tools can query the domain structure.
- Use Case: When splitting a monolith into bounded contexts, run the skill with a kebab-case name like
billing to instantly generate the module skeleton and register it in the domain model.
Quick Start
Ask the assistant to create a new DDD bounded context named billing using the ddd-context skill.