Build a cached code-graph (.kuzushi/code-graph.json) — entry points + per-symbol caller counts (blast-radius / attack-surface signal) — so producers like /diff-review query it instead of re-deriving caller info live. Uses real Joern call edges when a CPG is built, else a deterministic ripgrep heuristic (no heavy tooling required). Re-run after large code changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kuzushi-security-plugin:code-graphThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build (or refresh) the persistent code-graph for this repository.
Build (or refresh) the persistent code-graph for this repository.
Run, using the project working directory as <repo>:
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.
callIn edges). The ripgrep
fallback is a call-site tally — a blast-radius signal, not a true graph. Check the backend field./diff-review still falls back to
live caller counting — the graph just makes it cheaper and repo-wide.npx claudepluginhub allsmog/kuzushi-security-plugin --plugin kuzushi-security-pluginProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.