review-phase
Readonly Code Review of one frozen delivery diff or standalone artifact bundle through the `review` skill's Standards and Spec axes, each run by the `autoreview` helper, ending in one retained report
Files8
View on GitHubSKILL.mdskills/phases/review-phase/SKILL.md
GitHubReview Phase
scripts/review.mjs does the mechanics: pass budget, Review Packet, Pass Report
write and commit. Each call prints one JSON line; a non-null blocker is one
sentence to relay unchanged to the caller, then stop. The reviewed change stays
readonly; the Pass Report that retain commits is the pass's only write.
<skill> is this skill's directory. Run each command from the repository root.
Procedure
Delivery enters at step 1 and continues at the step its next names (prepare
2, review 3, retain 4, done 5). Standalone review enters at step 2.
- Status.
node <skill>/scripts/review.mjs status --goal <delivery-dir>. Complete when the line carriesnext,run_dirandpass_count. - Prepare.
node <skill>/scripts/review.mjs prepare --goal <delivery-dir> --base <sha>, orprepare --standalone <commit|base..head>. Add each option the caller supplies:--spec <folder>,--accepted-risk <kind>:<evidence>(second pass),--human-direction <evidence>(further pass).prepareleaves generated files out of the review: lockfiles, generated snapshots, and paths that.gitattributesat the reviewed head markslinguist-generatedor-diff. When the rest exceeds the review budget (REVIEW_BUDGET_BYTESin the script), it ranks source before tests before docs, larger diffs first, keeps the first file and each later file that still fits, and leaves the rest out asover-budget: that pass is a partial review. Complete when the line carriesrun_idandrun_dir. - Review. Start one fresh general-purpose subagent in the foreground: a
new agent with no parent context, never a fork or an earlier agent (Claude
Agentwithout fork, Codexspawn_agentwithout forked context). Its whole prompt is the path of references/reviewer.md and therun_dir, with no summary or view of the change. Complete when its one-line result and token total are in context. - Retain.
node <skill>/scripts/review.mjs retain --run-dir <run_dir> --subagent-tokens <n>, with<n>the reviewer's token total. Whenretainrefusesfindings.json, send its error to this reviewer, which rewrites the file, and retain again. Complete when the line carriespass_report,run_id,commit,route,findingsandcoverage. - Return. Return
pass_report,review_run_id(therun_id),route.primary,route.secondary_debtand thefindingslist (id,priority,kind,location,return_route) andcoverage, with the transition references/routing.md names for that route. Acoverage.scopeofpartialis a partial review: present it as one, and list eachcoverage.left_outpath with its reason. Write what the user reads through$wait-what. The retain line is the presentation source; the Pass Report stays the review authority. Afternext: done, read these fields from<delivery-dir>/reviews/pass-<pass_count>.json. Complete when the caller holds the route.
The caller owns repair, debugging, debt capture, docs ingest and closeout.