claude-code-review — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited claude-code-review (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Run qq scripts as${CLAUDE_PLUGIN_ROOT}/bin/<name>: they are not on PATH, so a bareclaude-review.shexits 127.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Workflow: take--workflow <name>from$ARGUMENTSif present, else runqq-config.py field workflow. Onprototype-loop, run the single round ofshared/prototype-loop.md§Code review instead of the loop below (it ends with recording the review and, when the work is finished, §Closeout); onheavy-review(the default), follow this file as written.
Arguments: $ARGUMENTS
--base <branch>: full branch diff against a base--commits: review only the most recent commit--files "a.cs b.cs": explicit file list--spec <path> (repeatable): also check the changes against these specs (design doc, plan, or any doc that records the user's decisions)--spec, --prompt, and the other flags do not choose the scope. Unless $ARGUMENTS has --base, --commits, or --files, pick the scope below and pass it along with the other flags. --auto belongs to this skill and the script ignores it; --workflow <name> the script uses only to decide whether to open the review gate.
Default: uncommitted changes. Run { git diff --name-only HEAD -- '*.cs'; git ls-files --others --exclude-standard -- '*.cs'; } | sort -u to get the changed and new files.
Override order:
git diff --name-only develop...HEAD -- '*.cs'--base developPass the file list to the review script as --files.
When the changes finish a feature or a milestone, also pass its design doc and plan with --spec (next to the scope from above). The review then also lists what the specs ask for that the code does not do, what it does differently, and protections or restrictions nobody asked for. Skip it for small fixes. Rounds 2+ use the same scope (recomputed the same way, plus every file this review's fixes created or changed) and the same flags, without --spec: the [Spec] items were listed and verified in round 1.
Loop automatically — do not ask the user between rounds. Stop when any is true:
[Critical] issues in the review result, and no code was written for [Spec] items this round[Critical] issues (only repeats of rejected ones or of items on the "Needs the user's decision" list)Each round:
#### a. Send to Claude for Review If qq-policy-check.sh is available, first run it on the same changed .cs files and treat its deterministic findings as established.
Run in the background (Bash tool, run_in_background: true):
${CLAUDE_PLUGIN_ROOT}/bin/claude-review.sh $ARGUMENTSThe script calls claude -p and writes results to stdout and Docs/qq/<branch-name>/claude-code-review_<timestamp>.md. It always adds a test-quality section (and a spec-conformance section with --spec), even with a custom --prompt; don't repeat them in your round-2 prompt. A review takes 2-5 minutes and you are notified when it finishes.
From round 2 onward: If the previous round had findings deemed over-engineered, append --prompt to the round-2 arguments (see Spec Check):
${CLAUDE_PLUGIN_ROOT}/bin/claude-review.sh <round-2 arguments> --prompt "Review these code changes using the same criteria as round 1 (bugs, architecture, performance, security, style). Additional context: the following suggestions from the previous round were deemed over-engineered and replaced with simpler solutions: <list items and rationale>. Do not re-suggest more complex approaches unless the simpler version introduces a real defect. Classify by severity: [Critical] [Moderate] [Suggestion]."#### b. Summarize Review Results
Read the output file and summarize the findings for the user by severity ([Critical], [Moderate], [Suggestion]), with any [Spec] items (only with --spec) listed apart from the severities.
#### c. Independent Verification
Verify every critical and moderate finding with a subagent, not with a quick look of your own. Verify Missing, Wrong, and Unrequested [Spec] items the same way, passing the spec paths. Needs-runtime-check items and the not-due-yet line are not verified: give the user at most 5 runtime checks (the likeliest to be wrong); the rest stay in the review file.
In a Unity project, work out the live Editor channel once — qq-unity-cli.py channel --project "$PWD" prints unity-cli (calls go through unity command --project-path "$PWD" --json --no-banner …), tykit or none; see shared/unity-live-state.md — and name it in each verifier's prompt (on tykit, also give it shared/tykit-reference.md). Item 7 of the verification prompt says how a verifier uses it.
Dispatch the verifiers with the Agent tool (subagent_type: "general-purpose", model: "opus"). By default hand all of this round's findings to one verifier, which gives a verdict for each; split them into a few groups verified in parallel only when there are too many for one agent to check properly. Each prompt must include the original findings (verbatim), relevant file paths, and the instructions from ../../shared/verification-prompt.md.
The review script leaves a gate: Edit/Write on .cs and Docs/*.md files stays blocked until you write the number of verifiers to it and that many have returned. Write it right after dispatching them:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
if qq_session_id && [[ -f "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID" ]]; then
IFS=: read -r ts count _ < "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"
echo "${ts}:${count}:N" > "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"
fi(N = the number of verification subagents dispatched. The gate file is per session; if this session has none, there is nothing to write.)
Aggregate: After all subagents return, present each finding's verdict and supporting evidence to the user.
#### d. Fix the Code
shared/user-decisions.md): if the only fix you see is one of them, or a confirmed Unrequested [Spec] item is one without the user's words, put it on the "Needs the user's decision" list and keep the normal rule in the code/qq:test with the narrowest scope)Test failures unrelated to this change: ask the user whether to investigate and fix them, or log them and continue the review. Don't decide on your own that they can be skipped.
#### e. Decide Whether to Continue
[Critical] issues confirmed and fixed → automatically start the next round (back to a)[Critical] this round was rejected and nothing was fixed → end the loop and report the rejections with their reasons[Spec] items this round → run one more round (see Spec Check) so that code gets reviewed, even with no [Critical] issues[Critical] issues (only repeats of rejected ones or of items on the "Needs the user's decision" list) → output final status and end the loop[Critical] issues → output "Review passed" and end the loopPrint === Round N/5 === at the start of each round.
After the review loop ends, close the review gate.
If the review passed, meaning the loop ended with no confirmed [Critical] left unfixed (rejected ones don't count), first record that for this session so /qq:go stops recommending the review. Do it even when a round had nothing to verify: no verifier was dispatched then, so nothing else writes this record. Skip it when 5 rounds ran out with a confirmed [Critical] still open, or when one is waiting on the user's decision:
"${CLAUDE_PLUGIN_ROOT}/bin/qq-run-record.py" record --project . --stage review_gate --command "/qq:claude-code-review" --status verified --state-onlyThen, however the loop ended, remove the gate:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
if qq_session_id; then rm -f "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"; fiAfter the review loop ends, recommend the next step:
/qq:test to verify?"/qq:test to make sure nothing broke?"--auto mode; don't wait for answers)/qq:test to check impact, or continue fixing manually?"`--auto` mode: run qq-execute-checkpoint.py pipeline-advance --project . --completed-skill "/qq:claude-code-review" --next-skill "/qq:test", then invoke /qq:test --auto.
claude-review.sh needs the Claude CLI (claude) on PATH.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.