원클릭으로
flow-code-plan-review
Use when reviewing Flow epic specs or design docs. Triggers on /flow-code:plan-review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when reviewing Flow epic specs or design docs. Triggers on /flow-code:plan-review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Internal pipeline engine. Manages the entire pipeline (brainstorm, plan, plan-review, work, impl-review, close) via flowctl phase commands. Invoked by /flow-code:go.
Use when exploring requirements before planning. Pressure-tests ideas, generates approaches, and outputs a requirements doc for /flow-code:plan. Supports --auto mode for AI self-interview (no human input needed).
Use when exploring requirements before planning. Pressure-tests ideas, generates approaches, and outputs a requirements doc for /flow-code:plan.
Use when planning features or designing implementation. Triggers on /flow-code:plan with text descriptions or Flow IDs.
Use when reviewing code changes — self-review in Worker Phase 6, impl-review, or PR review. Applies five-axis scoring with severity labels.
Use when implementing a plan or working through a spec. Triggers on /flow-code:work with Flow IDs.
| name | flow-code-plan-review |
| description | Use when reviewing Flow epic specs or design docs. Triggers on /flow-code:plan-review. |
| tier | 3 |
| user-invocable | false |
Read workflow.md for detailed phases and anti-patterns.
Conduct a John Carmack-level review of epic plans.
Role: Code Review Coordinator (NOT the reviewer) Backends: RepoPrompt (rp) or Codex CLI (codex)
CRITICAL: flowctl is BUNDLED — NOT installed globally. which flowctl will fail (expected). Always use:
FLOWCTL="$HOME/.flow/bin/flowctl"
Priority (first match wins):
--review=rp|codex|export|none argumentFLOW_REVIEW_BACKEND env var (rp, codex, none).flow/config.json → review.backendCheck $ARGUMENTS for:
--review=rp or --review rp → use rp--review=codex or --review codex → use codex--review=export or --review export → use export--review=none or --review none → skip reviewIf found, use that backend and skip all other detection.
# Priority: --review flag > env > config
BACKEND=$($FLOWCTL review-backend)
if [[ "$BACKEND" == "ASK" ]]; then
echo "Error: No review backend configured."
echo "Run /flow-code:setup to configure, or pass --review=rp|codex|none"
exit 1
fi
echo "Review backend: $BACKEND (override: --review=rp|codex|none)"
For rp backend:
setup-review - handles window selection + builder atomically--new-chat after first reviewFor codex backend:
$FLOWCTL codex plan-review exclusively--receipt for session continuity on re-reviewsFor all backends:
REVIEW_RECEIPT_PATH set: write receipt after review (any verdict)<promise>RETRY</promise> and stopFORBIDDEN:
Arguments: $ARGUMENTS
Format: <flow-epic-id> [focus areas]
Before any backend runs the review, verify capability-scout output:
EPIC_ID="${1:-}"
CAP_GAPS_FILE=".flow/epics/${EPIC_ID}/capability-gaps.md"
if [[ -f "$CAP_GAPS_FILE" ]]; then
echo "Capability gaps file present: $CAP_GAPS_FILE"
# Check for unresolved required gaps in the registry
UNRESOLVED=$($FLOWCTL gap list --epic "$EPIC_ID" --json 2>/dev/null \
| python3 -c 'import sys,json; d=json.load(sys.stdin); print(sum(1 for g in d if g.get("source")=="capability-scout" and g.get("priority")=="required" and not g.get("resolved")))' 2>/dev/null || echo "0")
if [[ "$UNRESOLVED" -gt 0 ]]; then
echo "BLOCK SHIP: $UNRESOLVED unresolved required capability gap(s). Resolve via 'flowctl gap resolve' or downgrade priority with justification before SHIP."
# Record as a blocking finding; do not exit — let reviewer also see context
fi
fi
Rules:
capability-gaps.md is missing AND capability-scout was not explicitly skipped (--no-capability-scan), note as a warning but do not block (scout may have failed open).required-priority gaps with source=capability-scout exist in the gap registry, the final verdict MUST NOT be SHIP until gaps are resolved or downgraded with justification.flowctl gap resolve <gap-id> after addressing, OR epic spec must explicitly justify why the gap is acceptable (and gap re-registered at lower priority).Include the capability-gaps.md contents (if present) in the context sent to the backend reviewer so it can factor gaps into its verdict.
See workflow.md for full details on each backend.
FLOWCTL="$HOME/.flow/bin/flowctl"
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
Run backend detection from SKILL.md above. Then branch:
EPIC_ID="${1:-}"
RECEIPT_PATH="${REVIEW_RECEIPT_PATH:-/tmp/plan-review-receipt.json}"
# Save checkpoint before review (recovery point if context compacts)
$FLOWCTL checkpoint save --epic "$EPIC_ID" --json
# --files: comma-separated CODE files for reviewer context
# Epic/task specs are auto-included; pass files the plan will CREATE or MODIFY
# How to identify: read the epic spec, find files mentioned or directories affected
# Example: epic touches auth → pass existing auth files for context
#
# Dynamic approach (if epic mentions specific paths):
# CODE_FILES=$(grep -oE 'src/[^ ]+\.(ts|py|js)' .flow/specs/${EPIC_ID}.md | sort -u | paste -sd,)
# Or list key files manually:
CODE_FILES="src/main.py,src/config.py"
$FLOWCTL codex plan-review "$EPIC_ID" --files "$CODE_FILES" --receipt "$RECEIPT_PATH"
# Output includes VERDICT=SHIP|NEEDS_WORK|MAJOR_RETHINK
On NEEDS_WORK: fix plan via $FLOWCTL epic set-plan AND sync affected task specs via $FLOWCTL task spec, then re-run (receipt enables session continuity).
Note: codex plan-review automatically includes task specs in the review prompt.
⚠️ STOP: You MUST read and execute workflow.md now.
Go to the "RepoPrompt Backend Workflow" section in workflow.md and execute those steps. Do not proceed here until workflow.md phases are complete.
The workflow covers:
$W and $TReturn here only after workflow.md execution is complete.
CRITICAL: Do NOT ask user for confirmation. Automatically fix ALL valid issues and re-review — our goal is production-grade world-class software and architecture. Never use AskUserQuestion in this loop.
If verdict is NEEDS_WORK, loop internally until SHIP:
# Preferred: stdin heredoc
$FLOWCTL epic plan <EPIC_ID> --file - --json <<'EOF'
<updated epic spec content>
EOF
# Or temp file
$FLOWCTL epic plan <EPIC_ID> --file /tmp/updated-plan.md --json
$FLOWCTL task spec <TASK_ID> --file - --json <<'EOF'
<updated task spec content>
EOF
Task specs need updating when epic changes affect:
flowctl codex plan-review (receipt enables context)$FLOWCTL rp chat-send --window "$W" --tab "$T" --message-file /tmp/re-review.md (NO --new-chat)<verdict>SHIP</verdict>Recovery: If context compaction occurred during review, restore from checkpoint:
$FLOWCTL checkpoint restore --epic <EPIC_ID> --json
CRITICAL: For RP, re-reviews must stay in the SAME chat so reviewer has context. Only use --new-chat on the FIRST review.