dependency-graph

Solid

Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.

Code & Development 297 stars 27 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
82
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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**: ```mermaid flowchart LR subgraph sanctum[Sanctum] commit[commit] pr_prep[pr_prep] workspace[workspace] ...

Details

Author
athola
Repository
athola/claude-night-market
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

dependency-graph-generator

Generate module dependency graphs with circular dependency detection and coupling metrics

1,160 Updated today
a5c-ai
AI & Automation Solid

architecture-diagram

Generates a Mermaid architecture diagram showing high-level component relationships. Use when visualizing how plugins or modules fit together.

297 Updated today
athola
Data & Documents Solid

diagramming-code

Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs, class hierarchies, module dependency maps, containment diagrams, complexity heatmaps, and attack surface data flow visualizations. Use when visualizing code architecture, drawing call graphs, generating class diagrams, creating dependency maps, producing complexity heatmaps, or visualizing data flow and attack surface paths as Mermaid diagrams.

5,501 Updated 4 days ago
trailofbits
AI & Automation Listed

diagramming-code

Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs, class hierarchies, module dependency maps, containment diagrams, complexity heatmaps, and attack surface data flow visualizations. Use when visualizing code architecture, drawing call graphs, generating class diagrams, creating dependency maps, producing complexity heatmaps, or visualizing data flow and attack surface paths as Mermaid diagrams.

1 Updated 4 days ago
kevinvwong
AI & Automation Listed

library-mermaid

Provides Mermaid diagramming patterns for technical documentation including flowcharts, sequence diagrams, ERDs, class diagrams, state diagrams, Gantt charts, and mindmaps. Use when creating architecture diagrams, documenting API sequences, illustrating database schemas, building project timelines, or asking about Mermaid syntax.

3 Updated today
Yoodaddy0311