一键导入
review
Spawn an independent subagent with a Staff+ FAANG engineer persona to review a plan or PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Spawn an independent subagent with a Staff+ FAANG engineer persona to review a plan or PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Initialize PARA-Programming structure in the current project
Create a planning document through collaborative dialogue, with support for multi-phase plans
Perform deep codebase exploration and produce a context-compressed research document
Orchestrate the full PARA execution cycle across phases
Archive the current context to create a clean slate for the next task
Execute the active plan by creating an isolated worktree and tracking todos
| name | review |
| description | Spawn an independent subagent with a Staff+ FAANG engineer persona to review a plan or PR |
| model | opus |
| effort | high |
Spawn an independent subagent with a Staff+ FAANG engineer persona to review a plan or PR. The review loops until the reviewer explicitly approves.
/para:review --plan # Review the active plan
/para:review --plan=path/to/plan.md # Review a specific plan file
/para:review --pr # Review the current branch's changes as a PR
/para:review --pr=123 # Review a specific PR number
/para:review --approve # Override: skip remaining review rounds and approve
The subagent receives the following persona instructions:
You are a Staff+ engineer at a FAANG company reviewing this work. You have high standards for:
- Architecture: Clean boundaries, appropriate abstractions, no over-engineering
- Correctness: Logic errors, race conditions, edge cases, error handling
- Testing: TDD adherence, test coverage, test quality (not just quantity)
- Maintainability: Code clarity, naming, documentation where needed
- Security: Input validation, injection risks, secrets handling
- Performance: Obvious inefficiencies, N+1 queries, unnecessary allocations
Be specific and actionable in feedback. Reference exact file paths and line numbers. Categorize each issue as: MUST FIX (blocks approval) | SHOULD FIX (strong recommendation) | NIT (optional improvement). When there are no remaining MUST FIX issues, explicitly state: "APPROVED — ready to proceed."
When --plan is specified:
Identify the plan — read from context/context.md active plan (or use the path provided).
Spawn a subagent with the Staff+ persona. The subagent reads the full plan (and all sub-plans for phased plans) and checks:
Present review results to the user with issues categorized as MUST FIX / SHOULD FIX / NIT.
When --pr is specified:
Identify the PR — use the current branch's PR (or the PR number provided). Run gh pr diff to get the full diff.
Spawn a subagent with the Staff+ persona. The subagent reads the diff, the changed files, and the active plan, then checks:
Present review results to the user with issues categorized as MUST FIX / SHOULD FIX / NIT.
After the initial review (plan or PR), the loop proceeds:
Address issues — implement fixes for all MUST FIX items. Apply SHOULD FIX items where appropriate. NITs are optional.
Re-submit for review — spawn a fresh subagent (not the same one) with the Staff+ persona. Provide the subagent with: (a) the same source material as the initial review (plan docs or PR diff), (b) the previous round's issue list, and (c) a summary of what was changed in response. This lets the fresh subagent verify fixes without anchoring on the previous reviewer's perspective.
Loop until approved — repeat steps 4-5 until the reviewer explicitly states "APPROVED."
Record approval — note in context/context.md progress notes: "Staff+ review: APPROVED (N rounds)".
Maximum rounds: 5. If the review has not converged after 5 rounds, escalate to the user:
"Review has not converged after 5 rounds. Here are the remaining issues: [list]. Would you like to:
- Continue addressing issues
- Override and approve (
/para:review --approve)- Revise the approach"
Convergence check: If two consecutive rounds produce the same MUST FIX issues (no progress), escalate immediately rather than waiting for round 5. This prevents infinite loops where fixes for one issue reintroduce another.
When --approve is specified:
context/context.md progress notes: "Staff+ review: OVERRIDDEN by user"Use sparingly — the review loop exists to catch real issues. Override is for cases where:
--approve flag is a user-initiated override, not an automatic approval