code-graphlisted
Install: claude install-skill allsmog/kuzushi-security-plugin
# Code graph
Build (or refresh) the persistent code-graph for this repository.
Run, using the project working directory as `<repo>`:
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/cmd/code-graph-build.mjs" --target "<repo>"
```
It writes `.kuzushi/code-graph.json` (`{ entryPoints[], symbols:[{name,file,line,callerCount}], … }`,
symbols ranked by `callerCount` — the blast-radius signal) and prints a summary (definition count,
top symbols, whether a Joern CPG is present for a higher-fidelity upgrade). Relay the summary.
Consumers read the artifact when present: `/diff-review` uses each changed symbol's `callerCount`
for a deterministic blast radius (instead of live caller counting), and the hunters may consult it
for reachability. With a Joern CPG present (`/build-databases`) it uses **real call edges** (`callIn`
counts); otherwise it's a ripgrep call-site tally — either way re-run it after big changes.
## When NOT to use
- As a vulnerability finder — it's a structural index, not a hunter; it makes no security judgments.
- On a repo you haven't changed since the last build — the cached artifact is still valid; only
re-run after meaningful code changes.
## Rationalizations to Reject
- *"The caller count is exact."* → Only with the Joern backend (real `callIn` edges). The ripgrep
fallback is a call-site tally — a blast-radius *signal*, not a true graph. Check the `backend` field.
- *"No graph, so skip blast radius."* → Without the cached graph, `/diff-review` still fall