ln-644-dependency-topology-auditor
Builds dependency topology, detects cycles, validates import rules, and calculates coupling metrics. Use when auditing architecture topology.
npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-topology-auditor --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 (`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`, or `REDUCE_COUPLING` **Out of Scope:** - I/O isolation violations - API contract violations - Code duplication ## Input ``` - architecture_path: string # Path to docs/architecture.md - codebase_root: string # Root directory to scan - output_dir: string # e.g., ".hex-skills/runtime-artifacts/runs/{run_id}/audit-report
- Purpose & Scope
- Input
- 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-topology-auditor skill do?
Builds dependency topology, detects cycles, validates import rules, and calculates coupling metrics. Use when auditing architecture topology.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-topology-auditor --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.
