code-graph
Installation
SKILL.md
Code Graph Skill
You own the full cgraph lifecycle: database, indexing, and querying. The user should never need to run cgraph commands manually.
Ownership Rules
- If
cgraphcommands fail with connection errors, runcgraph ensure-dbfirst. - If
cgraphis not found, seemanagement.mdfor installation instructions. - Index at session start or after significant code changes:
cgraph index . --ignore node_modules --ignore venv --ignore .git --ignore __pycache__ - No need to re-index between consecutive queries if no code has changed.
- All command output is JSON on stdout. Status/progress goes to stderr.
--repodefaults to the current directory name if omitted.
Indexing
# Index the current project
cgraph index . --ignore node_modules --ignore venv --ignore .git --ignore __pycache__