ln-644-dependency-graph-auditor

Solid

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

AI & Automation 479 stars 67 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **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 contract violations -> ln-643-api-contract-auditor - Code duplication -> ln-623-code-principles-auditor ## Input (from ln-640) ``` - architecture_path: string # Path to docs/architecture.md - codebase_root: string # Root directory to scan - output_dir: string # e.g., ".h...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category