/go-review:go-reviewfrom go-review
Performs security review of Go packages including HTTP/gRPC services, CLIs, libraries, and backends. Covers auth, injection, SSRF, concurrency, crypto, and unsafe/cgo patterns.
Ships in go-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runs in the main conversation. The orchestrator builds a Go inventory, selects review clusters, delegates or sequentially executes their worker protocols, validates artifacts, then runs dedup and FP/severity judges.
Collect these once if they are not explicit. Do not ask for a worker model by default; inherit the current session/client model. Honor a model only when the user explicitly names one that the client makes available.
| Parameter | Values |
|---|---|
threat_model | REMOTE, LOCAL_UNPRIVILEGED, BOTH |
severity_filter | all, medium, high |
scope_subpath | optional; defaults to . |
Resolve the directory containing prompts/clusters/manifest.json and
go_inventory.go from ${CODEX_PLUGIN_ROOT},
${CLAUDE_PLUGIN_ROOT}, or the installed location of this skill. Do not scan a
user's home directory. Abort with an actionable error if no root resolves.
Require Go 1.22 or newer. The inventory is implemented with the Go standard library, uses the locally installed toolchain without automatic downloads, and does not fetch the target's module dependencies. Source using syntax newer than the installed Go version can still fail to parse.
Choose output_dir as .go-review-results/<UTC timestamp>/, or use an external
location requested by the user. Create it and run the inventory portably with:
python3 "${GO_REVIEW_PLUGIN_ROOT}/scripts/prepare_review.py" \
--repo-root "." \
--scope-subpath "${scope_subpath}" \
--output-dir "${output_dir}"
Abort only if the inventory reports zero .go files. If has_service=false,
skip the service-boundary and request-input clusters and continue with any
other detected package capabilities.
The inventory schema remains at version 1. Its implementation uses Go syntax trees for imports, declarations, calls, routes, goroutines, and channel types; do not replace these results with text searches over source files.
This is conservative syntax analysis, not type or SSA analysis. It inventories
all matching non-test .go files regardless of build tags, crosses nested Go
modules within scope, and reports the review root's module in the top-level
module field. Capability heuristics can still over-select a cluster; workers
must verify reachability and data flow from source evidence.
Read go-inventory.json and write context.md with YAML frontmatter:
threat_modelseverity_filterscope_subpathgo_file_countpackage_countoutput_dirThe body must summarize:
Run:
python3 "${GO_REVIEW_PLUGIN_ROOT}/scripts/build_run_plan.py" \
--plugin-root "${GO_REVIEW_PLUGIN_ROOT}" \
--output-dir "${output_dir}" \
--threat-model "${threat_model}" \
--severity-filter "${severity_filter}" \
--scope-subpath "${scope_subpath}" \
--context-roots "." \
--has-service "${has_service}" \
--has-outbound-http "${has_outbound_http}" \
--has-sql "${has_sql}" \
--has-exec "${has_exec}" \
--has-fs-archive "${has_fs_archive}" \
--has-template "${has_template}" \
--has-crypto-auth "${has_crypto_auth}" \
--has-concurrency "${has_concurrency}" \
--has-unsafe-cgo "${has_unsafe_cgo}"
Read plan.json; do not manually re-derive cluster selection.
The portable contracts are the bundled protocol files
agents/go-review-worker.md, agents/go-review-dedup-judge.md, and
agents/go-review-fp-judge.md. Do not assume those filenames are registered as
callable agent names. Read the relevant protocol and pass it with each rendered
prompt to the client-provided delegation mechanism. If delegation is not
available, execute each assignment sequentially in the main session while
preserving the same artifact contract.
Execution rules:
run_in_background=trueIf plan.json contains zero workers, create an empty findings-index.txt, note
that no capability-gated clusters were selected in run-summary.md, and proceed
to reporting. Do not treat an ordinary package with no selected clusters as a
workflow failure.
For each completed worker, run:
python3 "${GO_REVIEW_PLUGIN_ROOT}/scripts/validate_artifacts.py" \
"${output_dir}/plan.json" \
--worker "worker-N" \
--claimed-count "worker-N=<count>"
After all workers complete, reconcile shards and initialize deterministic empty reports when applicable:
python3 "${GO_REVIEW_PLUGIN_ROOT}/scripts/finalize_run.py" "${output_dir}"
This builds findings-index.txt from the union of worker shards and
findings/*.md, retains orphan findings, and records incomplete shards in
run-summary.md; do not silently drop a finding because a worker crashed after
writing it.
Run the bundled dedup protocol, then the bundled FP protocol, each with
output_dir in the prompt. The FP judge also receives the absolute path to
generate_sarif.py. Use delegated workers when
available or execute these protocols sequentially in the main session.
Always run the SARIF safety net:
python3 "${GO_REVIEW_PLUGIN_ROOT}/scripts/generate_sarif.py" "${output_dir}"
Return REPORT.md, REPORT.sarif, go-inventory.json, and run-summary.md.
go-inventory.json exists and reports at least one Go filefindings-index.txt exists even for zero findingsdedup-summary.md, fp-summary.md, REPORT.md, and REPORT.sarif existrun-summary.md.go-review-results/ may contain source excerpts, suspected vulnerabilities,
and absolute local paths. Treat it as sensitive assessment data. Before sharing
or committing it, review and redact the contents. Recommend that users ignore
the directory in the target repository or choose an external output location,
but do not modify .gitignore without permission.
The implementation approach and security-review taxonomy are annotated in references/provenance.md. Treat those sources as guidance; findings still require evidence from the repository under review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
go-security, code-audit, vulnerability-scanning, ssrf, dependency-review
npx claudepluginhub specterops/skills --plugin go-reviewOther plugins' skills for the same job