/specclaw-review:reviewfrom specclaw-review
Runs a local review loop using specclaw-review MCP/CLI to review changes before pushing PRs. Guides fixing findings by class, adding variant tests, and verifying fixes with proof checks.
Ships in specclaw-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.
None: SKILL.md is the whole skill.
The loop runs on this machine. Rounds are cheap model calls, so the build server never runs a review round. You push once, after the verdict is clean.
Tools: the specclaw-review MCP server (review_run, review_verdict, memory_query…), or the
specclaw-review CLI. Both run the same code. Never read .specclaw/review-memory/ directly. Use
memory_query.
specclaw-review run --change <change>.
memory_query with the touched files shows what this repo has already been bitten by.specclaw-review run --change <change> --since <head of the previous round>.
The round file (review/round-<n>.json) records head. Code merged from the base branch is excluded
automatically.review.fix_proof, default warn). That --since round first checks the fix: the test
files the fix added or changed (by review.test_paths, with common defaults) run with
review.test_command ({files} expands to them) in a clean checkout of the pre-fix commit, where they
must fail, and of HEAD, where they must pass. Any other outcome is not proven: <reason>. Set
test_command, for example test_command: "pytest -q {files}" or "bash {files}".
--since re-review
re-reports a finding or does not.block: a not-proven round re-opens every blocker and major the reviewer closed in it
(carried: fix not proven: <reason>). A final pass right after a not-proven round checks again.warn: the proof runs the same way, but closed findings stay closed. not proven: <reason>
(also for a missing test_command) is shown on the round file, in the CLI output
(fix-proof (warn): …), in review_run's fix_proof_note and in the verdict line.off: no proof runs and nothing is recorded.warn and block, a finding whose file does not exist at HEAD (renamed or deleted) is carried
(file renamed or deleted) in every later round: the reviewer cannot re-report it on the old path.follow-ups.md.specclaw-review run --change <change> --final. This is the whole change, on the stronger
model.
specclaw-review verdict --change <change> must exit 0. That means clean, with the final
pass at HEAD..specclaw/changes/<change>/review/, follow-ups.md) and the memory file
(git add .specclaw). Then push once: /specclaw:pr.The plugin's hook hands up to review.recall_k (default 3) past lessons to /specclaw:plan <change> and
/specclaw:build <change> as yes/no checks: the change's own lesson lines first, then review memory for
the files the change names, then similar lessons of other changes. Answer each. A "no" needs a task or a
fix. A recall that fails says recall unavailable, and the work goes on.
/specclaw:pr (specclaw-pr) and specclaw-azdo-pr post a specclaw/review-loop status (clean) on the
PR once it exists. Branch policy can require it. They post only when
specclaw-review verdict --change <change> --head <pr-head-sha> exits 0: the verdict is clean and the
final pass ran at that SHA, or the net change from the final pass to that SHA touches only .specclaw/ paths. So the round
records (step 5) and the PR bookkeeping commit keep the status. A commit that touches any other path, docs
included, gets no status. The ci/ templates post the same status from the pipeline. Nothing here approves
or merges a PR.
review:
fast_track: all # or [<change>, ...]; off by default
release_gate:
block_on: [law, security, data-loss] # the default
run is the final pass: one round over the whole change.
Only blocker findings whose class is in release_gate.block_on must be fixed. Every other finding goes
to .specclaw/debt.md through the review writer, never by hand. Tick an item (- [x]) when it is fixed.class: law, security, data-loss or other. A blocker or major
the reviewer left unlabelled is written as unclassified (fail closed): an unlabelled blocker keeps the
fast-track round open, and an unlabelled major goes to debt.md and blocks at release. An unlabelled minor
is other.specclaw-sync release <base> <target> (from specclaw-sync) lists every open
debt.md and follow-ups.md item that the range adds. It exits 1 only when an item's class is in
block_on, or is unclassified. Other debt is listed and released.debt.md item (- [x]) when it is fixed. A follow-ups.md line has no
checkbox: delete it, or change its leading - [ to - [x] [, when it is fixed.specclaw-review rules prints the exact rulebook, in this order:
base;.specclaw/review/rules/*.md;review.governance, read fresh each round.To add a repo rule, write it in .specclaw/review/rules/ or run the learn skill.
Settings under review: in .specclaw/config.yaml that the loop reads beyond models and passes:
| Key | Default | Meaning |
|---|---|---|
test_command | none | Runs the fix's tests; {files} expands to them (appended when absent) |
test_paths | common test globs | Which changed files count as tests for the fix proof |
fix_proof | warn | block: an unproven fix keeps findings open. warn: report not proven and let them close. off: no proof. Anything else is an error |
learn_threshold | 3 | learn proposes a lesson seen in this many changes |
recall_k | 3 | Lessons the recall hook hands to plan and build |
To make local rounds as thorough as a server-side review the project already trusts, mirror it in config:
review:
models: { round: opus, final: opus } # heavy governance: Opus rounds cost the same ~1–3 min
passes: [review, design] # standards pass + design-soundness pass
tools: "Read,Grep,Glob" # let the reviewer open source and design docs
max_turns: 12
governance: # the files the server review inlines, read live
- "CLAUDE.md"
- "**/CLAUDE.md"
- "docs/plans/CODE-CONVENTIONS.md"
Defaults are round: sonnet and final: opus. On replays of 5 real PR cycles, Sonnet rounds matched about a third of
the server's round-1 majors at major severity, while Opus rounds matched about two thirds, in the same 1–3 min.
For a repo whose PRs are judged by Opus, use Opus for rounds too.
With governance set, severity follows the project's own rules (severity: project, the default then). The
plugin's own rule ("a major needs a concrete scenario") applies only to repos without governance. In replays,
the plugin's own severity rules halved the majors filed against a repo whose governance defines what is major.
Docs are part of every reviewed diff, so code and README can be checked against each other. A finding on a doc is never above minor, and a docs-only change skips review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chan4lk/specclaw --plugin specclaw-review3 skills in this plugin
/learnUse when the user wants the review rules to learn from past review findings, to promote recurring lessons into repo rules, or to import an existing pitfalls/standards file into specclaw-review rules./rulesUse when setting up specclaw-review in a repo, when the user wants review rules created or improved, or asks what the reviewer should check in this codebase.Other plugins' skills for the same job