Ddd validate

From ruvnet/ruflo · View interactive version

Ddd validate is an AI agent skill from the GitHub repository ruvnet/ruflo. Validate domain boundaries -- detect cross-context import violations and aggregate invariant issues. Use when auditing a DDD codebase for leaks between bounded contexts, before merging cross-cutting changes, or as a CI gate to catch boundary erosion early.

How to use this skill

Skill file

Validate domain boundary integrity across all bounded contexts.

Steps

  1. Discover contexts: Scan src/*/domain/ to find all bounded contexts.
  1. Check cross-boundary violations:

```bash

# Find cross-boundary imports

for ctx in $(find src -maxdepth 2 -name "domain" -type d | sed 's|src/||;s|/domain||'); do

grep -rn "from ['\"].src/" "src/$ctx/" --include=".ts" | grep -v "src/$ctx/" || true

done

```

  1. Check aggregate invariant enforcement:
  1. Check event naming conventions:
  1. Check repository patterns:
  1. Report findings:
  1. Store results:

```bash

npx @claude-flow/cli@latest memory store --key "ddd-validation-TIMESTAMP" --value "RESULTS_SUMMARY" --namespace tasks

npx @claude-flow/cli@latest hooks post-task --task-id "ddd-validate" --success true --store-results true

```

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.