/metareview:review-task-done runs instead · from metareview
Runs metareview's deterministic task-done code review gate before claiming a coding task is complete. Handles exit codes, NEEDS_REVISION fix loops, ESCALATED stops, and sharded reviews for large diffs.
This skill never runs in Claude Code
It ships in metareview at skills/, but /metareview:review-task-done (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Run this before saying a coding task is done.
metareview review task-done <task-id-or-path> [--base <ref>] [--previous-run <run-id>] [--max-attempts <n>] [--evidence <path>] [--shard-result <path>]... [--cross-shard-result <path>]
Use --base for the reviewed diff, --previous-run after fixes, and --evidence for validation output. Use --max-attempts only on the first run; it sets the chain budget (default 3), with the first blocker run as attempt 1. A branch name resolves to where HEAD forked from it; --base last-reviewed reviews only what is new since the last passing review of this scope (metareview review checkpoint --scope task-done prints that commit; with no passing review that covers the branch back to its fork point — or no local main/master to fork from — it exits 2).
Prefer structured evidence receipts:
go run ./cmd/metareview evidence run -- go test ./...
Freeform evidence remains accepted as a fallback, but receipts preserve command, exit code, timestamps, and output hashes.
0 means verify PASS/PASS_ADVISORY with zero blockers; 1 with a review path means follow that log; nonzero without a path means read stderr.NEEDS_REVISION: fix blockers and re-run with --previous-run <run-id>.ESCALATED: stop same-target retries; human must narrow, split, or redesign the target.The review updates .metareview/findings.jsonl, .metareview/runs.jsonl, docs/metareview/FINDINGS.md, and Markdown review/context artifacts.
When the branch diff exceeds the review context limit, the gate returns NEEDS_REVISION with the
context-risk blocker and writes one prompt pack per shard under
.metareview/shards/<scope>/<target-slug>/<planHash>/, plus a plan.json naming every shard, its
hash, and resultsDir.
--max-attempts on the first run: a sharded gate costs a plan run, a results run, and one
run per fix round. Mid-chain the flag is ignored.plan.json. Dispatch one subagent per shard-<id>.md against
rubrics/task-done-review-rubric.md, and one over cross-shard.md when there is more than one
shard.resultsDir as shard-<id>.<shardHash>.result.json, and
cross-shard.<planHash>.result.json for a multi-shard plan. Each pack states the exact contract.
--shard-result (repeatable) and --cross-shard-result (once: a plan has one cross-shard
result) pass a file in from elsewhere. --cross-shard-result replaces a committed one, since a
plan holds a single cross-shard slot; --shard-result does not — an explicit path is
ingested alongside the resultsDir listing, so passing a shard whose result is already
committed raises a duplicate shard result blocker. Replace the committed file instead.--previous-run <run-id>. With every shard covered and the aggregate passing, the
context-risk blocker becomes advisory and the lints run over the whole branch diff.docs/metareview/shards/ with the review log. Editing a file changes only
its own bucket's shards, unless the total branch diff crosses a bits boundary, which re-cuts every
shard in the plan. After a fix round, re-review only the affected shards and the cross-shard result;
leave the rest.Local content is in no pack. Commit or remove staged, worktree and untracked files first — an
untracked file over 4,000 bytes raises UNTRACKED_TRUNCATED, which shard results can never satisfy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dsifry/metareview --plugin metareview8 skills in this plugin
/fsmDrive a metareview FSM workflow run (sdlc-loop or review-loop) through the `metareview fsm` CLI — the agent does each node's work, the machine keeps the audited state./learn-post-mergeRun metareview post-merge learning after a PR or local merge completes; curates reusable review knowledge, records discarded low-value candidates, and appends reviewer calibration./review-artifactReview a spec, plan, design, decomposition, architecture doc, pre-mortem, runbook, or acceptance report with metareview.Other plugins' skills for the same job