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'.