Skip to content
Back to skills

Codegraph

ASecurity

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.

  • 47 stars
  • 0 votes
  • 4 copies
  • 43 views
  • Added September 12, 2026
ai-agentsbashsqlnodebackend

Works with

  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill codegraph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codegraph?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codegraph
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-codegraph/badge)](https://www.skillsdirectory.com/skills/skeletorflet-codegraph)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codegraph
description: 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.
---

## 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:
```bash
codegraph --version
```
If not found → `npm install -g @colbymchenry/codegraph`

2. Initialize and index the project:
```bash
codegraph init -i
```

3. Verify:
```bash
codegraph status
```
Expected: `Files: N, Nodes: N, Backend: native`

4. 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.