graph-export
Installation
SKILL.md
Export Graph
Export the complete knowledge graph from .code-graph/graph.db to a readable JSON 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 graph — Run via Bash:
python .claude/scripts/code_graph export --jsonDefault output:
.code-graph/graph-export.json -
Export specific files only (optional):
python .claude/scripts/code_graph export --files src/auth.py src/api.py --jsonThis exports only nodes and edges belonging to the specified files.
-
Custom output path (optional):
python .claude/scripts/code_graph export -o custom-path.json --json -
Report results: File path, node count, edge count, file size.
Output Format
{
"version": "1.8.4-easyclaude",
"stats": { "total_nodes": N, "total_edges": N, "files_count": N, "languages": [...] },
"nodes": [
{ "kind": "Function", "name": "login", "qualified_name": "auth.py::login", "file_path": "...", "line_start": 10, "line_end": 25, "language": "python" }
],
"edges": [
{ "kind": "CALLS", "source": "api.py::handler", "target": "auth.py::login", "file_path": "...", "line": 15 }
]
}
Implicit Edges in Export
The exported JSON includes ALL edge types, including implicit connections:
MESSAGE_BUS— cross-service bus message producer-to-consumer linksTRIGGERS_EVENT— entity CRUD to event handler linksPRODUCES_EVENT— event handler to bus producer linksTRIGGERS_COMMAND_EVENT— command to command event handler linksAPI_ENDPOINT— frontend HTTP call to backend route links
These edges are created by the implicit connector and API connector during build/sync.
Use Cases
- Inspect graph contents for debugging
- Feed into external analysis tools
- Verify graph correctness after build
- Share graph snapshot with team members
Weekly Installs
2
Repository
duc01226/easyplatformGitHub Stars
6
First Seen
10 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
warp2