ln-644-dependency-graph-auditor
L3 Worker. Builds dependency graph, detects cycles (DFS), validates boundary rules, calculates coupling metrics (Ca/Ce/I, CCD/NCCD). Adaptive architecture detection.
npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-graph-auditor-levnikolaevich-claude-code-skill --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. # Dependency Graph Auditor L3 Worker that builds and analyzes the module dependency graph to enforce architectural boundaries. ## Purpose & Scope - **Worker in ln-640 coordinator pipeline** - invoked by ln-640-pattern-evolution-auditor - Build module dependency graph from import statements (Python, TS/JS, C#, Java) - Detect circular dependencies: pairwise (HIGH) + transitive via DFS (CRITICAL) - Validate boundary rules: forbidden, allowed, required (per dependency-cruiser pattern) - Calculate Robert C. Martin metrics (Ca, Ce, Instability) + Lakos aggregate (CCD, NCCD) - Validate Stable Dependencies Principle (SDP) - Support baseline/freeze for incremental legacy adoption (per ArchUnit FreezingArchRule) - **Adaptive:** 3-tier architecture detection — custom rules > docs > auto-detect **Out of Scope** (owned by other workers): - I/O isolation violations (grep-based) -> ln-642-layer-boundary-auditor - API contract violations -> ln-643-api-contract-auditor - Code duplication -> ln-623-code-principles-audit
- Purpose & Scope
- Input (from ln-640)
- Workflow
- Phase 1: Discover Architecture (Adaptive)
- Phase 2: Build Dependency Graph
- Phase 3: Detect Cycles (ADP)
- Phase 4: Validate Boundary Rules
- Phase 5: Calculate Graph Metrics
- Phase 6: Baseline Support
- Phase 7: Calculate Score
- Phase 8: Write Report
- Phase 9: Return Summary
- Critical Rules
- Definition of Done
What does the ln-644-dependency-graph-auditor skill do?
L3 Worker. Builds dependency graph, detects cycles (DFS), validates boundary rules, calculates coupling metrics (Ca/Ce/I, CCD/NCCD). Adaptive architecture detection.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-graph-auditor-levnikolaevich-claude-code-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
