mission-orchestrator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTable of Contents
目录
Mission Orchestrator
任务编排器
Overview
概述
Wraps the entire attune development lifecycle (brainstorm → specify → plan → execute) into a single mission with automatic state detection, type selection, and phase routing. Follows the "persistent presence lens" pattern from — delegates entirely to existing skills via calls, never re-implements phase logic.
spec-kit:speckit-orchestratorSkill()将完整的attune开发生命周期(头脑风暴 → 需求定义 → 规划 → 执行)封装为一个任务,具备自动状态检测、类型选择和阶段路由功能。遵循中的「持久存在视角」模式——完全通过调用委托给现有技能,绝不重复实现阶段逻辑。
spec-kit:speckit-orchestratorSkill()When To Use
适用场景
- Starting a new project from scratch (full lifecycle)
- Resuming an interrupted project workflow
- Running a focused tactical implementation from existing specs
- Quick-fixing from an existing implementation plan
- 从零开始启动新项目(完整生命周期)
- 恢复中断的项目工作流
- 根据现有需求定义执行聚焦的战术实现
- 基于现有实施计划进行快速修复
When NOT To Use
不适用场景
- Running a single phase directly (use ,
/attune:brainstorm, etc.)/attune:specify - Non-project work (code review, debugging, research)
- When you need fine-grained control over phase transitions
- 直接运行单个阶段(使用、
/attune:brainstorm等命令)/attune:specify - 非项目类工作(代码审查、调试、研究)
- 需要对阶段过渡进行细粒度控制的场景
Mission Lifecycle
任务生命周期
1. State Detection
Scan for existing artifacts (project-brief.md, specification.md, etc.)
|
2. Mission Type Selection
Auto-detect type based on artifacts, or accept user override
|
3. Phase Routing Loop
For each phase in the mission type:
a. Pre-phase validation (check prerequisites)
b. Invoke Skill(attune:{phase-skill})
c. Post-phase artifact check (verify output exists)
d. Update mission state
e. User checkpoint (skippable with --auto)
f. Error handling via leyline:damage-control
|
4. Completion
All phases complete, final state saved1. 状态检测
扫描现有工件(project-brief.md、specification.md等)
|
2. 任务类型选择
根据工件自动检测类型,或接受用户覆盖选择
|
3. 阶段路由循环
针对任务类型中的每个阶段:
a. 阶段前验证(检查前置条件)
b. 调用Skill(attune:{phase-skill})
c. 阶段后工件检查(验证输出是否存在)
d. 更新任务状态
e. 用户检查点(使用--auto参数可跳过)
f. 通过leyline:damage-control处理错误
|
4. 完成
所有阶段完成,保存最终状态Mission Types
任务类型
| Type | Phases | Auto-detected When |
|---|---|---|
| brainstorm → specify → plan → execute | No artifacts exist |
| specify → plan → execute | |
| plan → execute | |
| execute | |
See for full type definitions and custom type support.
modules/mission-types.md| 类型 | 阶段 | 自动检测条件 |
|---|---|---|
| 头脑风暴 → 需求定义 → 规划 → 执行 | 无现有工件 |
| 需求定义 → 规划 → 执行 | |
| 规划 → 执行 | |
| 执行 | |
查看获取完整类型定义和自定义类型支持。
modules/mission-types.mdPhase-to-Skill Mapping
阶段与Skill映射
| Phase | Skill Invoked | Artifact Produced |
|---|---|---|
| brainstorm | | |
| specify | | |
| plan | | |
| execute | | Implemented code + tests |
The orchestrator never re-implements phase logic. Each phase is a complete invocation that handles its own workflow.
Skill()| 阶段 | 调用的Skill | 生成的工件 |
|---|---|---|
| 头脑风暴 | | |
| 需求定义 | | |
| 规划 | | |
| 执行 | | 已实现的代码 + 测试用例 |
编排器绝不重复实现阶段逻辑。每个阶段都是一次完整的调用,由其自行处理工作流。
Skill()Session Recovery
会话恢复
Missions persist state to . On resume:
.attune/mission-state.json- Load mission state file
- Validate referenced artifacts still exist on disk
- Identify last completed phase
- Continue from next phase in sequence
See for the state schema and recovery protocol.
modules/mission-state.md任务会将状态持久化到。恢复时:
.attune/mission-state.json- 加载任务状态文件
- 验证引用的工件仍存在于磁盘上
- 识别最后完成的阶段
- 从序列中的下一个阶段继续执行
查看获取状态 schema 和恢复协议。
modules/mission-state.mdModule Reference
模块参考
- mission-types.md: Type definitions, auto-detection logic, custom types
- state-detection.md: Artifact existence checks, quality validation, staleness
- phase-routing.md: Phase execution protocol, transition hooks, error handling
- mission-state.md: State schema, persistence, recovery protocol
- mission-types.md:类型定义、自动检测逻辑、自定义类型
- state-detection.md:工件存在性检查、质量验证、过期检测
- phase-routing.md:阶段执行协议、过渡钩子、错误处理
- mission-state.md:状态 schema、持久化、恢复协议
Related Skills
相关技能
- - Brainstorm phase
Skill(attune:project-brainstorming) - - Specify phase
Skill(attune:project-specification) - - Plan phase
Skill(attune:project-planning) - - Execute phase
Skill(attune:project-execution) - - Risk assessment for RED/CRITICAL tasks
Skill(attune:war-room-checkpoint) - - Task risk classification
Skill(leyline:risk-classification) - - Error recovery during phases
Skill(leyline:damage-control)
- - 头脑风暴阶段
Skill(attune:project-brainstorming) - - 需求定义阶段
Skill(attune:project-specification) - - 规划阶段
Skill(attune:project-planning) - - 执行阶段
Skill(attune:project-execution) - - 针对RED/CRITICAL任务的风险评估
Skill(attune:war-room-checkpoint) - - 任务风险分类
Skill(leyline:risk-classification) - - 阶段中的错误恢复
Skill(leyline:damage-control)
Related Commands
相关命令
- - Invoke this skill
/attune:mission - - Resume from saved state
/attune:mission --resume - - Override mission type
/attune:mission --type tactical
- - 调用此技能
/attune:mission - - 从保存的状态恢复
/attune:mission --resume - - 覆盖任务类型
/attune:mission --type tactical
Exit Criteria
退出标准
- All phases in mission type completed successfully
- Artifacts exist for each completed phase
- Mission state saved to
.attune/mission-state.json - Risk summary generated (tier counts across all tasks)
- No unresolved errors or blockers
- 任务类型中的所有阶段成功完成
- 每个已完成的阶段都对应存在工件
- 任务状态已保存到
.attune/mission-state.json - 生成风险摘要(所有任务的等级统计)
- 无未解决的错误或阻塞问题