build
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesename: build description: Feature development pipeline - research, plan, track, and implement major features. argument-hint: [subcommand] [name] metadata: author: Shpigford version: "1.0"
Feature development pipeline - research, plan, track, and implement major features.
name: build description: 功能开发流水线——调研、规划、跟踪并实现核心功能。 argument-hint: [subcommand] [name] metadata: author: Shpigford version: "1.0"
功能开发流水线——调研、规划、跟踪并实现核心功能。
Instructions
使用说明
This command manages a 4-phase feature development workflow for building major features. Parse to determine which subcommand to run.
$ARGUMENTSArguments provided: $ARGUMENTS
本命令管理4个阶段的功能开发工作流,用于构建核心功能。请解析来确定要运行的子命令。
$ARGUMENTS提供的参数: $ARGUMENTS
Argument Parsing
参数解析
Parse the first word of $ARGUMENTS to determine the subcommand:
- → Run the Research phase
research [name] - → Run the Implementation phase
implementation [name] - → Run the Progress phase
progress [name] - → Run Phase n of the implementation
phase [n] [name] - → Show current status and suggest next step
status [name] - (empty or unrecognized) → Show usage help
If the feature name is not provided in arguments, you MUST use AskUserQuestion to prompt for it.
解析$ARGUMENTS的第一个单词来确定子命令:
- → 运行调研阶段
research [name] - → 运行实施阶段
implementation [name] - → 运行进度跟踪阶段
progress [name] - → 运行实施的第n阶段
phase [n] [name] - → 显示当前状态并建议下一步操作
status [name] - (空或无法识别)→ 显示使用帮助
如果参数中未提供功能名称,你必须使用AskUserQuestion来提示用户输入。
Subcommand: Help (empty args)
子命令:帮助(空参数)
If no arguments provided, display this help:
/build - Feature Development Pipeline
Subcommands:
/build research [name] Deep research on a feature idea
/build implementation [name] Create phased implementation plan
/build progress [name] Set up progress tracking
/build phase [n] [name] Execute implementation phase n
/build status [name] Show status and next steps
Example workflow:
/build research chat-interface
/build implementation chat-interface
/build progress chat-interface
/build phase 1 chat-interfaceThen use AskUserQuestion to ask what they'd like to do:
- question: "What would you like to do?"
- header: "Action"
- multiSelect: false
- options:
- label: "Start new feature research" description: "Begin deep research on a new feature idea"
- label: "Continue existing feature" description: "Work on a feature already in progress"
- label: "Check status" description: "See what step to do next for a feature"
如果未提供参数,显示以下帮助信息:
/build - Feature Development Pipeline
Subcommands:
/build research [name] Deep research on a feature idea
/build implementation [name] Create phased implementation plan
/build progress [name] Set up progress tracking
/build phase [n] [name] Execute implementation phase n
/build status [name] Show status and next steps
Example workflow:
/build research chat-interface
/build implementation chat-interface
/build progress chat-interface
/build phase 1 chat-interface然后使用AskUserQuestion询问用户想要执行的操作:
- question: "你想要执行什么操作?"
- header: "操作"
- multiSelect: false
- options:
- label: "启动新功能调研" description: "开始对新功能 idea 进行深度调研"
- label: "继续现有功能开发" description: "开发已经在进行中的功能"
- label: "查看状态" description: "查看某个功能的下一步操作建议"
Subcommand: research
子命令:research
Step 1: Get Feature Name
步骤1:获取功能名称
If feature name not in arguments, use AskUserQuestion:
- question: "What's a short identifier for this feature? (lowercase, hyphens ok - e.g., 'chat-interface', 'user-auth', 'data-export'). Use 'Other' to type it."
- header: "Feature name"
- multiSelect: false
- options:
- label: "I'll type the name" description: "Enter a short, kebab-case identifier for the feature"
如果参数中没有功能名称,使用AskUserQuestion提示:
- question: "请输入这个功能的短标识符?(小写,可使用连字符,例如 'chat-interface'、'user-auth'、'data-export'),选择“其他”自行输入。"
- header: "功能名称"
- multiSelect: false
- options:
- label: "我自行输入名称" description: "输入一个短的kebab-case格式的功能标识符"
Step 2: Check for Existing Research
步骤2:检查是否已有调研文档
Check if already exists.
docs/{name}/RESEARCH.mdIf it exists, use AskUserQuestion:
- question: "A RESEARCH.md already exists for this feature. What would you like to do?"
- header: "Existing doc"
- multiSelect: false
- options:
- label: "Overwrite" description: "Replace existing research with fresh exploration"
- label: "Append" description: "Add new research below existing content"
- label: "Skip" description: "Keep existing research, suggest next step"
If "Skip" selected, suggest running and exit.
/build implementation {name}检查是否已存在。
docs/{name}/RESEARCH.md如果存在,使用AskUserQuestion:
- question: "该功能已存在RESEARCH.md文档,你想要如何操作?"
- header: "现有文档"
- multiSelect: false
- options:
- label: "覆盖" description: "用全新的调研内容替换现有文档"
- label: "追加" description: "在现有内容下方添加新的调研内容"
- label: "跳过" description: "保留现有调研内容,建议下一步操作"
如果选择“跳过”,建议运行后退出。
/build implementation {name}Step 3: Gather Feature Context
步骤3:收集功能背景信息
Use AskUserQuestion to understand the feature:
- question: "Describe the feature you want to build. What problem does it solve? What should it do? (Use 'Other' to describe)"
- header: "Description"
- multiSelect: false
- options:
- label: "I'll describe it" description: "Provide a detailed description of the feature"
使用AskUserQuestion了解功能需求:
- question: "描述你想要构建的功能。它解决了什么问题?需要实现什么能力?(选择“其他”进行描述)"
- header: "功能描述"
- multiSelect: false
- options:
- label: "我自行描述" description: "提供该功能的详细说明"
Step 4: Research Scope
步骤4:调研范围
Use AskUserQuestion:
- question: "What aspects should the research focus on?"
- header: "Focus areas"
- multiSelect: true
- options:
- label: "Technical implementation" description: "APIs, libraries, architecture patterns"
- label: "UI/UX design" description: "Interface design, user flows, interactions"
- label: "Data requirements" description: "What data to store, schemas, privacy"
- label: "Platform capabilities" description: "OS APIs, system integrations, permissions"
使用AskUserQuestion:
- question: "调研需要聚焦在哪些方面?"
- header: "聚焦领域"
- multiSelect: true
- options:
- label: "技术实现" description: "API、库、架构模式"
- label: "UI/UX设计" description: "界面设计、用户流程、交互逻辑"
- label: "数据需求" description: "需要存储的数据、Schema、隐私相关要求"
- label: "平台能力" description: "操作系统API、系统集成、权限要求"
Step 5: Conduct Deep Research
步骤5:开展深度调研
Now conduct DEEP research on the feature:
- Codebase exploration: Understand existing patterns, similar features, relevant code
- Web search: Research best practices, similar implementations, relevant APIs
- Technical deep-dive: Explore specific technologies, libraries, frameworks
- Use AskUserQuestion FREQUENTLY: Validate assumptions, clarify requirements, get input on decisions
Research should cover:
- Problem definition and user needs
- Technical approaches and trade-offs
- Required data models and storage
- UI/UX considerations
- Integration points with existing code
- Potential challenges and risks
- Recommended approach with rationale
现在对该功能开展深度调研:
- 代码库探索:了解现有开发模式、类似功能、相关代码
- 网络搜索:调研最佳实践、类似实现、相关API
- 技术深度调研:探索具体的技术、库、框架
- 高频使用AskUserQuestion:验证假设、澄清需求、获取决策输入
调研需要覆盖:
- 问题定义和用户需求
- 技术方案和取舍
- 所需的数据模型和存储方案
- UI/UX相关考虑
- 和现有代码的集成点
- 潜在挑战和风险
- 带合理性说明的推荐方案
Step 6: Write Research Document
步骤6:编写调研文档
Create the directory if needed:
docs/{name}/Write findings to with this structure:
docs/{name}/RESEARCH.mdmarkdown
undefined如果需要先创建目录:
docs/{name}/将调研结果写入,使用以下结构:
docs/{name}/RESEARCH.mdmarkdown
undefined{Feature Name} Research
{Feature Name} Research
Overview
Overview
[Brief description of the feature and its purpose]
[Brief description of the feature and its purpose]
Problem Statement
Problem Statement
[What problem this solves, why it matters]
[What problem this solves, why it matters]
User Stories / Use Cases
User Stories / Use Cases
[Concrete examples of how users will use this]
[Concrete examples of how users will use this]
Technical Research
Technical Research
Approach Options
Approach Options
[Different ways to implement this, with pros/cons]
[Different ways to implement this, with pros/cons]
Recommended Approach
Recommended Approach
[The approach you recommend and why]
[The approach you recommend and why]
Required Technologies
Required Technologies
[APIs, libraries, frameworks needed]
[APIs, libraries, frameworks needed]
Data Requirements
Data Requirements
[What data needs to be stored/tracked]
[What data needs to be stored/tracked]
UI/UX Considerations
UI/UX Considerations
[Interface design thoughts, user flows]
[Interface design thoughts, user flows]
Integration Points
Integration Points
[How this connects to existing code/features]
[How this connects to existing code/features]
Risks and Challenges
Risks and Challenges
[Potential issues and mitigation strategies]
[Potential issues and mitigation strategies]
Open Questions
Open Questions
[Things that still need to be decided]
[Things that still need to be decided]
References
References
[Links to relevant documentation, examples, articles]
undefined[Links to relevant documentation, examples, articles]
undefinedStep 7: Next Step
步骤7:下一步操作
After writing the research doc, inform the user:
"Research complete! Document saved to
docs/{name}/RESEARCH.mdNext step: Run to create a phased implementation plan."
/build implementation {name}写完调研文档后,通知用户:
"调研完成!文档已保存到
docs/{name}/RESEARCH.md下一步: 运行 创建分阶段实施计划。"
/build implementation {name}Subcommand: implementation
子命令:implementation
Step 1: Get Feature Name
步骤1:获取功能名称
If feature name not in arguments, use AskUserQuestion to prompt for it (same as research phase).
如果参数中没有功能名称,使用AskUserQuestion提示(和调研阶段一致)。
Step 2: Verify Research Exists
步骤2:验证调研文档存在
Check if exists.
docs/{name}/RESEARCH.mdIf it does NOT exist:
- Inform user: "No research document found at "
docs/{name}/RESEARCH.md - Suggest: "Run first to create the research document."
/build research {name} - Exit
检查是否存在。
docs/{name}/RESEARCH.md如果不存在:
- 通知用户:"在路径下未找到调研文档"
docs/{name}/RESEARCH.md - 建议:"请先运行 创建调研文档。"
/build research {name} - 退出
Step 3: Check for Existing Implementation Doc
步骤3:检查是否已有实施文档
Check if already exists.
docs/{name}/IMPLEMENTATION.mdIf it exists, use AskUserQuestion:
- question: "An IMPLEMENTATION.md already exists. What would you like to do?"
- header: "Existing doc"
- multiSelect: false
- options:
- label: "Overwrite" description: "Create a fresh implementation plan"
- label: "Append" description: "Add new phases below existing content"
- label: "Skip" description: "Keep existing plan, suggest next step"
If "Skip" selected, suggest running and exit.
/build progress {name}检查是否已存在。
docs/{name}/IMPLEMENTATION.md如果存在,使用AskUserQuestion:
- question: "已存在IMPLEMENTATION.md文档,你想要如何操作?"
- header: "现有文档"
- multiSelect: false
- options:
- label: "覆盖" description: "创建全新的实施计划"
- label: "追加" description: "在现有内容下方添加新的阶段"
- label: "跳过" description: "保留现有计划,建议下一步操作"
如果选择“跳过”,建议运行后退出。
/build progress {name}Step 4: Read Research Document
步骤4:读取调研文档
Read to understand:
docs/{name}/RESEARCH.md- The recommended approach
- Technical requirements
- Data models needed
- UI/UX design
- Integration points
读取了解以下内容:
docs/{name}/RESEARCH.md- 推荐的实现方案
- 技术要求
- 所需的数据模型
- UI/UX设计
- 集成点
Step 5: Design Implementation Phases
步骤5:设计实施阶段
Break the research into practical implementation phases. Each phase should:
- Be independently valuable (deliver something usable)
- Be small enough to complete in a focused session
- Build on previous phases
- Have clear success criteria
Use AskUserQuestion to validate phase breakdown:
- question: "How granular should the implementation phases be?"
- header: "Phase size"
- multiSelect: false
- options:
- label: "Small phases (1-2 hours)" description: "Many focused phases, easier to track progress"
- label: "Medium phases (half day)" description: "Balanced approach, moderate number of phases"
- label: "Large phases (full day)" description: "Fewer phases, each delivering significant functionality"
将调研内容拆分为可落地的实施阶段。每个阶段需要满足:
- 具备独立价值(交付可用的产出)
- 体量足够小,可以在一个专注的时间段内完成
- 基于前序阶段的成果构建
- 有清晰的成功标准
使用AskUserQuestion验证阶段拆分:
- question: "实施阶段的粒度需要多细?"
- header: "阶段大小"
- multiSelect: false
- options:
- label: "小阶段(1-2小时)" description: "更多聚焦的小阶段,更容易跟踪进度"
- label: "中等阶段(半天)" description: "平衡方案,阶段数量适中"
- label: "大阶段(全天)" description: "阶段数量更少,每个阶段交付重要功能"
Step 6: Conduct Phase Research
步骤6:开展阶段调研
For each phase you're planning, do targeted research:
- Web search for implementation specifics
- Review relevant code in the codebase
- Identify dependencies between phases
Use AskUserQuestion for any uncertainties about phase ordering or scope.
为你规划的每个阶段做针对性调研:
- 网络搜索具体的实现细节
- review代码库中相关的代码
- 识别阶段之间的依赖关系
如果对阶段排序或范围有任何不确定,使用AskUserQuestion确认。
Step 7: Write Implementation Document
步骤7:编写实施文档
Write to with this structure:
docs/{name}/IMPLEMENTATION.mdmarkdown
undefined写入,使用以下结构:
docs/{name}/IMPLEMENTATION.mdmarkdown
undefined{Feature Name} Implementation Plan
{Feature Name} Implementation Plan
Overview
Overview
[Brief recap of what we're building and the approach from research]
[Brief recap of what we're building and the approach from research]
Prerequisites
Prerequisites
[What needs to be in place before starting]
[What needs to be in place before starting]
Phase Summary
Phase Summary
[Quick overview of all phases]
[Quick overview of all phases]
Phase 1: [Phase Title]
Phase 1: [Phase Title]
Objective
Objective
[What this phase accomplishes]
[What this phase accomplishes]
Rationale
Rationale
[Why this phase comes first, what it enables]
[Why this phase comes first, what it enables]
Tasks
Tasks
- Task 1
- Task 2
- Task 3
- Task 1
- Task 2
- Task 3
Success Criteria
Success Criteria
[How to verify this phase is complete]
[How to verify this phase is complete]
Files Likely Affected
Files Likely Affected
[List of files that will probably need changes]
[List of files that will probably need changes]
Phase 2: [Phase Title]
Phase 2: [Phase Title]
[Same structure as Phase 1]
[Continue for all phases]
[Same structure as Phase 1]
[Continue for all phases]
Post-Implementation
Post-Implementation
- Documentation updates
- Testing strategy
- Performance validation
- Documentation updates
- Testing strategy
- Performance validation
Notes
Notes
[Any additional context or decisions made during planning]
undefined[Any additional context or decisions made during planning]
undefinedStep 8: Next Step
步骤8:下一步操作
After writing the implementation doc, inform the user:
"Implementation plan complete! Document saved to
docs/{name}/IMPLEMENTATION.mdNext step: Run to set up progress tracking."
/build progress {name}写完实施文档后,通知用户:
"实施计划完成!文档已保存到
docs/{name}/IMPLEMENTATION.md下一步: 运行 设置进度跟踪。"
/build progress {name}Subcommand: progress
子命令:progress
Step 1: Get Feature Name
步骤1:获取功能名称
If feature name not in arguments, use AskUserQuestion to prompt for it.
如果参数中没有功能名称,使用AskUserQuestion提示。
Step 2: Verify Implementation Doc Exists
步骤2:验证实施文档存在
Check if exists.
docs/{name}/IMPLEMENTATION.mdIf it does NOT exist:
- Inform user: "No implementation document found at "
docs/{name}/IMPLEMENTATION.md - Suggest: "Run first."
/build implementation {name} - Exit
检查是否存在。
docs/{name}/IMPLEMENTATION.md如果不存在:
- 通知用户:"在路径下未找到实施文档"
docs/{name}/IMPLEMENTATION.md - 建议:"请先运行 。"
/build implementation {name} - 退出
Step 3: Check for Existing Progress Doc
步骤3:检查是否已有进度文档
Check if already exists.
docs/{name}/PROGRESS.mdIf it exists, use AskUserQuestion:
- question: "A PROGRESS.md already exists. What would you like to do?"
- header: "Existing doc"
- multiSelect: false
- options:
- label: "Overwrite" description: "Start fresh progress tracking"
- label: "Keep existing" description: "Keep current progress, suggest next step"
If "Keep existing" selected, read the progress doc and suggest the next incomplete phase.
检查是否已存在。
docs/{name}/PROGRESS.md如果存在,使用AskUserQuestion:
- question: "已存在PROGRESS.md文档,你想要如何操作?"
- header: "现有文档"
- multiSelect: false
- options:
- label: "覆盖" description: "重新开始进度跟踪"
- label: "保留现有" description: "保留当前进度,建议下一步操作"
如果选择“保留现有”,读取进度文档并建议下一个未完成的阶段。
Step 4: Read Implementation Document
步骤4:读取实施文档
Read to extract:
docs/{name}/IMPLEMENTATION.md- All phase titles
- Tasks within each phase
- Success criteria
读取提取以下内容:
docs/{name}/IMPLEMENTATION.md- 所有阶段标题
- 每个阶段内的任务
- 成功标准
Step 5: Create Progress Document
步骤5:创建进度文档
Write to with this structure:
docs/{name}/PROGRESS.mdmarkdown
undefined写入,使用以下结构:
docs/{name}/PROGRESS.mdmarkdown
undefined{Feature Name} Progress
{Feature Name} Progress
Status: Phase 1 - Not Started
Status: Phase 1 - Not Started
Quick Reference
Quick Reference
- Research:
docs/{name}/RESEARCH.md - Implementation:
docs/{name}/IMPLEMENTATION.md
- Research:
docs/{name}/RESEARCH.md - Implementation:
docs/{name}/IMPLEMENTATION.md
Phase Progress
Phase Progress
Phase 1: [Title from Implementation]
Phase 1: [Title from Implementation]
Status: Not Started
Status: Not Started
Tasks Completed
Tasks Completed
- (none yet)
- (none yet)
Decisions Made
Decisions Made
- (none yet)
- (none yet)
Blockers
Blockers
- (none)
- (none)
Phase 2: [Title]
Phase 2: [Title]
Status: Not Started
[Same structure]
[Continue for all phases]
Status: Not Started
[Same structure]
[Continue for all phases]
Session Log
Session Log
[Date will be added as work happens]
[Date will be added as work happens]
- Work completed
- Decisions made
- Notes for next session
- Work completed
- Decisions made
- Notes for next session
Files Changed
Files Changed
(Will be updated as implementation progresses)
(Will be updated as implementation progresses)
Architectural Decisions
Architectural Decisions
(Major technical decisions and rationale)
(Major technical decisions and rationale)
Lessons Learned
Lessons Learned
(What worked, what didn't, what to do differently)
undefined(What worked, what didn't, what to do differently)
undefinedStep 6: Next Step
步骤6:下一步操作
After creating progress doc:
"Progress tracking set up! Document saved to
docs/{name}/PROGRESS.mdNext step: Run to begin implementation."
/build phase 1 {name}创建进度文档后:
"进度跟踪已设置完成!文档已保存到
docs/{name}/PROGRESS.md下一步: 运行 开始实施。"
/build phase 1 {name}Subcommand: phase
子命令:phase
Step 1: Parse Arguments
步骤1:解析参数
Parse arguments to extract:
- Phase number (if provided)
- Feature name (if provided)
If neither provided, prompt for both using AskUserQuestion.
解析参数提取:
- 阶段编号(如果提供)
- 功能名称(如果提供)
如果都没有提供,使用AskUserQuestion提示用户输入两者。
Step 2: Get Feature Name
步骤2:获取功能名称
If feature name not determined, use AskUserQuestion to prompt for it.
如果未确定功能名称,使用AskUserQuestion提示。
Step 3: Verify All Docs Exist
步骤3:验证所有文档存在
Check that all three docs exist:
docs/{name}/RESEARCH.mddocs/{name}/IMPLEMENTATION.mddocs/{name}/PROGRESS.md
If any missing, inform user which doc is missing and suggest the appropriate command to create it.
/build检查三个文档是否都存在:
docs/{name}/RESEARCH.mddocs/{name}/IMPLEMENTATION.mddocs/{name}/PROGRESS.md
如果有缺失,通知用户缺失的文档,并建议运行对应的命令创建。
/buildStep 4: Get Phase Number
步骤4:获取阶段编号
If phase number not in arguments:
Read to extract available phases.
docs/{name}/IMPLEMENTATION.mdUse AskUserQuestion to let user select:
- question: "Which phase would you like to work on?"
- header: "Phase"
- multiSelect: false
- options: [dynamically generated from phases found in IMPLEMENTATION.md, marking completed ones]
如果参数中没有阶段编号:
读取提取可用的阶段。
docs/{name}/IMPLEMENTATION.md使用AskUserQuestion让用户选择:
- question: "你想要开发哪个阶段?"
- header: "阶段"
- multiSelect: false
- options: [从IMPLEMENTATION.md中提取的阶段动态生成,标记已完成的阶段]
Step 5: Read All Context
步骤5:读取所有上下文
Read all three documents to fully understand:
- The research and rationale (RESEARCH.md)
- The specific phase tasks and success criteria (IMPLEMENTATION.md)
- Current progress and decisions made (PROGRESS.md)
读取所有三个文档全面了解:
- 调研内容和合理性说明(RESEARCH.md)
- 对应阶段的具体任务和成功标准(IMPLEMENTATION.md)
- 当前进度和已做出的决策(PROGRESS.md)
Step 6: Deep Research on Phase
步骤6:阶段深度调研
Before starting implementation:
- Web search for specific implementation details relevant to this phase
- Codebase exploration for relevant existing code
- Use AskUserQuestion to clarify any ambiguities about the phase requirements
开始实施前:
- 网络搜索和该阶段相关的具体实现细节
- 代码库探索查找相关的现有代码
- 使用AskUserQuestion澄清对阶段需求的任何模糊点
Step 7: Execute Phase Work
步骤7:执行阶段开发
Begin implementing the phase:
- Work through each task in the phase
- Use AskUserQuestion frequently for implementation decisions
- Follow the "Always Works" philosophy - test as you go
- Document decisions in PROGRESS.md as you make them
开始实施该阶段:
- 完成阶段内的每个任务
- 做实现决策时高频使用AskUserQuestion
- 遵循“始终可用”原则——边开发边测试
- 做出决策后及时记录到PROGRESS.md中
Step 8: Update Progress Document
步骤8:更新进度文档
As you work, update :
docs/{name}/PROGRESS.md- Mark tasks as completed
- Record decisions made and why
- Note any blockers encountered
- List files changed
- Add architectural decisions
- Update the session log with today's work
Update the phase status:
- "In Progress" when starting
- "Completed" when all tasks done and success criteria met
开发过程中,及时更新:
docs/{name}/PROGRESS.md- 标记已完成的任务
- 记录做出的决策和原因
- 记录遇到的任何阻塞问题
- 列出修改过的文件
- 添加架构决策
- 在会话日志中更新当日的工作内容
更新阶段状态:
- 开始开发时标记为“进行中”
- 完成所有任务并满足成功标准后标记为“已完成”
Step 9: Next Step
步骤9:下一步操作
After completing the phase:
- Read PROGRESS.md to determine next incomplete phase
- Inform user of completion and suggest next action:
"Phase {n} complete! Progress updated in
docs/{name}/PROGRESS.mdNext step: Run to continue with [next phase title]."
/build phase {n+1} {name}Or if all phases complete:
"All phases complete! The {feature name} feature implementation is done.
Consider:
- Running tests to verify everything works
- Updating documentation
- Creating a PR for review"
完成该阶段后:
- 读取PROGRESS.md确定下一个未完成的阶段
- 通知用户完成情况并建议下一步操作:
"阶段{n}已完成!进度已更新到
docs/{name}/PROGRESS.md下一步: 运行 继续开发[下一个阶段标题]。"
/build phase {n+1} {name}如果所有阶段都已完成:
"所有阶段已完成!{feature name}功能开发完毕。
建议后续操作:
- 运行测试验证所有功能正常
- 更新文档
- 创建PR供review"
Subcommand: status
子命令:status
Step 1: Get Feature Name
步骤1:获取功能名称
If feature name not in arguments, use AskUserQuestion to prompt for it.
如果参数中没有功能名称,使用AskUserQuestion提示。
Step 2: Check Which Docs Exist
步骤2:检查文档存在情况
Check for existence of:
docs/{name}/RESEARCH.mddocs/{name}/IMPLEMENTATION.mddocs/{name}/PROGRESS.md
检查以下文档是否存在:
docs/{name}/RESEARCH.mddocs/{name}/IMPLEMENTATION.mddocs/{name}/PROGRESS.md
Step 3: Determine Status and Next Step
步骤3:确定状态和下一步操作
Based on which docs exist:
No docs exist:
"No documents found for feature '{name}'.
Next step: Run to start."
/build research {name}Only RESEARCH.md exists:
"Research complete for '{name}'.
Next step: Run to create implementation plan."
/build implementation {name}RESEARCH.md and IMPLEMENTATION.md exist:
"Research and implementation plan complete for '{name}'.
Next step: Run to set up progress tracking."
/build progress {name}All three exist:
Read PROGRESS.md to find current phase status.
"Feature '{name}' is in progress.
Current status: [Phase X - status]
Next step: Run to continue."
/build phase {next incomplete phase} {name}If all phases complete:
"Feature '{name}' implementation is complete!"
根据存在的文档判断:
没有任何文档:
"未找到功能'{name}'的任何文档。
下一步: 运行 开始开发。"
/build research {name}仅存在RESEARCH.md:
"'{name}'的调研已完成。
下一步: 运行 创建实施计划。"
/build implementation {name}存在RESEARCH.md和IMPLEMENTATION.md:
"'{name}'的调研和实施计划已完成。
下一步: 运行 设置进度跟踪。"
/build progress {name}三个文档都存在:
读取PROGRESS.md查找当前阶段状态。
"功能'{name}'正在开发中。
当前状态: [阶段X - 状态]
下一步: 运行 继续开发。"
/build phase {下一个未完成阶段} {name}如果所有阶段都已完成:
"功能'{name}'开发已完成!"
Important Guidelines
重要指南
Use AskUserQuestion Liberally
灵活使用AskUserQuestion
Throughout all phases, use AskUserQuestion whenever:
- There's ambiguity in requirements
- Multiple approaches are possible
- You need to validate an assumption
- A decision will significantly impact the implementation
- You're unsure about scope or priority
在所有阶段中,遇到以下情况时都可以使用AskUserQuestion:
- 需求存在歧义
- 有多个可选方案
- 需要验证假设
- 某个决策会对实现产生重大影响
- 不确定范围或优先级
Deep Research Expectations
深度调研要求
"Deep research" means:
- Multiple web searches on different aspects
- Thorough codebase exploration
- Reading relevant documentation
- Considering multiple approaches
- Understanding trade-offs
Don't rush through research - it's the foundation for good implementation.
“深度调研”意味着:
- 针对不同维度开展多次网络搜索
- 全面探索代码库
- 阅读相关文档
- 考虑多种实现方案
- 理解方案之间的取舍
不要急于完成调研——它是高质量实现的基础。
Progress Tracking
进度跟踪
Keep PROGRESS.md updated in real-time during phase work:
- Don't wait until the end to update
- Record decisions as they're made
- Note blockers immediately
- This creates valuable context for future sessions
阶段开发过程中实时更新PROGRESS.md:
- 不要等到阶段结束再更新
- 做出决策后立即记录
- 遇到阻塞问题立即记录
- 这会为后续开发提供有价值的上下文
Scope Management
范围管理
A key purpose of this workflow is preventing scope creep:
- Each phase should have clear boundaries
- If new requirements emerge, note them for future phases
- Don't expand the current phase's scope mid-implementation
- Use AskUserQuestion to validate if something is in/out of scope
本工作流的核心目的之一是防止范围蔓延:
- 每个阶段都要有清晰的边界
- 如果出现新需求,记录下来留待后续阶段实现
- 不要在开发过程中扩大当前阶段的范围
- 使用AskUserQuestion验证某个需求是否在当前范围内
Always Works Philosophy
始终可用原则
When implementing phases:
- Test changes as you make them
- Don't assume code works - verify it
- If something doesn't work, fix it before moving on
- The goal is working software, not just written code
实施阶段时:
- 边修改边测试
- 不要假设代码可用——亲自验证
- 如果某个功能无法运行,修复后再继续后续开发
- 目标是交付可用的软件,而不仅仅是写完代码