autopilot
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<Purpose>
Autopilot takes a brief product idea and autonomously handles the full lifecycle: requirements analysis, technical design, planning, parallel implementation, QA cycling, and multi-perspective validation. It produces working, verified code from a 2-3 line description.
</Purpose>
<Use_When>
- User wants end-to-end autonomous execution from an idea to working code
- User says "autopilot", "auto pilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an..."
- Task requires multiple phases: planning, coding, testing, and validation
- User wants hands-off execution and is willing to let the system run to completion </Use_When>
<Do_Not_Use_When>
- User wants to explore options or brainstorm -- use skill instead
plan - User says "just explain", "draft only", or "what would you suggest" -- respond conversationally
- User wants a single focused code change -- use or delegate to an executor agent
ralph - User wants to review or critique an existing plan -- use
plan --review - Task is a quick fix or small bug -- use direct executor delegation </Do_Not_Use_When>
<Why_This_Exists>
Most non-trivial software tasks require coordinated phases: understanding requirements, designing a solution, implementing in parallel, testing, and validating quality. Autopilot orchestrates all of these phases automatically so the user can describe what they want and receive working code without managing each step.
</Why_This_Exists>
<Execution_Policy>
- Each phase must complete before the next begins
- Parallel execution is used within phases where possible (Phase 2 and Phase 4)
- QA cycles repeat up to 5 times; if the same error persists 3 times, stop and report the fundamental issue
- Validation requires approval from all reviewers; rejected items get fixed and re-validated
- Cancel with at any time; progress is preserved for resume </Execution_Policy>
/oh-my-claudecode:cancel
-
Phase 1 - Planning: Create an implementation plan from the spec
- Architect (Opus): Create plan (direct mode, no interview)
- Critic (Opus): Validate plan
- Output:
.omc/plans/autopilot-impl.md
-
Phase 2 - Execution: Implement the plan using Ralph + Ultrawork
- Executor-low (Haiku): Simple tasks
- Executor (Sonnet): Standard tasks
- Executor-high (Opus): Complex tasks
- Run independent tasks in parallel
-
Phase 3 - QA: Cycle until all tests pass (UltraQA mode)
- Build, lint, test, fix failures
- Repeat up to 5 cycles
- Stop early if the same error repeats 3 times (indicates a fundamental issue)
-
Phase 4 - Validation: Multi-perspective review in parallel
- Architect: Functional completeness
- Security-reviewer: Vulnerability check
- Code-reviewer: Quality review
- All must approve; fix and re-validate on rejection
-
Phase 5 - Cleanup: Delete all state files on successful completion
- Remove ,
.omc/state/autopilot-state.json,ralph-state.json,ultrawork-state.jsonultraqa-state.json - Run for clean exit </Steps>
/oh-my-claudecode:cancel
- Remove
<Tool_Usage>
- Before first MCP tool use, call to discover deferred MCP tools
ToolSearch("mcp") - Use with
ask_codexfor Phase 4 architecture validationagent_role: "architect" - Use with
ask_codexfor Phase 4 security reviewagent_role: "security-reviewer" - Use with
ask_codexfor Phase 4 quality reviewagent_role: "code-reviewer" - Agents form their own analysis first, then consult Codex for cross-validation
- If ToolSearch finds no MCP tools or Codex is unavailable, proceed without it -- never block on external tools </Tool_Usage>
<Escalation_And_Stop_Conditions>
- Stop and report when the same QA error persists across 3 cycles (fundamental issue requiring human input)
- Stop and report when validation keeps failing after 3 re-validation rounds
- Stop when the user says "stop", "cancel", or "abort"
- If requirements were too vague and expansion produces an unclear spec, pause and ask the user for clarification before proceeding </Escalation_And_Stop_Conditions>
<Final_Checklist>
- All 5 phases completed (Expansion, Planning, Execution, QA, Validation)
- All validators approved in Phase 4
- Tests pass (verified with fresh test run output)
- Build succeeds (verified with fresh build output)
- State files cleaned up
- User informed of completion with summary of what was built </Final_Checklist>
<Purpose>
Autopilot 接收简短的产品创意,自主处理全生命周期:需求分析、技术设计、规划、并行实现、QA循环以及多视角验证。它仅通过2-3行描述即可生成可运行、经过验证的代码。
</Purpose>
<Use_When>
- 用户需要从创意到可运行代码的端到端自主执行
- 用户说出“autopilot”、“auto pilot”、“autonomous”、“build me”、“create me”、“make me”、“full auto”、“handle it all”或“I want a/an...”
- 任务需要多个阶段:规划、编码、测试和验证
- 用户希望无需手动干预,让系统运行至完成 </Use_When>
<Do_Not_Use_When>
- 用户希望探索选项或头脑风暴——改用技能
plan - 用户说“just explain”、“draft only”或“what would you suggest”——以对话方式回应
- 用户需要单一聚焦的代码变更——使用或委托给执行Agent
ralph - 用户希望评审或批评现有计划——使用
plan --review - 任务是快速修复或小bug——直接委托给执行Agent </Do_Not_Use_When>
<Why_This_Exists>
大多数非琐碎的软件任务需要协调多个阶段:理解需求、设计解决方案、并行实现、测试以及验证质量。Autopilot可自动编排所有这些阶段,因此用户只需描述需求,即可获取可运行代码,无需管理每个步骤。
</Why_This_Exists>
<Execution_Policy>
- 每个阶段必须完成后才能进入下一个阶段
- 在可能的阶段内使用并行执行(阶段2和阶段4)
- QA循环最多重复5次;如果相同错误持续出现3次,停止并报告根本问题
- 验证需要所有评审方的批准;被拒绝的内容会被修复并重新验证
- 可随时使用取消;进度会被保存以便恢复 </Execution_Policy>
/oh-my-claudecode:cancel
-
阶段1 - 规划:根据规格说明创建实现计划
- 架构师(Opus):创建计划(直接模式,无需沟通)
- 评审员(Opus):验证计划
- 输出:
.omc/plans/autopilot-impl.md
-
阶段2 - 执行:使用Ralph + Ultrawork实现计划
- 低级执行器(Haiku):处理简单任务
- 标准执行器(Sonnet):处理标准任务
- 高级执行器(Opus):处理复杂任务
- 并行执行独立任务
-
阶段3 - QA:循环直至所有测试通过(UltraQA模式)
- 构建、代码检查、测试、修复失败项
- 最多重复5次循环
- 如果相同错误出现3次则提前停止(表明存在根本问题)
-
阶段4 - 验证:多视角并行评审
- 架构师:功能完整性检查
- 安全评审员:漏洞检查
- 代码评审员:质量评审
- 所有评审方必须批准;被拒绝的内容需修复后重新验证
-
阶段5 - 清理:成功完成后删除所有状态文件
- 删除、
.omc/state/autopilot-state.json、ralph-state.json、ultrawork-state.jsonultraqa-state.json - 运行以干净退出 </Steps>
/oh-my-claudecode:cancel
- 删除
<Tool_Usage>
- 在首次使用MCP工具前,调用来发现延迟加载的MCP工具
ToolSearch("mcp") - 在阶段4架构验证中,使用并设置
ask_codexagent_role: "architect" - 在阶段4安全评审中,使用并设置
ask_codexagent_role: "security-reviewer" - 在阶段4质量评审中,使用并设置
ask_codexagent_role: "code-reviewer" - Agent先自行分析,然后咨询Codex进行交叉验证
- 如果ToolSearch未找到MCP工具或Codex不可用,无需等待直接继续——绝不要因外部工具而阻塞 </Tool_Usage>
<Escalation_And_Stop_Conditions>
- 当相同QA错误在3次循环中持续出现时,停止并报告(需要人工干预的根本问题)
- 当验证在3次重新验证后仍持续失败时,停止并报告
- 当用户说出“stop”、“cancel”或“abort”时停止
- 如果需求过于模糊,扩展后生成的规格说明不清晰,暂停并向用户请求澄清后再继续 </Escalation_And_Stop_Conditions>
<Final_Checklist>
- 完成所有5个阶段(扩展、规划、执行、QA、验证)
- 阶段4中所有验证方均已批准
- 测试通过(通过最新测试运行输出验证)
- 构建成功(通过最新构建输出验证)
- 状态文件已清理
- 已通知用户完成,并总结构建内容 </Final_Checklist>
Configuration
配置
Optional settings in :
.claude/settings.jsonjson
{
"omc": {
"autopilot": {
"maxIterations": 10,
"maxQaCycles": 5,
"maxValidationRounds": 3,
"pauseAfterExpansion": false,
"pauseAfterPlanning": false,
"skipQa": false,
"skipValidation": false
}
}
}可在中设置可选参数:
.claude/settings.jsonjson
{
"omc": {
"autopilot": {
"maxIterations": 10,
"maxQaCycles": 5,
"maxValidationRounds": 3,
"pauseAfterExpansion": false,
"pauseAfterPlanning": false,
"skipQa": false,
"skipValidation": false
}
}
}Resume
恢复
If autopilot was cancelled or failed, run again to resume from where it stopped.
/oh-my-claudecode:autopilot如果Autopilot被取消或失败,再次运行即可从停止处恢复。
/oh-my-claudecode:autopilotBest Practices for Input
输入最佳实践
- Be specific about the domain -- "bookstore" not "store"
- Mention key features -- "with CRUD", "with authentication"
- Specify constraints -- "using TypeScript", "with PostgreSQL"
- Let it run -- avoid interrupting unless truly needed
- 明确领域——使用“书店”而非“商店”
- 提及关键功能——“支持CRUD”、“带认证功能”
- 指定约束条件——“使用TypeScript”、“搭配PostgreSQL”
- 让其运行——除非必要,避免中断
Troubleshooting
故障排除
Stuck in a phase? Check TODO list for blocked tasks, review , or cancel and resume.
.omc/autopilot-state.jsonQA cycles exhausted? The same error 3 times indicates a fundamental issue. Review the error pattern; manual intervention may be needed.
Validation keeps failing? Review the specific issues. Requirements may have been too vague -- cancel and provide more detail.
</Advanced>
卡在某个阶段? 检查待办事项列表中的阻塞任务,查看,或取消后恢复。
.omc/autopilot-state.jsonQA循环耗尽? 相同错误出现3次表明存在根本问题。查看错误模式;可能需要人工干预。
验证持续失败? 查看具体问题。需求可能过于模糊——取消并提供更多细节。
</Advanced>
",