/do-it:review-workfrom do-it
Adversarial review of a completed FEATURE or single task: dispatch two parallel subagents for spec compliance and quality+security. Used by /do-it:review and build-loop before archiving.
Ships in do-it. 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.
Both stages run as fresh subagents. Each one sees the result only. A reviewer who watched the build defends the choices it watched. The default scope is the feature, reviewed once, right before the archive. That is the only scope that catches coherence, regression, and duplication across tasks.
House voice: ${CLAUDE_PLUGIN_ROOT}/references/voice.md.
| Stage | Agents | Note |
|---|---|---|
| The two lenses | 2 | One message. They run in parallel, so two lenses cost the wall clock of one. |
| Refutation (Step 2a) | 0 at the default | The loop thread refutes inline at refute_cap findings or fewer. |
| A re-review after REVISE (Step 3d) | 1 | One lens over the blocking tasks' diff, not two over the feature. |
Every deterministic gate stays mandatory: verify-report.sh, security-check.sh, typecheck, lint, tests, and
the build. This skill cuts model opinions. It never cuts a measurement.
| Invocation | Scope |
|---|---|
/do-it:review [<change-id>] | that change, whole (default: the latest open one) |
/do-it:review <change-id>/<task-id> | one task — the escape hatch, always open |
| build-loop Step 7 | the change the loop archives |
build-loop Step 6 under review_cadence: per-task | the task the loop just built |
review_cadence: off turns off the automatic call only.
Each subagent reads what it needs. Resolve only {change-id}, {scope}, {base} (git merge-base <base-branch> HEAD, or the task's commit sha), {domain} (the subdirectory under .do-it/specs/), and
{PLUGIN_ROOT} (absolute — a subagent cannot expand it).
Never paste tasks.md, proposal.md, spec text, or a diff into a brief.
${CLAUDE_PLUGIN_ROOT}/references/briefs/ holds review-spec-compliance.md (Stage 1) and review-quality.md
(Stage 2). They are independent: Stage 2 never needs Stage 1's verdict. There is no wiki stage — the archive
wiki pass finds and fixes in one dispatch.
A finding travels a long way from one model said so · an unchecked box · a four-phase iterate-fix · a
re-review · a PAUSE and a human-attended /do-it:grill on the second round. Nothing sits between the claim and
that cost. One cheap skeptic does.
1. Merge and dedupe — the loop thread, no agent. Flatten both lenses' findings: lines. Dedupe on
file:line plus the normalized claim (lowercase, every run of non-alphanumerics collapsed to one space, the
first 80 characters). This is plumbing over lines you already hold, not judgment. To spend an agent on it is the
mistake this whole design argues against.
2. Route — three classes never reach a skeptic:
| Class | Why |
|---|---|
src: security-check | A deterministic scanner files it, with near-zero false positives. Always CONFIRMED. No model may talk a leaked credential out of a verdict. |
Any finding whose claim or fix names security-check.sh, even with src: missing | Fail closed. A skeptic starts from "the claim is wrong". A lens that forgot the marker must not hand it a real BLOCK. |
MINOR | It cannot change the verdict (PASS = no BLOCKER and 2 MAJOR or fewer), so a skeptic on it is pure spend. |
3. Refute the rest — inline, in the loop thread. Order the remaining findings BLOCKER → CRITERION-FAIL →
MAJOR, and take the first refute_cap of them (default 3).
The loop thread reads each file:line itself. It applies
${CLAUDE_PLUGIN_ROOT}/references/briefs/review-refute.md word for word. State what the code really does before
you judge it. Return REFUTED only with a named file:line. Three reads cost the parent less than three
dispatches, and the round trip disappears.
Dispatch subagents (one per finding, all in ONE message, with review-refute.md) only when the capped set
holds more than 5 findings. Above that width, the reads cost the parent more than the fan-out does. At the
default cap of 3, refutation dispatches nothing.
The cap limits spend, never severity. A finding past refute_cap keeps the severity its lens filed, with no
refutation, and the sidecar logs the unrefuted count. Severity by sort position is not acceptable.
4. Disposition — a ratchet. It turns in the safe direction only:
| Verdict | Effect |
|---|---|
CONFIRMED | It keeps its filed severity. It enters the verdict. |
REFUTED | It drops out of the verdict. The sidecar records it with its evidence and "refuted": true. |
UNCERTAIN | It keeps its filed severity, unchanged. Never demote it. |
UNCERTAIN means unmitigated. An unmitigated security finding a real user can reach is a BLOCKER. To demote
it to MAJOR is how a genuine one passes as PASS. A security-shaped claim can never drop a level · authorization ·
secrets · injection · input validation at a trust boundary. It leaves a verdict only as REFUTED with a named
mitigation.
The final verdict is the worse of the two. REJECT beats REVISE, and REVISE beats PASS. The blocking tasks are the union of what both stages named, and only those reopen.
The thresholds do not change (review-spec-compliance.md, review-quality.md). They apply to the confirmed
plus unrefuted findings rather than to the raw ones.
3a. Write the sidecar first. The loop re-reads progress.md every iteration, forever, so reviewer prose must
not land there. To discard it outright is what left iterate-fix with nothing to fix from, a turn later, after
a compaction. The findings go to a read-once file instead.
The loop thread writes it, in the main tree, as the single writer:
.do-it/changes/<change-id>/review-<round>.json
<round> = 1 + the number of review-*.json files already in that folder. No clock takes part.
{ "round": 1, "change_id": "…", "scope": "feature|task|revise-fix", "base": "…", "head": "…",
"verdict": "PASS|REVISE|REJECT", "blocking_tasks": ["T3"],
"gates": { "tests": "green", "typecheck": "green", "lint": "green", "build": "green", "security": "green" },
"refute": { "cap": 3, "mode": "inline|dispatched", "checked": 3, "unrefuted_over_cap": 0 },
"findings": [ { "severity": "BLOCKER", "file": "src/a.ts", "line": 42, "task": "T3",
"claim": "…", "fix": "…", "src": "quality",
"status": "CONFIRMED|REFUTED|UNCERTAIN|not-refuted",
"refuted": false, "observed": "…", "evidence": "…" } ] }
Merge both lenses into one file. A gate column takes the worse of the two (red beats skipped, and skipped
beats green). The findings are the union. Record every finding · confirmed · refuted · uncertain ·
unrefuted over the cap. /do-it:grill and the human then see everything the panel raised, not only what
survived. Nothing else reads the file. iterate-fix deletes nothing, and the archive carries it with the change.
3b. Then discard the reviewer output. Never paste it into progress.md.
Append exactly this. **Verdict:** X MUST start its own line. scripts/loop-metrics.sh greps it anchored at
the start of a line, so anything before it makes every metric read zero.
### Review — {change-id}{/task-id}: {title}
**Verdict:** {PASS | REVISE | REJECT}
**Blocking tasks:** {ids or "-"}
{scope} · spec {N}/{M} criteria · quality {B} blockers, {J} major, {I} minor · security {clean | N findings}
refuted {R} of {D} checked{, {U} over cap unrefuted}
/do-it:iterate, then Step 3d. Two consecutive REVISE verdicts on
one feature: stop, and run /do-it:grill.<!-- last_reject_reason: top 3 issues -->. Run
/do-it:grill before you rebuild.When you hand off to iterate-fix, pass the sidecar's absolute main-tree path. The fixer may run in
.worktrees/<change-id>/, where .do-it/ is a separate diverging copy and the file does not exist
(references/parallel-loop.md). When you cannot pass a path, inline the finding lines into the fix brief.
A REVISE names its blocking tasks. The fix touches those tasks. A second full-feature review re-reads every file the first review already cleared. It charges two lenses and refutation for that.
So the re-review after iterate-fix is narrow by default:
| Condition | Re-review |
|---|---|
| The fix touched only files inside the blocking tasks | One lens. Dispatch review-quality.md alone, over {fix-base}..HEAD. |
| Stage 1 filed a CRITERION-FAIL | The loop thread re-checks those named criteria itself, against the sidecar. That is a checklist, not judgment. |
| The fix touched a file outside the blocking tasks | Escalate. Run the full Step 1 over the feature again. |
| This is the second REVISE on one feature | Do not re-review. Stop the loop and run /do-it:grill. |
Compute {fix-base} as the HEAD sha from before iterate-fix ran. Record the round in the sidecar with
"scope": "revise-fix", so the round count and the escalation rule stay honest.
The narrow path may return PASS or REVISE only. A REJECT from a narrow re-review escalates to the full review first. One lens over one diff never rejects a feature.
The two lenses are Task subagents, and they stay so. Nothing in this skill needs the Workflow tool, and
opts.schema is a Workflow-only affordance. Never assume a lens returned validated structure.
When a lens returns an unparseable block, do three things. Record what did parse. Log one line that names the
degraded lens. Fall back to counts only in progress.md. A malformed reviewer is a degraded review, not a
failed one. Do not run the whole review again, and do not invent a finding to fill the gap.
The gate marker. Write it under one condition only. Someone invoked this skill directly at a
─── UI-first review gate ───, the change has every ui-* box ticked, and the marker is absent. On PASS, write
<!-- gate-passed: {YYYY-MM-DD} --> below the gate line. Never write it on REVISE or on REJECT. The normal path
is build-loop Step 4 (references/ui-verification.md).
{change-id}{/task-id}: {VERDICT} ({scope}, {N} tasks, {M} files)
S1 {verdict} {F}/{N} criteria failed · S2 {verdict} {B}bl {J}maj {I}min · security {clean|N}
Refuted {R} of {D} checked ({inline|dispatched}){, {U} over cap}
Blocking: {ids or none} Next: {archive | /do-it:iterate then Step 3d | /do-it:grill}
progress.md or into a brief.security-check finding sent to a skeptic, or an UNCERTAIN allowed to demote anything.refute_cap. Over the cap means unchecked, not cleared.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flyingwebie/skills --plugin do-it13 skills in this plugin
/build-loopExecute Do-it tasks. Reads .do-it/specs/ (current truth) and .do-it/changes/ (proposals), picks the next buildable band, builds under TDD discipline (software) or acceptance-driven (generic), respects the UI-first layer gate, and keeps the loop memo current. Product review runs per feature; optional knowledge maintenance never blocks code-first delivery. Triggered by /do-it:build or an autonomous loop each iteration.
/designEmit the compact design state the build loop consumes: tokens, the F0 foundation manifest, and per-entity contracts. Narrative design docs defer to --full.
/do-itRun the Do-it spec-driven MVP workflow in Codex. Use for PRD, brownfield mapping, config migration, grilling, design, preview, building, review, iteration, project status, retrospectives, or autonomous delivery./grillAdversarially challenge a spec-layer artifact — PRD, change proposal, or design system — before code exists. Hunts gaps, contradictions, ambiguity, scope creep. Triggered by /do-it:grill or "challenge the PRD", "poke holes".
/iterate-fixApply fixes after a REVISE verdict, or after a task's mechanical gate goes red. Root-cause discipline only — no symptom fixes, no test-softening. Triggered by /iterate, or by the Ralph loop on a red gate or a REVISE.
/llm-wikiMaintain docs/ as an optional LLM Wiki. Direct Pass/Query always work; automatic passes run only when project knowledge maintenance enables them.
Other plugins' skills for the same job