Agent skill

Ddd Aggregate

by ruvnet in ruvnet/ruflo

Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs.

MITAuto-check: notesDevelopment

Install Ddd Aggregate

skills CLI
$ npx skills add ruvnet/ruflo --skill ddd-aggregate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo ddd-aggregate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-ddd/skills/ddd-aggregate .claude/skills/ddd-aggregate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ddd-aggregate
GitHub stars
74k
Token cost
~774 tokens
SKILL.md length
216 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs.

  • Works in 10 steps: Validate: Confirm src//domain/ exists.… → Pre-task hook: npx… → Create aggregate root entity → …
  • Adding a new aggregate to an existing bounded context
  • Calls npx
  • Modeling a new business concept that owns invariants

What it does

Ddd Aggregate is an agent skill from ruvnet/ruflo. Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs. Use when adding a new aggregate to an existing bounded context, modeling a new business concept that owns invariants, or generating the boilerplate for an entity + repo + events triplet.

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Domain-driven design and Project scaffolding. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Adding a new aggregate to an existing bounded context
  • Modeling a new business concept that owns invariants
  • Generating the boilerplate for an entity + repo + events triplet

Example prompts

  • “/ddd-aggregate”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit, Grep, Glob, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, mcp__plugin_ruflo-core_ruflo__hooks_post-task

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Validate: Confirm src//domain/ exists. If not, suggest running /ddd-context first.
  2. Pre-task hook: npx @claude-flow/cli@latest hooks pre-task --description "DDD aggregate: in "
  3. Create aggregate root entity
  4. Create value objects
  5. Create repository interface
  6. Create domain events
  7. Create unit test stubs
  8. Update barrel exports: Add new files to the relevant index.ts barrel files.
  9. Store in domain model graph
  10. Post-task hook: npx @claude-flow/cli@latest hooks post-task --task-id "ddd-aggregate-" --success true --train-neural true

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • mcp__plugin_ruflo-core_ruflo__memory_store
    • mcp__plugin_ruflo-core_ruflo__memory_search
    • mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store
    • mcp__plugin_ruflo-core_ruflo__hooks_pre-task

    …and 1 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ddd Aggregate loads about 774 tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~774

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit, Grep, Glob, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-c

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 216 words, ~774 tokens.

Download SKILL.mdSave it as .claude/skills/ddd-aggregate/SKILL.md (or your agent's skills folder).
name
ddd-aggregate
description
Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs. Use when adding a new aggregate to an existing bounded context, modeling a new business concept that owns invariants, or generating the boilerplate for an entity + repo + events triplet.
allowed-tools
Bash, Read, Write, Edit, Grep, Glob, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, mcp__plugin_ruflo-core_ruflo__hooks_post-task
argument-hint
<context> <aggregate-name>

Scaffold a complete aggregate root inside a bounded context.

Parse $ARGUMENTS as <context-name> <aggregate-name> (both kebab-case). The context must already exist under src/.

Steps

  1. Validate: Confirm src/<context>/domain/ exists. If not, suggest running /ddd-context <context> first.

  2. Pre-task hook: npx @claude-flow/cli@latest hooks pre-task --description "DDD aggregate: <aggregate-name> in <context>"

  3. Create aggregate root entity:

    • File: src/<context>/domain/entities/<aggregate-name>.entity.ts
    • Include: unique ID field, constructor with invariant validation, domain methods that enforce business rules, equals() based on identity
    • Export a TypeScript class extending or implementing a base AggregateRoot interface
  4. Create value objects:

    • File: src/<context>/domain/value-objects/<aggregate-name>-id.value-object.ts
    • Include: immutable ID value object with factory method and validation
    • Add additional value objects as properties of the aggregate suggest them
  5. Create repository interface:

    • File: src/<context>/domain/repositories/<aggregate-name>.repository.ts
    • Include: findById, save, delete methods
    • Use the aggregate root and its ID value object as types
    • This is an interface only -- no implementation (infrastructure concern)
  6. Create domain events:

    • File: src/<context>/domain/events/<aggregate-name>-created.event.ts
    • File: src/<context>/domain/events/<aggregate-name>-updated.event.ts
    • Include: event name (past tense), timestamp, aggregate ID, payload
  7. Create unit test stubs:

    • File: src/<context>/domain/entities/<aggregate-name>.entity.test.ts
    • Include: test cases for construction invariants, domain methods, equality
    • Use describe/it with should [behavior] when [condition] names
  8. Update barrel exports: Add new files to the relevant index.ts barrel files.

  9. Store in domain model graph:

    mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store --parent "context:<context>" --child "aggregate:<aggregate-name>" --relation "contains"
    mcp__plugin_ruflo-core_ruflo__memory_store --key "ddd-aggregate-<context>-<aggregate-name>" --value "AGGREGATE_SUMMARY" --namespace tasks
  10. Post-task hook: npx @claude-flow/cli@latest hooks post-task --task-id "ddd-aggregate-<aggregate-name>" --success true --train-neural true

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-ddd/skills/ddd-aggregate of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Compare with similar skills

Ddd Aggregate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ddd Aggregate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ddd Aggregate this skillruvnet/ruflo74k—~774Automated safety check: NotesMIT
Add Modulefullstackhero/dotnet-starter-kit6.8k—~1.5kAutomated safety check: PassMIT
Scaffoldcodewithmukesh/dotnet-claude-kit751—~1.7kAutomated safety check: PassMIT
Angular Clean Architecturefmflurry/settings-opencode171—~3.6kAutomated safety check: PassMIT
Modular Design Principlestech-leads-club/agent-skills7k—~3.1kAutomated safety check: PassCustom licence
Dotnet Clean Architecturefmflurry/settings-opencode171—~5.5kAutomated safety check: PassMIT

Similar skills

  • Add Module

    fullstackhero/dotnet-starter-kit

    Create a new module (bounded context) — runtime + Contracts projects, IModule, DbContext, permissions, migrations, and the four registration sites.

    6.8k GitHub stars~1.5k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Scaffold

    codewithmukesh/dotnet-claude-kit

    Architecture-aware feature scaffolding for .NET 10 projects.

    751 GitHub stars~1.7k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Angular Clean Architecture

    fmflurry/settings-opencode

    Scaffolds and extends Angular standalone feature MODULES under src/app/modules/{name} using Clean Architecture layering (presentation/application/core/infrastructure), a self-registering module…

    171 GitHub stars~3.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Modular Design Principles

    tech-leads-club/agent-skills

    Technology-agnostic guidance for modular systems: bounded contexts, clear boundaries, composability, state isolation, explicit contracts, failure containment, scaffolding workflows, split/merge…

    7k GitHub stars~3.1k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Dotnet Clean Architecture

    fmflurry/settings-opencode

    Scaffolds and extends .NET 10 Minimal API modules using self-registering IModule + IEndpoint (reflection discovery) + hexagonal ports/adapters per module…

    171 GitHub stars~5.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Spring Boot Project Creator

    giuseppe-trisciuoglio/developer-kit

    Creates and scaffolds a new Spring Boot project (3.x or 4.x) by downloading from Spring Initializr, generating package structure (DDD or Layered architecture), configuring JPA, SpringDoc OpenAPI…

    355 GitHub stars~3.4k tokensUpdated 27 days ago
    Backend & APIsAuto-check: notes

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Categories

Questions about Ddd Aggregate

What does Ddd Aggregate do?

Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs. Ddd Aggregate is an agent skill from ruvnet/ruflo. Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs.

When should I use Ddd Aggregate?

Ddd Aggregate fits situations like: adding a new aggregate to an existing bounded context; modeling a new business concept that owns invariants; generating the boilerplate for an entity + repo + events triplet.

How do I install Ddd Aggregate in Claude Code?

Run `npx skills add ruvnet/ruflo --skill ddd-aggregate -a claude-code`. Or copy the skill folder (plugins/ruflo-ddd/skills/ddd-aggregate in ruvnet/ruflo) into .claude/skills/ddd-aggregate in your project. Claude Code loads it when a task matches its description.

How do I install Ddd Aggregate in Codex?

Run `npx skills add ruvnet/ruflo --skill ddd-aggregate -a codex`. Or copy the skill folder (plugins/ruflo-ddd/skills/ddd-aggregate in ruvnet/ruflo) into .agents/skills/ddd-aggregate in your project. Codex loads it when a task matches its description.

Can I use Ddd Aggregate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill ddd-aggregate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ddd-aggregate, .gemini/skills/ddd-aggregate, .github/skills/ddd-aggregate and .opencode/skills/ddd-aggregate in your project.

What does Ddd Aggregate need to run?

Going by SKILL.md and its folder, Ddd Aggregate needs the command-line tools its instructions call (npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Grep, Glob, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, mcp__plugin_ruflo-core_ruflo__hooks_post-task.

Does Ddd Aggregate access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Ddd Aggregate safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Ddd Aggregate use?

Ddd Aggregate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ddd Aggregate use?

About 774 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ddd Aggregate?

Skills that share tags, products or a category with Ddd Aggregate: Add Module (fullstackhero/dotnet-starter-kit, 6.8k stars), Scaffold (codewithmukesh/dotnet-claude-kit, 751 stars), Angular Clean Architecture (fmflurry/settings-opencode, 171 stars) and Modular Design Principles (tech-leads-club/agent-skills, 7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ddd Aggregate?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.