Agent skill

Codegraph Skill

by sopaco in sopaco/deepwiki-rs

A skill your agent uses when a coding agent needs symbol relationships, callers, callees, or change impact.

MITAuto-check passed

Install Codegraph Skill

skills CLI
$ npx skills add sopaco/deepwiki-rs --skill codegraph-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sopaco/deepwiki-rs codegraph-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sopaco/deepwiki-rs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/codegraph-skill .claude/skills/codegraph-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codegraph-skill
GitHub stars
3.1k
Token cost
~1.1k tokens
SKILL.md length
442 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when a coding agent needs symbol relationships, callers, callees, or change impact.

  • Works in 6 steps: Read .terrain/agent/context.md… → Always sync first — cheap, incremental,… → query to locate definition → …
  • A coding agent needs symbol relationships
  • SKILL.md covers Resolve the CodeGraph command…, Prerequisites, CLI commands and Recommended workflow, plus 4 more sections
  • Calls bunx, npx and git

What it does

Codegraph Skill is an agent skill from sopaco/deepwiki-rs. Use when a coding agent needs symbol relationships, callers, callees, or change impact. Guides CodeGraph CLI usage (not MCP).

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Model Context Protocol, Bash and Bun. The repository describes itself as: Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents. The licence is MIT.

When your agent uses it

  • A coding agent needs symbol relationships

Example prompts

  • “/codegraph-skill”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read .terrain/agent/context.md (terrain-knowledge-skill)
  2. Always sync first — cheap, incremental, and removes the need to trust status's own up-to-date claim
  3. query to locate definition
  4. callers / callees / impact for relationship questions
  5. repomix-context-skill for full source text of a specific file
  6. Use rtk-skill for any follow-up shell commands (tests, git)

What it can do on your machine

Read from SKILL.md and the folder at commit 27dbd3e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bunx
    • npx
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • colbymchenry.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codegraph Skill loads about 1.1k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 442 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sopaco/deepwiki-rs at commit 27dbd3e, republished under its MIT licence (© sopaco). 442 words, ~1,086 tokens.

Download SKILL.mdSave it as .claude/skills/codegraph-skill/SKILL.md (or your agent's skills folder).
name
codegraph-skill
description
Use when a coding agent needs symbol relationships, callers, callees, or change impact. Guides CodeGraph CLI usage (not MCP).
version
1.3.0

CodeGraph Skill

CodeGraph provides a pre-indexed AST code graph for this project.

Terrain uses CLI only — do not run codegraph install (that configures MCP/agent rules separately).

Resolve the CodeGraph command (read first)

Use conventional paths only — never machine-specific absolute paths like /Users/... or C:\Users\....

On Windows, the wrapper may be codegraph.cmd or codegraph.exe under ~/.terrain/bin/.

PriorityCommandWhen
1~/.terrain/bin/codegraphTerrain env integration (see existence check below)
2bunx codegraphNo Terrain install; needs network once
3npx codegraphSame as bunx if Bun unavailable

Optional manifest (local, gitignored): .terrain/env/agent-tools.json — same ~/.terrain/bin/… conventions.

Existence check (cross-platform):

ShellCheck
bash / zsh / Git Bash[ -x ~/.terrain/bin/codegraph ] || [ -f ~/.terrain/bin/codegraph.exe ] || [ -f ~/.terrain/bin/codegraph.cmd ]
PowerShellTest-Path "$HOME\.terrain\bin\codegraph*"

In examples below, <cg> means your resolved prefix (~/.terrain/bin/codegraph or bunx codegraph).

Prerequisites

The index is per-repo under .codegraph/. If missing, initialize from the repo root:

bash
# bash / Git Bash
if [ -x ~/.terrain/bin/codegraph ] || [ -f ~/.terrain/bin/codegraph.exe ] || [ -f ~/.terrain/bin/codegraph.cmd ]; then
  ~/.terrain/bin/codegraph init -i
else
  bunx codegraph init -i
fi

Refresh after edits: <cg> sync

Health check:

bash
<cg> status

<cg> status can lie ("up to date" when it is not). Observed case: index untouched for 10 days while 24 commits changed source files, status still reported fresh, and <cg> query on a symbol added days earlier returned nothing. Do not treat status as authoritative on its own.

CLI commands

IntentCommand
Find symbol by name<cg> query <name>
Who calls X<cg> callers <symbol>
What X calls<cg> callees <symbol>
Change blast radius<cg> impact <symbol>
Tests affected by file changes<cg> affected <files…>
Project file tree<cg> files
Index health<cg> status
Refresh after edits<cg> sync
Show full SKILL.md (199 more words)Show less
  1. Read .terrain/agent/context.md (terrain-knowledge-skill)
  2. Always <cg> sync first — cheap, incremental, and removes the need to trust status's own up-to-date claim
  3. <cg> query <SymbolName> to locate definition
  4. callers / callees / impact for relationship questions
  5. repomix-context-skill for full source text of a specific file
  6. Use rtk-skill for any follow-up shell commands (tests, git)

Independent staleness cross-check (mandatory before impact/callers analysis)

Because <cg> status is not reliable, cross-check with Terrain's own git-based drift report before trusting impact/callers/callees results for anything safety-relevant (e.g. "is it safe to remove this function"):

bash
~/.terrain/bin/terrain tools codegraph-drift --project <slug>
# or: bunx @terrain-ai/cli tools codegraph-drift --project <slug>

This compares .codegraph/codegraph.db's mtime against git log --since — independent of CodeGraph's own bookkeeping. If likely_stale: true, run <cg> sync and re-check before trusting query results.

When to use vs other skills

Use CodeGraphUse instead
Symbol lookup, call chainsArchitecture → context.md
Impact before refactorBusiness rules → knowledge/
File/symbol graphRaw source slice → repomix
Verbose test/git output<rtk> cargo test, <rtk> git diff

Do not

  • Run codegraph install (Terrain manages AGENTS.md)
  • Blind grep the whole repo to re-verify CodeGraph AST results
  • Chain query + manual file reads when impact answers the question

Staleness

If <cg> status shows pending files after your edits, or terrain tools codegraph-drift reports likely_stale: true:

bash
<cg> sync

© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/codegraph-skill of sopaco/deepwiki-rs.

Open the folder on GitHubat commit 27dbd3e

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in sopaco/deepwiki-rs, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Codegraph Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codegraph Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codegraph Skill this skillsopaco/deepwiki-rs3.1k—~1.1kAutomated safety check: PassMIT
Crush Configurationcharmbracelet/crush29k—~3.7kAutomated safety check: PassCustom licence
E2Ekortix-ai/suna20k—~2.3kAutomated safety check: PassCustom licence
Tradingview MCPatilaahmettaner/tradingview-mcp4.9k—~1.3kAutomated safety check: PassMIT
Record Demoapify/mcpc981—~3.3kAutomated safety check: NotesApache-2.0
Ue Code AuthoringJasonMa0012/MooaToon749—~1.9kAutomated safety check: NotesCustom licence

Similar skills

  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • E2E

    kortix-ai/suna

    Agentic end-to-end tests with e2e, the e2e runner. An agent skill from kortix-ai/suna.

    20k GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    4.9k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Record Demo

    apify/mcpc

    Official

    Record or regenerate the mcpc demo GIFs (the README hero docs/images/mcpc-demo.gif and the focused tapes in docs/vhs/) with VHS.

    981 GitHub stars~3.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Ue Code Authoring

    JasonMa0012/MooaToon

    A skill your agent uses when writing or modifying UE C++ (classes, actors, components, subsystems, interfaces, function libraries) with Rider MCP available.

    749 GitHub stars~1.9k tokensUpdated 19 days ago
    DevelopmentAuto-check: notes
  • Release

    jgravelle/jcodemunch-mcp

    Publishing a jMunch release (jcodemunch-mcp, jdocmunch-mcp, jdatamunch-mcp, jragmunch-cli), reviewing/merging/closing PRs, and responding to the community.

    2.7k GitHub stars~6.5k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from sopaco/deepwiki-rs

  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 23 days ago
    Auto-check passed
  • Repomix Context Skill

    sopaco/deepwiki-rs

    A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).

    3.1k GitHub stars~671 tokensUpdated 23 days ago
    Auto-check passed
  • Rtk Skill

    sopaco/deepwiki-rs

    A skill your agent uses when running shell commands that produce verbose output (git, test, build, lint, package managers, docker).

    3.1k GitHub stars~1.4k tokensUpdated 23 days ago
    Auto-check passed
  • Terrain Knowledge Skill

    sopaco/deepwiki-rs

    A skill your agent uses when a coding agent needs project knowledge from Terrain .terrain/ assets.

    3.1k GitHub stars~891 tokensUpdated 23 days ago
    Auto-check passed

Questions about Codegraph Skill

What does Codegraph Skill do?

A skill your agent uses when a coding agent needs symbol relationships, callers, callees, or change impact. Codegraph Skill is an agent skill from sopaco/deepwiki-rs. Use when a coding agent needs symbol relationships, callers, callees, or change impact.

When should I use Codegraph Skill?

Codegraph Skill fits situations like: A coding agent needs symbol relationships.

How do I install Codegraph Skill in Claude Code?

Run `npx skills add sopaco/deepwiki-rs --skill codegraph-skill -a claude-code`. Or copy the skill folder (.agents/skills/codegraph-skill in sopaco/deepwiki-rs) into .claude/skills/codegraph-skill in your project. Claude Code loads it when a task matches its description.

How do I install Codegraph Skill in Codex?

Run `npx skills add sopaco/deepwiki-rs --skill codegraph-skill -a codex`. Or copy the skill folder (.agents/skills/codegraph-skill in sopaco/deepwiki-rs) into .agents/skills/codegraph-skill in your project. Codex loads it when a task matches its description.

Can I use Codegraph Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sopaco/deepwiki-rs --skill codegraph-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codegraph-skill, .gemini/skills/codegraph-skill, .github/skills/codegraph-skill and .opencode/skills/codegraph-skill in your project.

What does Codegraph Skill need to run?

Going by SKILL.md and its folder, Codegraph Skill needs the command-line tools its instructions call (bunx, npx and git). Our summary lists: Node.js.

Does Codegraph Skill access the network?

SKILL.md names 1 domain. As links in the text: colbymchenry.github.io. This is read from the text; nothing was executed.

Is Codegraph Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codegraph Skill use?

Codegraph Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codegraph Skill use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codegraph Skill?

Skills that share tags, products or a category with Codegraph Skill: Crush Configuration (charmbracelet/crush, 29k stars), E2E (kortix-ai/suna, 20k stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 4.9k stars) and Record Demo (apify/mcpc, 981 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codegraph Skill?

sopaco (a GitHub user) maintains it in sopaco/deepwiki-rs, which has 3,110 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 14, 2026.

Source: sopaco/deepwiki-rs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.