con un clic
review-phase
Run the review cycle for a completed phase artifact with plot validation
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Run the review cycle for a completed phase artifact with plot validation
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Human gate for reviewing and approving full verification after Phase 5
Display current analysis pipeline status
Initialize and run the full automated analysis pipeline from analysis question to final documentation
Execute a single phase of the analysis pipeline by phase identifier
| name | review-phase |
| description | Run the review cycle for a completed phase artifact with plot validation |
| user-invocable | true |
Run the review cycle for a completed phase artifact. This enhanced protocol uses 4-bot review (replacing the previous 3-bot) for most phases, 5-bot for final documentation, and 1-bot for selection and observed results. All review tiers include plot-validator for phases that produce figures.
Arguments: $ARGUMENTS
The argument is optionally a phase identifier: 1, 2, 3, 4a, 4b, 4c, or 5. If omitted, read STATE.md to determine the current phase.
STATE.md to confirm the analysis state.analysis_config.yaml for cost controls (max_review_iterations, review_warn_threshold).| Phase | Review tier | Plot-validator |
|---|---|---|
| 0 | 2-bot (logic, then arbiter) | Yes (if figures produced) |
| 1 | 2-bot (logic, then arbiter) | Yes (if figures produced) |
| 2 | self (no action needed -- return immediately) | No |
| 3 | 1-bot (critical only) per channel | Yes |
| 4a | 4-bot (physics + critical + constructive, then arbiter) | Yes |
| 4b | 4-bot | Yes |
| 4c | 1-bot | Yes |
| 5 | 3-bot (domain + rendering, then arbiter) | Yes |
If phase is 2, report "Phase 2 uses self-review. No external review required." and return.
Find the latest artifact for this phase:
| Phase | Artifact pattern | Location |
|---|---|---|
| 1 | STRATEGY*.md | phase1_strategy/exec/ |
| 3 | SELECTION*.md | phase3_selection/exec/ or phase3_selection/channel_{name}/exec/ |
| 4a | INFERENCE_EXPECTED*.md | phase4_inference/4a_expected/exec/ |
| 4b | ANALYSIS_NOTE_DRAFT*.md | phase4_inference/4b_partial/exec/ |
| 4c | INFERENCE_OBSERVED*.md | phase4_inference/4c_observed/exec/ |
| 5 | ANALYSIS_NOTE*.md | phase5_documentation/exec/ |
Also locate upstream artifacts that reviewers need for context (see the dependency table in CLAUDE.md).
Read the experiment log for this phase if it exists.
Identify all figures in the figures/ directory for this phase -- these will be passed to the plot-validator.
Update STATE.md: status: reviewing, timestamp.
Initialize iteration counter: iteration = 0.
Loop until PASS, ESCALATE, or max iterations:
Increment iteration counter. Check cost controls (same thresholds as 4-bot).
Spawn logic-reviewer in parallel with plot-validator (if figures exist):
Logic reviewer instructions:
review/logic/ with session-named filenamePlot-validator: same instructions as 4-bot below.
Spawn arbiter via SendMessage:
review/arbiter/4-5. Handle decision same as 4-bot below.
Loop until PASS, ESCALATE, or max iterations:
Increment iteration counter.
Check cost controls:
iteration > review_warn_threshold: log WARNING -- "Review iteration {iteration} for phase {phase}. Consider whether issues are fundamental enough to escalate."iteration > 5: log STRONG WARNING.iteration >= max_review_iterations: force ESCALATE to human. Update STATE.md: status: blocked. Report and stop.Spawn physics-reviewer, critical-reviewer, and constructive-reviewer in parallel via SendMessage. If this phase has figures, also spawn plot-validator in parallel with the three reviewers:
Physics reviewer instructions:
src/methodology/03-phases.md (review focus for this phase), the artifact under review, upstream artifacts, experiment logreview/physics/{REVIEW}.md with session-named filenameCritical reviewer instructions:
review/critical/ with session-named filenameConstructive reviewer instructions:
review/constructive/ with session-named filenamePlot-validator instructions (if figures exist):
figures/ directoryconventions/ plotting standards (axis labels, font sizes, color schemes, legend placement, ratio panels, domain style requirements)review/plot-validation/{REVIEW}.mdAfter all reviewers complete, spawn arbiter via SendMessage:
review/physics/, review/critical/, review/constructive/, and review/plot-validation/ if it exists)review/arbiter/ with session-named filenameRead the arbiter decision from the latest file in review/arbiter/.
Handle the decision:
PASS: Check for regression triggers in the review output. If none found, update STATE.md (status: passed), record in Phase History table (including iteration count), and return the result.
ITERATE: Apply fixes using the arbiter's structured instructions:
type: exact): Apply directly via Edit tool — no subagent needed.type: requires_reasoning): Spawn fix agent with the section path, instruction, and previous artifact. Fix agent addresses only these items.ESCALATE: Update STATE.md (status: blocked, record escalation reason). Report to user: "Phase {phase} review escalated. Reason: {reason}. Human intervention required." Stop.
Increment iteration counter. Check cost controls (same thresholds).
Spawn domain-reviewer and rendering-reviewer in parallel, plus plot-validator if figures exist:
Domain reviewer instructions:
review/domain/ with session-named filenameRendering reviewer instructions:
conventions/ document formatting standardsreview/rendering/{REVIEW}.mdPlot-validator: same instructions as 4-bot above.
Spawn arbiter via SendMessage:
review/arbiter/4-5. Handle decision same as 4-bot.
For Phase 3 with multiple channels, run this loop for each channel directory independently.
Loop until no Category A issues, ESCALATE, or max iterations:
Increment iteration counter.
Check cost controls (same thresholds as 4-bot).
Spawn critical-reviewer via SendMessage. If this phase has figures, also spawn plot-validator in parallel:
Critical reviewer:
review/critical/ with session-named filenamePlot-validator (if figures exist):
review/plot-validation/{REVIEW}.mdRead the review from the latest file in review/critical/. Also read plot-validator output if produced.
Check for Category A issues (from critical reviewer AND plot-validator):
No Category A from either: Check for regression triggers. Update STATE.md, record in Phase History, return PASS.
Category A found: Re-spawn the phase executor with:
Max iterations reached: Force ESCALATE. Update STATE.md: status: blocked. Report and stop.
After any PASS decision, scan all review outputs for regression triggers. A regression trigger is any statement indicating that work done in a prior phase is now known to be incorrect, incomplete, or based on wrong assumptions. Examples:
If a regression trigger is found:
investigator agent with the trigger descriptionREGRESSION_TICKET.mdregression_log.mdAfter the review completes, report:
Phase {phase} review: {PASS | ESCALATE}
Review tier: {4-bot | 5-bot | 1-bot}
Reviewers: {list of reviewer types used}
Plot validation: {included | skipped (no figures)}
Iterations: {count}
Artifact: {path to final artifact}
Decision: {arbiter decision or 1-bot outcome}
Category A issues resolved: {count if any}
Plot issues resolved: {count if any}
Regression triggers: {none | description}
If this is Phase 4b and the decision is PASS, additionally report:
Human gate reached. Run /approve-verification to review the draft analysis note and approve or reject full verification.