use-cli-codegraph

A code-structure search tool that follows named symbols, such as functions or classes, through their definitions and calls.

In plain words
What is it for?
Use it to find callers and called functions, explore symbol paths, estimate change impact, and identify affected tests in an indexed repository.
Why use it?
It answers dependency questions that ordinary text search cannot, such as what uses a function or what a change may affect.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thkt/dotclaude/use-cli-codegraph
Any agent
npx skills add thkt/dotclaude --skill use-cli-codegraph
Clone the repo
git clone --depth 1 https://github.com/thkt/dotclaude

Made for: Claude Code, Codex.

Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00059 $0.00812
Opus 5 $0.00030 $0.00406
Sonnet 5 $0.00012 $0.00162
Haiku 4.5 $0.00006 $0.00081

Measured yesterday against content hash b89d47f71248, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

use-cli-codegraph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ja/skills/use-cli-codegraph/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

use-cli-codegraph

使いどころ

構造の問い合わせに限る。誰が X を呼ぶか、何が壊れるかといったシンボル単位の構造の問いを codegraph へ回し、自由記述の内容検索は Grep と Explore に残す。

問い ツール
X を変えると何が壊れるか / 誰が X を呼ぶか codegraph。Grep は構造をたどれない
シンボルの定義元と呼び出し元 / 先の経路 codegraph node / explore
変更したファイルが影響するテスト codegraph affected
自由記述や文字列の内容検索 Grep / Explore。codegraph はシンボル単位
.codegraph index を持たないリポジトリ Grep / Explore。または init を促す

コマンド

目的 コマンド
変更の波及範囲 (何が壊れるか) codegraph impact <symbol>
呼び出し元 codegraph callers <symbol>
呼び出し先 codegraph callees <symbol>
シンボルの定義元と呼び出しの経路 codegraph node <name>
領域の探索 (定義元と呼び出しの経路) codegraph explore <query...>
シンボル検索 codegraph query <search>
変更が影響するテスト codegraph affected [files...]
index の状態 codegraph status

前提

項目 詳細
index .codegraph/ が要る。リポジトリごとに codegraph init を 1 回実行する。無い場合は init するか尋ねて止まる。黙って作らない
鮮度 codegraph status が up to date を示す。大きな変更の後は codegraph sync を実行する。watcher daemon が動いていれば最新に保たれる
バイナリ bun global で導入する。インストールや更新で EPERM が出たら npm_config_cache=$TMPDIR/cg を前置して回避する

正典は help 出力

オプション、出力形式、終了コードは codegraph --helpcodegraph <subcommand> --help にある。help と記憶が食い違えば help が正しい。

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 47 lines · 59 tokens per session scan A b89d47f71248

Subscribe to this mod's changes

use-cli-codegraph is a skill published in the GitHub repository thkt/dotclaude (11 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 812 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-modal

Create declarative modals using the modal library API. Covers modal types (confirm, input, select, form), sections (Text, Buttons, Input, Textarea, Checkbox, List, Combo, When, Custom), rendering with OverlayModal, and keyboard/mouse handling. Use when adding modals or dialogs to the application.

marcus/sidecar · 69 tokens

create-plugin

Create new sidecar plugins implementing the plugin.Plugin interface, rendering views with Bubble Tea, handling keyboard input via keymap contexts, and integrating with the app shell (footer hints, event bus, adapters). Use when creating a new plugin, modifying plugin architecture, or debugging plugin…

marcus/sidecar · 74 tokens

merge-strategy

Git merge strategies, conflict resolution approaches, merge vs rebase recommendations, and branch integration patterns in sidecar. Covers pull strategy menu, direct merge workflow, squash merge, commit message templates, configurable defaults, and protected branches. Use when working on git merge features or making…

marcus/sidecar · 63 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens