一键导入
wf-phase2-review
Run Phase 2 design review with 2-6 subagents (dynamic selection). Produces a PHASE2_REVIEW.md artifact in the archive directory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Phase 2 design review with 2-6 subagents (dynamic selection). Produces a PHASE2_REVIEW.md artifact in the archive directory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clear the workflow context file to start fresh on a new feature
Initialize the feature workflow for a project — detects tech stack, proposes review agents (asks user to confirm), creates agent files and project-config.json.
Phase 1 iteration - quick 3-agent review of a DRAFT spec before formal Phase 2 review. Catches issues early with specialized perspectives.
Phase 1 - Create an initial feature specification from a roadmap item. Generates a structured spec file ready for Phase 2 review.
Run Phase 3 consolidation - address Phase 2 feedback, make decisions on open questions, update the spec. Produces PHASE3_CONSOLIDATION.md.
Phase 4 implementation (Opus) - thorough implementation with detailed analysis. Use /wf-phase4-implement-sonnet for faster implementation.
| name | wf-phase2-review |
| description | Run Phase 2 design review with 2-6 subagents (dynamic selection). Produces a PHASE2_REVIEW.md artifact in the archive directory. |
| model | opus |
| argument-hint | ["spec-file-path"] |
| allowed-tools | Read, Glob, Grep, Write, Task, AskUserQuestion, Bash |
Run a comprehensive design review using specialized subagents selected based on feature type.
$ARGUMENTS
.claude/workflow/project-config.jsonspecDir = docs/specsarchiveDir = docs/specs/archive{specDir} and {archiveDir} throughout this skillIf no spec path was provided in arguments:
.claude/workflow/phase-context.json existslastPhase is wf-phase1-spec or wf-phase1-iteratespecPath from context{specDir}/*/*.md*_SPEC.md pattern)Read the spec file to understand the feature.
.claude/agents/*.mdname: and description:If no agents are found in .claude/agents/, display:
⚠️ No review agents found in .claude/agents/.
Run /wf-init to set up agents for this project, then re-run /wf-phase2-review.
And stop.
Based on the spec content and available agent descriptions:
Analyze the spec to understand what domains it touches (API design, data layer, frontend, game mechanics, infrastructure, testing, etc.)
For each available agent, reason about whether its described focus area is relevant to this spec
Use AskUserQuestion to confirm agent selection:
Store selected agents for Step 5
Note: An agent describing test coverage or QA is almost always relevant. Pre-select it if available. Use your judgment — selecting 2-4 focused agents is better than selecting all of them; narrow focus = sharper feedback.
Token Savings: Selecting 2-4 relevant agents instead of all saves 50%+ of Phase 2 tokens.
From the spec path, extract:
SF-14 from {specDir}/sf14/SF14_SCIENCES_SPEC.md)sf14)Create the archive directory if it doesn't exist:
{archiveDir}/{feature-dir}/
Use the Task tool to spawn the selected agents from Step 4 in parallel (single message, multiple Task calls).
For each selected agent, provide the full spec content and ask for a structured review with:
After all agents complete, create {archiveDir}/{feature-dir}/{FEATURE-ID}_PHASE2_REVIEW.md:
# {FEATURE-ID} Phase 2: Specification Review
**Date**: {today's date}
**Feature**: {Feature Name}
**Phase**: 2 of 6 (Specification Review)
**Specification Version**: v1.0
---
## Review Process
This document contains reviews from {count} specialized subagents analyzing the {FEATURE-ID}
specification from different perspectives.
---
## {Agent 1 Name} Review
**Focus**: {agent's described focus area}
### Strengths ✅
{from agent response}
### Concerns ⚠️
{from agent response}
### Recommendations 💡
{from agent response}
**Verdict**: {APPROVED / APPROVED with revisions / NEEDS REVISION}
---
{Repeat for each selected agent}
---
## Consolidated Feedback Summary
### Critical Issues (Must Address)
{numbered list of blocking issues from all agents}
### Recommended Changes
{numbered list of non-blocking improvements}
### Nice to Have
{numbered list of optional enhancements}
### Questions for Phase 3
{numbered list with checkboxes for items needing resolution}
---
## Phase 2 Verdict
**Status**: {APPROVED / APPROVED WITH REVISIONS / NEEDS REVISION}
**Required for Phase 3**:
{numbered list of must-do items before proceeding}
---
**Review Completed**: {date}
**Reviewers**: {list only selected agents, comma-separated}
**Agents Skipped**: {list skipped agents with reason, or "None (full review)"}
**Next Phase**: Phase 3 - Consolidation
After writing the file, display:
Then proceed to Step 10.
Create/update .claude/workflow/phase-context.json:
{
"specPath": "{full spec file path}",
"featureId": "{FEATURE-ID}",
"lastPhase": "wf-phase2-review",
"timestamp": "{current ISO datetime}",
"context": {
"overallVerdict": "{APPROVED / APPROVED WITH REVISIONS / NEEDS REVISION}",
"criticalIssues": {count of critical issues},
"recommendedChanges": {count of recommended changes},
"questionsForPhase3": ["{list key questions needing decisions}"],
"agentConsensus": ["{areas where selected agents agreed}"],
"selectedAgents": ["{list of agents that reviewed}"],
"skippedAgents": ["{list of agents skipped}"]
}
}
Read .claude/templates/context-reminder.md if it exists and display it; otherwise display: "Context Management: Consider starting a new conversation before the next phase to free up context window for better performance."
Use AskUserQuestion:
If user selects "Clear context and stop", delete .claude/workflow/phase-context.json