Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

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-context

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs642
repo stars67k
Last updatedAugust 4, 2026
Repositoryruvnet/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

SKILL.mdMarkdownGitHub ↗

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 entities
  • src/<context-name>/domain/value-objects/index.ts -- barrel export for value objects
  • src/<context-name>/domain/events/index.ts -- barrel export for domain events
  • src/<context-name>/domain/services/index.ts -- barrel export for domain services
  • src/<context-name>/domain/repositories/index.ts -- barrel export for repository interfaces
  • src/<context-name>/domain/index.ts -- re-export all domain submodules
  • src/<context-name>/application/index.ts -- barrel export for application services
  • src/<context-name>/infrastructure/index.ts -- barrel export for infrastructure implementations
  • src/<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 tasks

5. 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.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.