Command Palette

Search for a command to run...

Back to skills
skill № 02803

codegraph

Initialize and use CodeGraph — pre-indexed knowledge graph for 92% faster code exploration. Auto-init when .codegraph/ missing. Use when exploring unfamiliar…

FreeNo executable scripts
skeletorfletby skeletorflet★ 48 GitHub stars

Install codegraph in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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

  • Explore agents: pass this in prompt → "This project has CodeGraph. Use codegraph_explore as PRIMARY tool."
  • NEVER re-read files codegraph already returned source for
  • CodeGraph > grep/glob/Read/Find for any code understanding task

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the codegraph skill do?

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 do I install the codegraph skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the codegraph skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare codegraph with