Skip to content
ruvnet avatar

Ddd Context

Scaffolds a DDD bounded context directory with domain, application, and infrastructure layers for a new module.

CCM score
59 of 100
skills.sh installs
739
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating src/<context-name>/ with domain subfolders for entities, value objects, events, services, and repositories
  • Generates barrel index.ts files for each domain submodule plus a public API that exposes domain and application but not infrastructure
  • Validates the context name as kebab-case and refuses to overwrite a context that already exists under src/
  • Designed for splitting a monolith into bounded contexts or starting a new subdomain, and records the context in a domain model graph

Install

$ npx -y skills add ruvnet/ruflo --skill ddd-context -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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/
    

Details

Repository
github.com/ruvnet/ruflo
Categories
Backend & APIs, Skill & Plugin Building
First seen
Jun 3, 2026

Questions

What does the ddd-context skill do?

ddd-context creates a bounded context directory structure under src with domain, application and infrastructure layers. It also generates barrel index files and records the new context in the domain model graph.

When should I use ddd-context?

Use ddd-context when starting a new subdomain, splitting a monolith into bounded contexts, or scaffolding the domain, application and infrastructure layout for a fresh module. Its public index file re-exports only domain and application, keeping infrastructure private.

How do I install the ddd-context skill?

Run npx -y skills add ruvnet/ruflo --skill ddd-context -y in a project to install it. Once installed, ddd-context lets the agent scaffold a named bounded context on demand.

Where does ddd-context stand in the Backend and APIs category?

ddd-context is listed in the Backend and APIs category next to entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It differs from them by focusing on generating DDD bounded context folders and index files.

More from ruvnet/ruflo

All 236

Similar to Ddd Context

More Backend & APIs