
Ddd Validate
This runs a comprehensive DDD compliance audit across your codebase, checking for the kind of violations that creep in when teams grow or deadlines loom. It scans your bounded contexts for illegal cross-boundary imports (like reaching directly into another context's domain layer instead of using public APIs), verifies aggregate roots aren't exposing public setters that bypass invariants, and validates that repositories and events follow proper patterns. You get a categorized table of violations with file paths and line numbers. Most useful during architecture reviews or when onboarding new developers who need to understand your context boundaries. The boundary violation detection alone saves hours of code review back and forth.
- skills.sh installs
- 737
- GitHub stars
- 81.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ruvnet/ruflo --skill ddd-validate --agent claude-codeInstalls into .claude/skills of the current project.
Files
Validate domain boundary integrity across all bounded contexts.
Steps
-
Discover contexts: Scan
src/*/domain/to find all bounded contexts. -
Check cross-boundary violations:
- For each context, scan all
.tsfiles for import statements - Flag any import that reaches into another context's
domain/directory directly - Allowed: importing from another context's public
index.ts(application layer) - Violation: importing from
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 - For each context, scan all
-
Check aggregate invariant enforcement:
- Scan aggregate root entities for public setters that bypass validation
- Flag mutable public properties without invariant checks
- Verify that child entities are not directly accessible (must go through aggregate root)
Sponsors
Details
- Repository
- github.com/ruvnet/ruflo
- First seen
- Jun 3, 2026
More from ruvnet/ruflo
All 236- Iot Register737
- Market Pattern737
- Sparc Implement735
- Observe Metrics734
- Observe Trace733
- Sparc Spec733
- Trader Regime733
- Trader Risk732
- Vector Embed732
- Federation Status731
- Iot Anomalies731
- Kg Extract731
- Browser Login730
- Cost Report730
- Federation Audit730
- Federation Init730
- Migrate Create730
- Sparc Refine730
- Iot Witness Verify729
- Migrate Validate729
- Vector Cluster729
- Kg Traverse728
- Cost Compact Context726
- Market Ingest726