
Dependency Graph
- 83 installs
- 325 repo stars
- Updated August 2, 2026
- athola/claude-night-market
Map module import relationships as a Mermaid graph to spot coupling, cycles, and blast radius before refactors.
About
Dependency graph is an agent skill that turns import relationships into a Mermaid flowchart so solo builders see coupling before they cut code. You start by dispatching a codebase explorer agent to collect internal and external imports across a chosen scope, then translate that structural model into flowchart LR syntax: nodes as modules or packages, edges from dependent to dependency, subgraphs by package, and visual cues for optional versus critical links. It answers planning questions—what depends on what, where cycles hide, and what breaks if a file changes—without running a separate proprietary diagramming tool. Intermediate users refactoring monoliths, plugin systems, or microservice boundaries benefit most. Output is paste-ready Mermaid for docs or PRs. It complements manual code review by making blast radius visible early in Build and again during Ship review when assessing refactor risk.
- Two-step workflow: codebase explorer agent for structure, then Mermaid flowchart generation
- flowchart LR with dependent→dependency edge direction and optional depth limiting on transitive deps
- Edge styles: default internal, dotted external/optional, thick arrows for critical path
- Subgraphs group nodes by package or plugin for large repos
- Trigger phrases: circular dependencies, coupling, and what breaks if I change this module
Dependency Graph by the numbers
- 83 all-time installs (skills.sh)
- Ranked #478 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill dependency-graphAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 83 |
|---|---|
| repo stars | ★ 325 |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 2, 2026 |
| Repository | athola/claude-night-market ↗ |
What it does
Map module import relationships as a Mermaid graph to spot coupling, cycles, and blast radius before refactors.
Files
Dependency Graph
Generate a Mermaid flowchart showing import and dependency relationships between modules, packages, or plugins.
When To Use
- Understanding what depends on what
- Finding circular dependencies
- Analyzing coupling between modules
- Planning refactoring by seeing dependency impact
- Answering "what breaks if I change this?"
Workflow
Step 1: Explore the Codebase
Dispatch the codebase explorer agent:
Agent(cartograph:codebase-explorer)
Prompt: Explore [scope] and return a structural model.
Focus on import statements and cross-module dependencies
for a dependency graph. Track both internal and external
imports.Step 2: Generate Mermaid Syntax
Transform the structural model into a Mermaid flowchart with directed edges representing dependencies.
Rules for dependency graphs:
- Use
flowchart LR(left-right) for dependency direction - Each node is a module or package
- Edges point from dependent to dependency (A --> B means
"A depends on B")
- Color-code by dependency type:
- Default arrows for internal dependencies
- Dotted arrows (
-.->) for external/optional deps - Thick arrows (
==>) for critical path dependencies - Group into subgraphs by package/plugin
- If depth parameter given, limit transitive dependencies
- Highlight circular dependencies with red styling
Example output:
flowchart LR
subgraph sanctum[Sanctum]
commit[commit]
pr_prep[pr_prep]
workspace[workspace]
end
subgraph leyline[Leyline]
git[git_platform]
errors[error_patterns]
end
subgraph external[External]
subprocess[subprocess]
json[json]
end
commit --> git
commit --> json
pr_prep --> workspace
pr_prep --> git
workspace --> errors
workspace -.-> subprocessStep 3: Render via MCP
Call the Mermaid Chart MCP to render:
mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
prompt: "Dependency graph of [scope]"
mermaidCode: [generated syntax]
diagramType: "flowchart"
clientName: "claude-code"If rendering fails, fix syntax and retry (max 2 retries).
Step 4: Present Results
Show the rendered diagram with analysis notes:
- Total modules and dependency count
- Most-depended-on modules (high fan-in)
- Modules with most dependencies (high fan-out)
- Circular dependencies if any detected
Exit Criteria
- [ ] Mermaid
flowchart LRsyntax generated with directed edges
from dependent to dependency (A --> B means "A depends on B")
- [ ]
mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
called and returns without error
- [ ] Analysis notes include total module count, highest fan-in modules,
and highest fan-out modules
- [ ] Circular dependencies, if detected, are highlighted with red
styling and listed explicitly in the analysis notes
- [ ] External dependencies use dotted arrows (
-.->) distinct from
internal dependency arrows
Related skills
FAQ
Is Dependency Graph safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.