graph-export-mermaid
Installation
SKILL.md
Export Graph as Mermaid Diagram
Export a single file's internal graph structure from .code-graph/graph.db as a Mermaid flowchart in a markdown file.
Prerequisites
- Graph must be built first: run
/graph-buildif.code-graph/graph.dbdoesn't exist - Requires Python 3.10+ with tree-sitter, tree-sitter-language-pack, networkx
Steps
-
Export file graph as Mermaid — Run via Bash (positional or
--fileflag both work):python .claude/scripts/code_graph export-mermaid <relative-path> --json # OR python .claude/scripts/code_graph export-mermaid --file <relative-path> --json