ln-644-dependency-graph-auditor

Audit module dependency graphs for circular dependencies and coupling metrics.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/cbbkrd-tech/jl-finishes --skill ln-644-dependency-graph-auditor-cbbkrd-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-644-dependency-graph-auditor
Source: https://github.com/cbbkrd-tech/jl-finishes/tree/main/.claude/skills/ln-644-dependency-graph-auditor
Command: npx skills add https://github.com/cbbkrd-tech/jl-finishes --skill ln-644-dependency-graph-auditor-cbbkrd-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces architectural integrity by detecting and reporting on circular dependencies, boundary rule violations, and code coupling metrics, preventing architectural drift and maintaining system health.

Core Features & Use Cases

  • Dependency Graph Analysis: Builds a comprehensive graph of module dependencies across various programming languages.
  • Cycle Detection: Identifies critical transitive and pairwise circular dependencies using DFS.
  • Boundary Enforcement: Validates architectural rules (forbidden, allowed, required dependencies) against defined layers or custom configurations.
  • Metric Calculation: Computes coupling metrics (Ca, Ce, I) and aggregate complexity (CCD, NCCD).
  • Adaptive Architecture: Automatically detects and adapts to different architectural styles (Clean, Hexagonal, Layered, MVC, Vertical Slices) or uses documented/custom rules.
  • Use Case: A development team can use this Skill to automatically scan their codebase before each release, ensuring that new code adheres to the established architectural patterns and preventing the introduction of hard-to-maintain circular dependencies.

Quick Start

Use the ln-644-dependency-graph-auditor skill to analyze the dependency graph of the project located at '/path/to/your/codebase'.

Frequently Asked Questions about ln-644-dependency-graph-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect circular dependencies in my codebase?

Detect circular dependencies by building a comprehensive module dependency graph and using DFS to identify critical transitive and pairwise cycles. This process reports architectural boundary violations and calculates coupling metrics to prevent structural drift in your software.

What are coupling metrics and how do they measure software architecture health?

Coupling metrics like Ca, Ce, and I measure software architecture health by quantifying module dependencies and aggregate complexity (CCD, NCCD). These calculations enforce the Stable Dependencies Principle and provide baseline support for incremental architectural adoption.

Can I enforce architectural boundary rules for Clean or Hexagonal architectures?

Yes, you can enforce architectural boundary rules for Clean, Hexagonal, Layered, MVC, and Vertical Slices architectures. The system automatically detects your architectural style and validates forbidden, allowed, and required dependencies against those defined layers.

How do I audit module dependencies across different programming languages?

Audit module dependencies across various programming languages by building a comprehensive dependency graph that validates custom rules or uses directory structure heuristics. This enforces architectural integrity and reports violations when documented architecture styles are not explicitly detected.

What is the Stable Dependencies Principle and how do I enforce it?

The Stable Dependencies Principle ensures that modules depend on directions of stability to prevent architectural drift. Enforce it by calculating coupling metrics (Ca, Ce, I) across your module dependency graph and validating architectural boundary rules against established layers.