ln-644-dependency-topology-auditor
Installation
SKILL.md
Paths: File paths (
references/,../ln-*) are relative to this skill directory.
Type: L3 Worker Category: 6XX Audit
Dependency Topology Auditor
L3 Worker that builds and analyzes the module dependency graph to enforce architectural boundaries.
Purpose & Scope
- Build module dependency topology 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
- Emit
BREAK_CYCLE,ENFORCE_RULE, orREDUCE_COUPLING