skills/use-cli-codegraph/SKILL.md
Symbol-level code structure queries via codegraph CLI. Callers, callees, change impact, and symbol source trails.
npx skillsauth add thkt/dotclaude use-cli-codegraphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run codegraph <subcommand> --help for options, output format, and exit codes. The help output is the authoritative source for the installed version.
| Purpose | Command |
| ---------------------------------- | ------------------------------- |
| Change impact (what breaks) | codegraph impact <symbol> |
| Callers | codegraph callers <symbol> |
| Callees | codegraph callees <symbol> |
| Symbol source + call trail | codegraph node <name> |
| Explore area (source + call paths) | codegraph explore <query...> |
| Symbol search | codegraph query <search> |
| Tests affected by changes | codegraph affected [files...] |
| Index status | codegraph status |
Structural queries only. Route symbol-level structure questions like who calls X or what breaks to codegraph, and keep free-text content search on Grep / Explore.
| Question | Tool |
| --------------------------------------- | ------------------------------------------ |
| What breaks if I change X / who calls X | codegraph; Grep cannot trace structure |
| Symbol definition + caller/callee trail | codegraph node / explore |
| Tests affected by changed files | codegraph affected |
| Free-text or string content search | Grep / Explore; codegraph is symbol-level |
| Repo without a .codegraph index | Grep / Explore, or prompt to init |
| Item | Detail |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| index | .codegraph/ required. Run codegraph init once per repo. If absent, ask whether to init and stop. Do not create it silently |
| freshness | codegraph status shows up to date. Run codegraph sync after large changes. The watcher daemon keeps it current when running |
| binary | bun global (~/.config/bun/bin/codegraph). On EPERM during install / upgrade, prefix npm_config_cache=$TMPDIR/cg to work around it |
tools
Delegate implementation to codex (coder) via the herdr-agentchat plugin and drive a two-pane conversation to completion.
development
Extract recurring patterns from past closed PRs/issues and the research findings in workspace/research/, verify them against the latest code, and propose them to docs/wiki/ via PR.
development
Create Decision Records (DR) in MADR v4 format with auto-numbering.
development
Detect flaky tests by shaking them — repeated runs under varied order, parallelism, and seed — plus a static smell scan that flags latent flakiness in tests that currently pass. Classify each target as confirmed-flaky, latent-flaky, or stable and fix the root cause without weakening the test. Do NOT use to fix a confirmed single bug (use /fix) or for static-only code review (use /audit).