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-build if .code-graph/graph.db doesn't exist
  • Requires Python 3.10+ with tree-sitter, tree-sitter-language-pack, networkx

Steps

  1. Export file graph as Mermaid — Run via Bash (positional or --file flag both work):

    python .claude/scripts/code_graph export-mermaid <relative-path> --json
    # OR
    python .claude/scripts/code_graph export-mermaid --file <relative-path> --json
    
Installs
7
GitHub Stars
6
First Seen
Mar 27, 2026
graph-export-mermaid — duc01226/easyplatform