ln-644-dependency-graph-auditor

Build and analyze codebase dependency graphs to detect cycles with DFS.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/dorrio/sorteo-app-generator --skill ln-644-dependency-graph-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-644-dependency-graph-auditor
Source: https://github.com/dorrio/sorteo-app-generator/tree/main/.agent/skills/ln-644-dependency-graph-auditor
Command: npx skills add https://github.com/dorrio/sorteo-app-generator --skill ln-644-dependency-graph-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the complexity of understanding and maintaining large codebases by providing tools to analyze dependencies, detect architectural issues, and quantify code coupling.

Core Features & Use Cases

  • Dependency Graphing: Visualizes the relationships between different modules or components.
  • Cycle Detection: Identifies circular dependencies that can lead to rigid and hard-to-maintain code.
  • Coupling Metrics: Calculates metrics like Afferent/Efferent Coupling (Ca/Ce) and Instability (I) to assess architectural health.
  • Adaptive Architecture Detection: Analyzes the codebase to infer and validate architectural patterns.
  • Use Case: A team can use this skill to audit their microservices architecture, ensuring that dependencies are well-managed and that the system adheres to defined architectural boundaries, preventing the accumulation of technical debt.

Quick Start

Use the ln-644-dependency-graph-auditor skill to analyze the dependencies in the current project and report any detected cycles.

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 dependency graph and applying Depth First Search (DFS) to identify cycles. This analysis highlights rigid, hard-to-maintain code paths that require refactoring to improve overall architecture.

What are coupling metrics and how do they assess architectural health?

Coupling metrics like Afferent Coupling (Ca), Efferent Coupling (Ce), and Instability (I) assess architectural health by quantifying module dependencies. Calculating these metrics reveals whether components are overly rigid or prone to ripple-effect changes.

How can I validate architectural boundary rules in a microservices architecture?

Validate architectural boundary rules in a microservices architecture by analyzing the dependency graph against defined constraints. This detects unauthorized dependencies, ensuring the system adheres to patterns and preventing technical debt accumulation.

Can I calculate Lack of Cohesion in Methods for code refactoring?

Calculate Lack of Cohesion in Methods (LCOM) and Coupling Between Objects (CBO) to guide code refactoring. These metrics identify tightly coupled classes and low-cohesion modules, pinpointing specific components that require structural separation.

Does dependency analysis work for inferring existing architectural patterns?

Dependency analysis uses adaptive architecture detection to infer existing architectural patterns from the codebase structure. It evaluates actual module relationships to validate whether the implementation aligns with the intended design rules.

What is the best way to visualize relationships between software components?

The best way to visualize relationships between software components is to generate a dependency graph. This maps module interactions, making it easier to spot architectural violations and track coupling metrics across the system.