plugins/ruflo-ddd/skills/ddd-validate/SKILL.md
Validate domain boundary integrity across all bounded contexts.
Discover contexts: Scan src/*/domain/ to find all bounded contexts.
Check cross-boundary violations:
.ts files for import statementsdomain/ directory directlyindex.ts (application layer)src/<other-context>/domain/entities/... directly# 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
Check aggregate invariant enforcement:
Check event naming conventions:
OrderCreated, not CreateOrder)Check repository patterns:
domain/repositories/, not infrastructure/infrastructure/, not domain/Report findings:
BOUNDARY, INVARIANT, EVENT, REPOSITORYStore results:
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