dependency-mapper

Visualize module dependencies and compute Robert C. Martin's package coupling metrics.

2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/michaelalber/ai-toolkit --skill dependency-mapper-michaelalber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-mapper
Source: https://github.com/michaelalber/ai-toolkit/tree/main/skills/dependency-mapper
Command: npx skills add https://github.com/michaelalber/ai-toolkit --skill dependency-mapper-michaelalber

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill makes the hidden dependency structure of your codebase visible and measurable, helping you understand and improve your software architecture.

Core Features & Use Cases

  • Dependency Visualization: Generates text-based dependency graphs to show module relationships.
  • Metric Calculation: Computes Robert C. Martin's package coupling metrics (Ca, Ce, I, A, D) to quantify architectural health.
  • Use Case: Before undertaking a major refactor, use this Skill to analyze the dependency graph of your core domain modules, identify circular dependencies, and pinpoint modules violating the Stable Dependencies Principle.

Quick Start

Analyze the dependencies in the '/path/to/your/project' directory.

Frequently Asked Questions about dependency-mapper

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

FAQPage Schema
How do I find circular dependencies in my codebase before refactoring?

To find circular dependencies before refactoring, you can analyze your software architecture by visualizing module dependency graphs. This process identifies cyclical relationships and highlights modules violating the Stable Dependencies Principle to ensure structural health.

What are Robert C. Martin's package coupling metrics for measuring software architecture?

Robert C. Martin's package coupling metrics quantify architectural health by measuring module instability, abstractness, and distance from the main sequence. These metrics help assess adherence to architectural principles like Stable Dependencies and Stable Abstractions.

Can I use dependency analysis tools for projects written in different programming languages?

Yes, you can perform dependency analysis across various programming languages using language-specific detection approaches. The tool adapts its module detection logic to support diverse codebases without being restricted to a single framework.

How do I measure module instability and abstractness to evaluate code quality?

You measure module instability and abstractness by computing package coupling metrics like Afferent Coupling and Efferent Coupling. These calculations quantify how strictly your modules adhere to the Stable Abstractions Principle.

What is the best way to visualize module dependencies for a major software design refactor?

The best way to visualize module dependencies for a major refactor is by generating text-based dependency graphs. This approach maps module relationships, making the hidden dependency structure visible and measurable for architectural improvements.