Ddd context

From ruvnet/ruflo · View interactive version

Ddd context is an AI agent skill from the GitHub repository ruvnet/ruflo. Create and manage a DDD bounded context with standard directory structure. Use when starting a new subdomain, splitting a monolith into bounded contexts, or scaffolding the domain/application/infrastructure layout for a fresh module.

How to use this skill

Skill file

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/.
  1. Create directory structure:

```

src/<context-name>/

domain/

entities/

value-objects/

events/

services/

repositories/

application/

infrastructure/

```

  1. Generate index files:
  1. Store in domain model graph:

```

mcpplugin_ruflo-core_rufloagentdb_hierarchical-store({ key: "domain/context-<context-name>", value: "Bounded context <context-name> (parent: domain)", tier: "semantic" })

mcpplugin_ruflo-core_rufloagentdb_causal-edge({ sourceId: "entity:domain", targetId: "entity:context-<context-name>", relation: "contains" })

mcpplugin_ruflo-core_ruflomemory_store({ key: "ddd-context-<context-name>", value: "Created bounded context", namespace: "tasks" })

```

  1. Report: Confirm the context was created and list the generated files.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.