flow-next-plan-review
A coordinator for conducting deep architectural and implementation plan reviews.
Install
mkdir -p .claude/skills/flow-next-plan-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4302" && unzip -o skill.zip -d .claude/skills/flow-next-plan-review && rm skill.zipInstalls to .claude/skills/flow-next-plan-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Carmack-level plan review via RepoPrompt or Codex. Use when reviewing Flow specs or design docs. Triggers on /flow-next:plan-review.Key capabilities
- →Selects review backend via CLI arguments or configuration files
- →Executes workflow orchestration using bundled flowctl
- →Configures backend priority (RepoPrompt, Codex, or Copilot)
- →Automates review backend switching based on environment variables
- →Validates review backend configuration before execution
How it works
It parses CLI arguments and environment variables to prioritize a specific review backend plugin for execution. It relies on a local or bundled flowctl binary to route the review request to the selected backend.
Inputs & outputs
When to use flow-next-plan-review
- →Conduct a plan review using RepoPrompt
- →Review a design document
- →Check epic spec feasibility
About this skill
Plan Review Mode
Conduct a John Carmack-level review of spec plans.
Role: Code Review Coordinator (NOT the reviewer)
Backends: Codex CLI (codex), GitHub Copilot CLI (copilot), Cursor CLI (cursor),
Claude Code CLI (claude), a configured review command (command:<label>), or host-native (host).
- CLI backends (
codex,copilot,cursor,claude,command): run directly from the CLI Fast Path below after workflow.md Phase 0 & 1 — no extra backend file read needed. BACKEND=host: read workflow-host.md after workflow.md Phase 0 & 1.BACKEND=noneor unknown explicit value: terminate from workflow.md Phase 0 without readingworkflow-host.md.
Read working-rules.md first unless you already have this run; it holds for every step of this skill.
Preamble — execute common routing exactly once
Read and execute workflow.md Phase 0 once. It defines $FLOWCTL,
parses an explicit --review mode before configured-backend resolution,
resolves SPEC_ID, and handles ASK, none and unknown values. Never invoke
flowctl review-backend a second time.
Common Critical Rules
- The coordinator never self-declares a verdict.
- Stick to one backend for the full review/fix cycle.
- If
REVIEW_RECEIPT_PATHis set, every review verdict writes a receipt. - Any backend/transport failure outputs
RETRY: no verdict (backend or transport failure)and stops; never silently fall back to a different backend. When itsCLI message:reports a usage, credit or spend limit, report that message and stop instead ofRETRY:; a retry fails the same way. Autonomous callers receive the same retry terminal and decide whether to re-enter. A no-verdict dispatch is refunded and recorded by flowctl; never manually reset the review counter for a transport failure. Exit 5 /TRANSPORT_UNHEALTHYmeans stop automatic retries and repair the backend. noneskips only when selected explicitly or resolved from configuration.- Foreground rule: run every
flowctl <backend> plan-reviewcall as one blocking foreground Bash call with a generous timeout (10 minutes; verdicts typically land in 1–7) — neverrun_in_background+ monitor/poll (a background completion does not reliably resume a subagent context). Host-backend subagent dispatches are also blocking.
Input
Arguments: $ARGUMENTS
Format: <flow-spec-id> [focus areas] [--review=<mode>] [mode:autonomous]. mode:autonomous marks an
unattended run (working-rules.md's review loop applies); it is not a focus area.
Workflow
- Execute workflow.md Phase 0 and Phase 1 (saves the mandatory checkpoint).
- If Phase 0 returns for
noneor an unknown value, stop. - For
codex,copilot,cursor,claude, orcommand, execute the CLI Fast Path below; forhost, read and follow workflow-host.md. - Carry the verdict directly into the shared Fix Loop below until its terminal contract is satisfied.
CLI Fast Path (codex, copilot, cursor, claude, command)
Use $FLOWCTL "$BACKEND" plan-review exclusively — never call codex exec, claude -p, cursor-agent, or copilot directly, never reconstruct the prompt in prose, and never fabricate a first-call resume id. Always pass --receipt (re-reviews resume only when the prior receipt matches the same backend mode, and same label for command).
claudesame-family advisory: on a Claude Code host, writer and reviewer share a model family; the receipt records it and the run proceeds (prefercodexorhostwhen family independence matters).cursor: effort is baked into the model name (cursor:<model>);cursor:<model>:<effort>is rejected.command: when--review=command:<label>named a label, pass--spec "command:<label>"on the first review and every fix-loop re-review; a bare--review=commandleaves the label to the configured backend (FLOW_REVIEW_COMMAND_<LABEL>).
FLOWCTL="${DROID_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/flowctl"
[ -x "$FLOWCTL" ] || FLOWCTL="<plugin-root>/scripts/flowctl" # <plugin-root> = the directory two levels above this skill's SKILL.md file (the harness gave you that file's absolute path when the skill loaded); substitute it literally
[ -x "$FLOWCTL" ] || FLOWCTL=".flow/bin/flowctl"
SPEC_ID="<spec id resolved in workflow.md Phase 0>" # substitute literally
BACKEND="<codex|copilot|cursor|claude|command>" # substitute literally
REVIEW_SPEC="<command:<label> when --review named one, else empty>"
RECEIPT_PATH="${REVIEW_RECEIPT_PATH:-$(git rev-parse --show-toplevel)/.flow/tmp/plan-review-receipt-${SPEC_ID}.json}"
args=("$SPEC_ID" --receipt "$RECEIPT_PATH")
[ -n "$REVIEW_SPEC" ] && args+=(--spec "$REVIEW_SPEC")
"$FLOWCTL" "$BACKEND" plan-review "${args[@]}"
Output includes VERDICT=SHIP|NEEDS_WORK|MAJOR_RETHINK|NEEDS_HUMAN. The handler owns plan_review_status, plan_reviewed_at, cumulative rounds, and receipt writes. A re-review repeats this same fence after updating the spec/tasks.
Fix Loop (INTERNAL)
The fix loop never pauses for user confirmation; never use AskUserQuestion in it. Which findings it fixes, and which it lists as follow-ups, follows the Review section of working-rules.md.
MAJOR_RETHINK is not a fix-loop input. Surface the reviewer's rationale and
stop with BLOCKED: DESIGN_CONFLICT. NEEDS_HUMAN is not one either: stop and hand the
reviewer's question to the person, on every backend. Only NEEDS_WORK enters the loop.
Attended: one fix pass, then one re-review, whose verdict is terminal. When working-rules.md's
review loop applies (an unattended run, or a request to review until SHIP), repeat the steps
below until SHIP or an ESCALATE:. The flowctl cap below stays as the backstop; never keep an
agent-side counter.
The cap is enforced deterministically by flowctl: every dispatch reserves a
spec-scoped round before launch. SHIP / NEEDS_WORK / MAJOR_RETHINK / NEEDS_HUMAN consume it;
a no-verdict transport failure is durably recorded and refunded. At
${MAX_REVIEW_ITERATIONS:-8} verdict rounds, flowctl refuses with ESCALATE:
and exit 4. More than ${MAX_REVIEW_TRANSPORT_FAILURES:-2} consecutive
no-verdict failures stop separately with TRANSPORT_UNHEALTHY + exit 5.
Callers invoke plan-review once and act on its terminal result. The verdict
counter resets only on SHIP or an explicit re-plan, never on an edit, fresh
invocation, or transport failure.**
ANTI-PATTERN: a delivered verdict is never a transport failure - never
re-dispatch or re-frame NEEDS_WORK as a backend/sandbox problem to claim a
refund. And never widen the reviewer sandbox: reviewers are read-only by
contract, so a sandbox-blocked reviewer means something asked it to mutate the
workspace. Fix that instead (Windows resolves via auto).
When the verdict is NEEDS_WORK:
-
Parse all valid issues from reviewer feedback.
-
Fix the user-edited current spec, never a checkpoint copy: read the spec file now (
spec_pathfrom$FLOWCTL show <SPEC_ID> --json), edit it in place with targeted edits (a whole-file rewrite drops a person's edits), then persist that file. The file on disk is the input, so an edit the user made between cycles survives; on aset-planfailure, surface its error and stop the cycle.$FLOWCTL spec set-plan <SPEC_ID> --file <spec path> --json -
Sync affected task specs when requirements, acceptance, design decisions, interfaces, retry/error semantics, or state values changed.
-
Re-enter the SAME selected backend (the CLI Fast Path fence above for CLI backends, or
workflow-host.mdforhost). Never load or mix another backend. Codex/Copilot/Cursor/Claude/command resume only through a same-mode receipt; host uses a fresh read-only subagent. -
Attended, stop after that one re-review:
SHIPcompletes;NEEDS_WORKsurfaces the surviving findings to the caller, never a second fix pass. In the review loop, repeat from step 1 as above.
Done when: the review ends in one of exactly five states — a SHIP from the
backend, a re-review NEEDS_WORK with its surviving findings surfaced, a
MAJOR_RETHINK escalated as BLOCKED: DESIGN_CONFLICT, a
RETRY: no verdict (backend or transport failure) from a backend/transport failure, or flowctl's
ESCALATE: cap refusal with the surviving findings surfaced. A round that ends
with a NEEDS_WORK neither fixed in the current spec nor re-entered into the
same backend has broken this.
Maintainability pointer. When the verdict's maintainability: block names a finding
(anything other than none identified): read
references/maintainability-pointer.md and record it.
Recovery after context compaction:
"$FLOWCTL" checkpoint restore --spec <SPEC_ID> --json
Every re-review follows the selected backend's receipt/status rules (the CLI Fast Path fence for CLI backends, or workflow-host.md for host).
When not to use it
- →When no environment-specific review backend is defined
- →When the task does not involve epic specs or design documentation
Prerequisites
Limitations
- →Fails if flowctl is not found or executable
- →Depends on the configured availability of RepoPrompt or Codex
- →Requires explicit setup for backend selection
How it compares
It automates the selection and orchestration of specific technical review tools, whereas a generic prompt would require manual backend configuration for each session.
Compared to similar skills
flow-next-plan-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| flow-next-plan-review (this skill) | 1 | 5mo | Review | Intermediate |
| confidence-check | 13 | 8mo | Review | Beginner |
| specification-architect | 13 | 1y | Review | Advanced |
| drift-analysis | 2 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by gmickel
View all by gmickel →You might also like
confidence-check
SuperClaude-Org
Pre-implementation confidence assessment (≥90% required). Use before starting any implementation to verify readiness with duplicate check, architecture compliance, official docs verification, OSS references, and root cause identification.
specification-architect
adrianpuiu
A rigorous, traceability-first system that generates five interconnected architectural documents (blueprint.md, requirements.md, design.md, tasks.md, and validation.md) with complete requirements-to-implementation traceability. Use this skill when users need to architect systems, create technical specifications, or develop structured project documentation with guaranteed traceability.
drift-analysis
avifenesh
This skill should be used when the user asks about "plan drift", "reality check", "comparing docs to code", "project state analysis", "roadmap alignment", "implementation gaps", or needs guidance on identifying discrepancies between documented plans and actual implementation state.
rfc-check
meta-pytorch
Determine if proposed changes require an RFC. Use when planning significant changes, before starting major work, or when asked whether an RFC is needed.
feature-planning
mhattingpete
Break down feature requests into detailed, implementable plans with clear tasks. Use when user requests a new feature, enhancement, or complex change.
multi-agent-brainstorming
sickn33
Use this skill when a design or idea requires higher confidence, risk reduction, or formal review. This skill orchestrates a structured, sequential multi-agent design review where each agent has a strict, non-overlapping role. It prevents blind spots, false confidence, and premature convergence.