reez455g/kerangka/codex-codegraph-rules
Claude Code and agent skill by reez455g/kerangka
- community
Checking that the SKILL.md file is still in the repository.
AGENTS.md rules for using the CodeGraph MCP server (codegraph_* tools) in Codex CLI — when to prefer codegraph over grep, which tool answers which structural question (definitions, callers, callees, impact), and index-lag caveats. Use when working in a repo with CodeGraph configured under Codex CLI.
Install
npx vskill@latest install reez455g/kerangka/codex-codegraph-rulesSKILL.md
CodeGraph
This project has a CodeGraph MCP server (codegraph_* tools) configured. CodeGraph is a tree-sitter-parsed knowledge graph of every symbol, edge, and file. Reads are sub-millisecond and return structural information grep cannot.
When to prefer codegraph over native search
Use codegraph for structural questions — what calls what, what would break, where is X defined, what is X's signature. Use native grep/read only for literal text queries (string contents, comments, log messages) or after you already have a specific file open.
| Question | Tool | |
|---|---|---|
| "Where is X defined?" / "Find symbol named X" | codegraph_search | |
| "What calls function Y?" | codegraph_callers | |
| "What does Y call?" | codegraph_callees | |
| "What would break if I changed Z?" | codegraph_impact | |
| "Show me Y's signature / source / docstring" | codegraph_node | |
| "Give me focused context for a task/area" | codegraph_context | |
| "See several related symbols' source at once" | codegraph_explore | |
| "What files exist under path/" | codegraph_files | |
| "Is the index healthy?" | codegraph_status |
Rules of thumb
- Answer directly — don't delegate exploration. For "how does X work" / architecture / trace questions, answer with 2-3 codegraph calls:
codegraph_contextfirst, then ONEcodegraph_explorefor the source of the symbols it surfaces. Codegraph IS the pre-built index, so spawning a separate file-reading sub-task/agent — or running a grep + read loop — repeats work codegraph already did and costs more for the same answer. - Trust codegraph results. They come from a full AST parse. Do NOT re-verify them with grep — that's slower, less accurate, and wastes context.
- Don't grep first when looking up a symbol by name.
codegraph_searchis faster and returns kind + location + signature in one call. - Don't chain `codegraph_search` + `codegraph_node` when you just want context —
codegraph_contextis one call. - Don't loop `codegraph_node` over many symbols — one
codegraph_explorecall returns several symbols' source grouped in a single capped call, while each separate node/Read call re-reads the whole context and costs far more. - Index lag: the file watcher debounces ~500ms behind writes; don't re-query immediately after editing a file in the same turn.
If .codegraph/ doesn't exist
The MCP server returns "not initialized." Ask the user: "I notice this project doesn't have CodeGraph initialized. Want me to run `codegraph init -i` to build the index?" <!-- CODEGRAPH_END -->
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.omp/skills/codex-codegraph-rules/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/reez455g/kerangka/codex-codegraph-rules)