dependency-graph
/dependency-graph
Generuje graf zależności Mermaid z relacjami importów między modułami, przy analizie sprzężeń, szukaniu zależności cyklicznych i planowaniu refaktoryzacji.
- Autor
- athola ↗
- Repozytorium
- claude-night-market ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Generuje graf zależności Mermaid z relacjami importów między modułami, przy analizie sprzężeń, szukaniu zależności cyklicznych i planowaniu refaktoryzacji.
Oryginalny opis (EN)
Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.
Jak działa
- When To Use
- When NOT To Use
- Workflow
- Exit Criteria
Podgląd SKILL.md
---
name: dependency-graph
description: Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.
---
# 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?"
## When NOT To Use
- Runtime call paths (use `cartograph:call-chain`)
- Type hierarchies (use `cartograph:class-diagram`)
## 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**:
```mermaid
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 -.-> subprocess
```
### Step 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 LR` syntax 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
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · athola/claude-night-market | 100 | MIT |
| hxxnn/codemap | 100 | MIT |
| Ovich/charrette | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki c73f31e56a85 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100architecture
Mapuje architekturę projektu: zależności między modułami, sprzężenie, graf zależności i granice modułów. - 100gn-deps-debugging
Diagnozuje błędy zależności GN i widoczności include w Chromium: deps, public_deps, reguły DEPS, prywatne nagłówki i zależności cykliczne. - 100rs-deps-visualizer
Wizualizuje w Rust zależności projektu jako rysunek ASCII, pokazując graf zależności na żądanie. - 100cocosearch-deps
Prowadzi eksplorację grafu zależności w CocoSearch: powiązania między plikami, wpływ zmian i wskazywanie plików-hubów. - 90circular-dependencies
Znajduje cykle zależności między modułami i rozrywa je przez warstwy, wydzielanie interfejsów lub odwrócenie zależności, gdy importy tworzą pętlę blokującą kompilację lub testy. - 90module-layering
Pilnuje grafu zależności między modułami, wykrywa cykle i wymusza zamierzony podział warstw narzędziami.