Codegraph

From skeletorflet/opencode-supreme-setup · View interactive version

Codegraph is an AI agent skill from the GitHub repository skeletorflet/opencode-supreme-setup. Initialize and use CodeGraph — pre-indexed knowledge graph for 92% faster code exploration. Auto-init when .codegraph/ missing. Use when exploring unfamiliar codebases, tracing call flows, or before editing.

How to use this skill

Skill file

codegraph

Initialize CodeGraph when a project lacks .codegraph/, and use it as the PRIMARY code exploration method.

Auto-Init (when `.codegraph/` is missing)

  1. Check installation:
codegraph --version

If not found → npm install -g @colbymchenry/codegraph

  1. Initialize and index the project:
codegraph init -i
  1. Verify:
codegraph status

Expected: Files: N, Nodes: N, Backend: native

  1. If Backend: wasm (slow) → npm rebuild better-sqlite3

Using CodeGraph for Exploration

Once .codegraph/ exists, ALWAYS prefer CodeGraph MCP tools:

| Tool | What for |

|------|----------|

| codegraph_explore | Primary exploration — returns full source from all relevant files in one call |

| codegraph_search | Find symbols by name |

| codegraph_callers / codegraph_callees | Trace call flow |

| codegraph_impact | Check what's affected before editing |

| codegraph_node | Get single symbol details |

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.