
Ddd Context
- 642 installs
- 67k repo stars
- Updated August 4, 2026
- ruvnet/ruflo
ddd-context is a Claude Code skill that scaffolds a Domain-Driven Design bounded-context directory structure with standard domain, application, and infrastructure folders for developers who are starting a new subdomain o
About
ddd-context is a scaffolding skill for Domain-Driven Design bounded contexts in the ruflo repo. It parses a kebab-case context name, validates naming, and creates the standard domain/application/infrastructure directory layout—or lists existing contexts when no name is passed. The skill integrates with Claude Flow memory and AgentDB hierarchical store tools to persist context metadata for later agent retrieval. Developers reach for ddd-context when bootstrapping a fresh module, carving a monolith into bounded contexts, or enforcing consistent folder conventions before writing domain logic. It focuses on structure creation, not business rule implementation.
- ddd-context
Ddd Context by the numbers
- 642 all-time installs (skills.sh)
- +10 installs in the week ending Jul 26, 2026 (Skillselion tracking)
- Ranked #578 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill ddd-contextAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 642 |
|---|---|
| repo stars | ★ 67k |
| Last updated | August 4, 2026 |
| Repository | ruvnet/ruflo ↗ |
How do you scaffold DDD bounded context folders?
Use ddd-context for development tasks
Who is it for?
Backend developers adopting DDD who need repeatable bounded-context folder scaffolding before implementing domain code.
Skip if: Teams that only need CRUD endpoints without domain modeling or a single flat src/ layout.
When should I use this skill?
User starts a new subdomain, splits a monolith, or asks for DDD bounded-context directory structure.
What you get
Kebab-case bounded-context directory tree, listed existing contexts, stored context metadata
- Bounded-context directory tree
- Context listing output
By the numbers
- Scaffolds 3 standard DDD layers: domain, application, and infrastructure
Files
Create a bounded context directory structure for the given context name.
Parse $ARGUMENTS as the context name (kebab-case). If empty, list existing contexts.
Steps
1. Validate name: Ensure the context name is kebab-case and does not already exist under src/.
2. Create directory structure:
src/<context-name>/
domain/
entities/
value-objects/
events/
services/
repositories/
application/
infrastructure/3. Generate index files:
src/<context-name>/domain/entities/index.ts-- barrel export for entitiessrc/<context-name>/domain/value-objects/index.ts-- barrel export for value objectssrc/<context-name>/domain/events/index.ts-- barrel export for domain eventssrc/<context-name>/domain/services/index.ts-- barrel export for domain servicessrc/<context-name>/domain/repositories/index.ts-- barrel export for repository interfacessrc/<context-name>/domain/index.ts-- re-export all domain submodulessrc/<context-name>/application/index.ts-- barrel export for application servicessrc/<context-name>/infrastructure/index.ts-- barrel export for infrastructure implementationssrc/<context-name>/index.ts-- public API of the bounded context (re-exports domain and application only, NOT infrastructure)
4. Store in domain model graph:
mcp__claude-flow__agentdb_hierarchical-store --parent "domain" --child "context:<context-name>" --relation "contains"
mcp__claude-flow__memory_store --key "ddd-context-<context-name>" --value "Created bounded context" --namespace tasks5. Report: Confirm the context was created and list the generated files.
Related skills
How it compares
Pick ddd-context over generic folder generators when you need DDD-specific bounded-context conventions tied to Claude Flow memory storage.
FAQ
What directory layout does ddd-context create?
ddd-context scaffolds a standard Domain-Driven Design bounded-context tree with separate domain, application, and infrastructure folders for the given kebab-case context name, giving backend code a consistent modular layout.
What happens if ddd-context gets no context name?
ddd-context lists existing bounded contexts instead of creating folders, helping developers discover already-scaffolded modules before adding another subdomain.