/crewforth:crew-code-reviewfrom Crewforth
Reviews code changes, PRs, and pre-push diffs with a structured four-step process: group, plan, review, fact-check. Emphasizes high-confidence findings over false alarms.
Ships in Crewforth. 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.
Trigger phrases: "code-review", "review the code", "review the PR", "review my changes", "do a review"
Crewforth adaptation (local, .claude/): applied by
crew-review-agent(read-only). §4 applies, and no vendor or template name reaches an artifact (§4.2).
A review runs in four steps — group, plan, review, fact-check — and reports few findings that are right rather than many that might be. Every step below says what it produces.
Before reading the diff, run the deterministic pre-pass (eval/lib/review-prepass/ in either edition):
bash <dir>/prepass.sh for the staged change, --base <ref> for a branch. It writes
.crewforth/review-prepass.json: secret patterns, a debug call or TODO left in code, shellcheck on shell files, a
lock file that moved without its manifest, a very large change. Carry those over, do not re-derive them; your
time goes to what a pattern cannot see. rc 3 (no Node) or a notMeasured line means that part was NOT checked:
say so in the review, never read it as clean.
Write your own findings in the same shape (crewforth.findings/1: rule review-<category>, severity,
confidence, evidence with file, line and a text quote, detail = what to do instead) and store them with
bash <dir>/../findings/findings.sh write review <file>. A critical or high finding first goes to
crew-refuter (claim + file:line, one call per lens, in parallel) and the document is written with
--verified, which then refuses any medium-or-higher finding without its verifiers. This is model discipline:
no hook runs the pre-pass or reads review.json.
HEAD~1; that reviews a
commit nobody named.Read together what has to be understood together: an interface and its implementations, the code that produces something and the code that consumes it, the same resource in its language or environment variants. Look across each group for a contract that broke between two files, or an update that reached one of them and not the other. Then look at every file in the group on its own — a small or secondary file is where a missed update hides.
Before the first finding, write two things down:
settle()", "the migration's down step"). No risk worth checking → write (none) and say so.The plan is what keeps the review on the change instead of on whatever the eye lands on first.
Every finding carries one severity and one category.
| Severity | What it is | Blocks the commit? |
|---|---|---|
critical | a security hole, lost or corrupted data, a crash | yes |
high | a core function stops working, or works wrongly | yes |
medium | performance, maintainability, an unhandled edge case | no |
low | readability and style | no |
info | a note for the reader (the pre-pass marks an added TODO with it) | no, and not counted |
Category: bug · security · performance · maintainability · test · style · docs.
A blocker is a critical or high finding — nothing else stops the commit, and the review is clean when none
is left open.
low, never block, and fit in one sentence.low / docs finding, because the next reader will believe it.file:line · severity · category · what you observed · what to do instead
What to do instead is the reason the finding exists; a finding without it is an opinion.
Verifier integrity: flag any change that makes a check pass by weakening the check — deleting or loosening an assertion, lowering a threshold, skipping a test, editing the test instead of the code — rather than fixing the behavior. A test or gate that grades itself lax is worse than none; a verifier must stay external and grounded.
Subject integrity: the inverse case — the check is untouched, but what it checked is gone. Flag a change that deletes or stubs the code path, so the check passes over behavior that no longer runs; narrows the run to a subset (fewer cases, one platform, a filtered input set) where the property happens to hold; turns an all-of requirement into an any-of one; or relaxes the rule the code is there to enforce — a widened type, a dropped uniqueness or referential constraint, an exception list holding exactly the failing case. Ask not "does it pass now" but "does the system still do what this check was protecting". Retiring a genuinely obsolete check is legitimate: say so in the diff and name what covers it now.
A silenced checker is the same failure written as a cast or a comment: as any, as unknown as T, a
@ts-ignore or a lint-disable on a changed line. The pre-pass flags the casts (prepass-silenced-checker); ask what
type error the cast hides. A replaced pattern left half-migrated — the new way added beside the old one, with
callers still on the old — is a finding too: name the call sites that did not move.
Finding a problem and confirming it are two acts. A first-pass "this looks wrong" is a candidate, not a verdict. Before a finding is reported — especially a blocker — run a second pass that tries to disprove it:
low dressed up as a blocker?The disprove pass is asymmetric.
"Independent" costs a separate context. A second pass in the same context has already read the first one's
reasoning, so it cannot be blind to it — and its agreement is the first pass nodding at itself. For a blocker,
run the disprove pass as its own subagent, handed the claim and the file:line but not your argument. If you did
not isolate it, label the verdict as a single pass rather than calling it independent. The full contract —
isolation, one lens per verifier, and why unanimity for the same reason is a monoculture — lives in
security-scan/references/verify.md; it is one discipline, not two.
A confirmed finding may still not be new, and one that was fixed once and came back needs a different fix. Search
by code, not by commit message — a message states intent, not content. The exact git forms (-S vs -G, the
merge-base bound, why --follow does not combine): references/history-search.md.
If a commit removed the guard, check, or test this diff would restore, the finding is a re-introduced regression — the question becomes "what removed the fix, and does that reason still hold", the removing commit is cited in the finding, and the deleted test is restored rather than a new one written.
For hard-to-reverse calls (architecture, public API, security boundary), run several independent adversarial
lenses then synthesize. Full method: references/panel-mode.md.
/simplify is shadowed or absent)Behaviour does not change, nothing is deleted that you cannot explain, and the pass stays inside the diff:
references/simplify.md.
| Excuse | Reality |
|---|---|
| "The tests pass." | Tests cover what the author thought of; the review is for what they did not. |
| "It is a small diff." | Small diffs change auth checks, defaults and error paths. Read every line. |
| "CI would have caught it." | Name the check that would have; if you cannot, it would not. |
| "I already flagged something in this file." | One finding does not clear the rest of the file. |
Settle it with the code's behaviour and a check that can be run. If that does not settle it, take it to the user rather than blocking in silence.
Reviewing and disposing of what the review found are two acts, and only the first one is habitual. Every finding that survives the disprove pass leaves the review with an explicit disposition — never an unanswered comment and never a silent drop:
| Disposition | Means | Where it goes |
|---|---|---|
| fixed now | the owning specialist changed the code | the diff; re-review the change |
| tracked | real, not for this change | an issue/task with the file:line — cite the id in the review |
| accepted | a real cost the team is choosing to carry | an adr when it is architectural, a code comment when local |
| dropped | disproved by the code | say so; a candidate that vanishes unexplained reads as an oversight |
A blocker (critical / high) may only be fixed now or tracked. "Accepted" needs the user's decision — an
agent does not grant it to itself. Once the user grants it and it is recorded, it is not a deferral (CLAUDE.md,
"No deferral"). Record it in the finding's disposition field when you write .crewforth/review.json.
A finding already disposed of is not raised again. Before writing, read the previous .crewforth/review.json if
there is one. A finding whose id matches one marked tracked, accepted or dropped there is carried over with
that disposition and its reason, not raised as new — unless this diff touches the code it cites. Matching works only
if you reuse the previous id for the same finding, so do. Re-anchor a carried finding's evidence to where those
lines are now (the validator refuses a stale anchor); if they are gone, judge it again. A blocker is never carried
over: a critical/high one is judged again on every diff.
Close the review by stating the counts per severity and per disposition; an unreported finding is indistinguishable from one that was never made, which is exactly the state a review exists to leave behind.
When the review is someone else's and the code is yours, read every item before changing any line, group by
cause rather than patching per symptom, and give each item the same disprove pass as a finding of your own. The
five questions that decide answer in the thread vs edit the code: references/receiving.md. Every inbound
item leaves with a disposition from the triage table above — a reasoned refusal is an answer, silence is not.
notMeasured is reported as unchecked), and the findings are in .crewforth/review.json.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crewforth/crewforth --plugin crewforth60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
/automode-policyAuto-mode classifier config: inspect what the classifier that answers permission prompts is configured
with, and catch the silent case where a custom autoMode block drops the built-in block rules.
/backend-architectureDecide, record and apply the backend stack and architecture pattern.
Use when backend work starts with no recorded stack, or a framework/DB/pattern must be chosen.
/brainstormUse when the ask is still fuzzy and no direction is chosen yet: "not sure what we want", several ways to go,
or a scope to settle before any plan is written.
Other plugins' skills for the same job