Agent skill

ln-644-dependency-topology-auditor

Builds dependency topology, detects cycles, validates import rules, and calculates coupling metrics. Use when auditing architecture topology.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 17 KB
Bundled scripts: none
Allowed tools: ReadGrepGlobBashmcp__hex-graph__index_projectmcp__hex-graph__analyze_architecturemcp__hex-graph__trace_pathsmcp__hex-line__read_filemcp__hex-line__grep_searchmcp__hex-line__outline
Path: skills/analysis/ln-644-dependency-topology-auditor/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the 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`, 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

What's inside
Steps it walks through
  1. Purpose & Scope
  2. Input
  3. Workflow
  4. Phase 1: Discover Architecture (Adaptive)
  5. Phase 2: Build Dependency Graph
  6. Phase 3: Detect Cycles (ADP)
  7. Phase 4: Validate Boundary Rules
  8. Phase 5: Calculate Graph Metrics
  9. Phase 6: Baseline Support
  10. Phase 7: Calculate Score
  11. Phase 8: Write Report
  12. Phase 9: Return Summary
  13. Critical Rules
  14. Definition of Done
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going