Agent skill

ln-644-dependency-graph-auditor

Builds dependency graph, detects cycles, validates boundary rules, calculates coupling metrics (Ca/Ce/I). Use when auditing dependency structure.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-graph-auditor-levnikolaevich-claude-code-skill-levnikolaevich-claude-code-skills --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-graph-auditor-levnikolaevich-claude-code-skill-levnikolaevich-claude-code-skills/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 (`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. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`. **Type:** L3 Worker **Category:** 6XX Audit # Dependency Graph Auditor L3 Worker that builds and analyzes the module dependency graph to enforce architectural boundaries. ## Purpose & Scope - 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

What's inside
Steps it walks through
  1. Purpose & Scope
  2. Input (from ln-640)
  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-graph-auditor skill do?

Builds dependency graph, detects cycles, validates boundary rules, calculates coupling metrics (Ca/Ce/I). Use when auditing dependency structure.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ln-644-dependency-graph-auditor-levnikolaevich-claude-code-skill-levnikolaevich-claude-code-skills --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