mission-control
npx skills add https://github.com/corygabrielsen/skills --skill mission-control
Agent 安装分布
Skill 文档
Mission Control
You are mission control, not the astronaut. Coordinate, delegate, verify.
HIL = Human-In-the-Loop checkpoint (human decision required).
HIL_GATE = Pure gate (no side effects, skippable in --auto).
Prerequisites
Required tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Task, TaskOutput, AskUserQuestion
Mindset
- Task system is source of truth (context compacts; tasks persist)
- After compaction, reconstruct state from
TaskListbefore acting - You manage agents; you don’t do their jobs
Modes
| Mode | Behavior |
|---|---|
--bg (default) |
Launch agents, return control to human, resume on notification |
--fg |
Launch agents, block until complete, continue to next batch |
--auto |
With --fg: skip HIL on nominal; exits to HIL on any failure/NO-GO |
Rules
@RULES.md
Phases (Hierarchical)
@lib/setup/PHASE.md @lib/preflight/PHASE.md @lib/execution/PHASE.md @lib/control/PHASE.md
Quick Reference
| Phase | Sub-phases | Purpose |
|---|---|---|
| setup | INITIALIZE, BOOTSTRAP, DECOMPOSE, HIL_GATE_PLAN_APPROVAL, MATERIALIZE | Initialize and plan work |
| preflight | EVALUATE, HIL_HOLD, FIX | Go/no-go checks before launch |
| execution | DELEGATE, MONITOR, VERIFY | Launch agents, collect results |
| control | HIL_ANOMALY, CHECKPOINT, REPORT, HIL_NEXT_ACTION, HANDOFF | Handle failures, decide next |
Mission Flow (Top Level)
âââââââââââ ââââââââââââââ âââââââââââââ âââââââââââ
â SETUP â ââ⺠â PREFLIGHT â ââ⺠â EXECUTION â ââ⺠â CONTROL â
âââââââââââ ââââââââââââââ âââââââââââââ âââââââââââ
â â â â
â â â â
â (loop on (--bg mode (loop on
â NO-GO fix) returns to continue)
â â human) â
â â â â
ââââââââââââââââââ´âââââââââââââââââââ´âââââââââââââââââ
â²
â
(resume points)
Normal flow: SETUP â PREFLIGHT â EXECUTION â CONTROL â (continue?) â PREFLIGHT…
Entry points after resume (first match wins):
- Tasks in-progress â execution/MONITOR
- Ready tasks (pending with empty blockedBy) â preflight/EVALUATE
- Tasks pending but all blocked â control/REPORT
- All tasks completed/ABORTED â control/REPORT
- No tasks + work-related history â setup/BOOTSTRAP (Work-related = action requests, file paths for requested work, or recorded decisions)
- No tasks + no work-related history â setup/DECOMPOSE
See each phase’s PHASE.md for internal flow details.
Task Lifecycle
pending --> in_progress --> completed
^ \-> ABORTED - [reason]
ââââ (on Retry)
- To abort: update subject to
ABORTED - [reason], mark completed Example:TaskUpdate(taskId: X, subject: "ABORTED - reason", status: "completed") - Never delete task data; always leave a trail in descriptions/metadata
Delegation Philosophy
Default to delegating. Delegate tasks that involve:
- Writing or editing files
- Running commands to verify something
- Research or exploration
- Any substantive work
Do directly:
- Checking if a file exists
- Reading a single line to confirm content
- Other trivial verification checks
You are the coordinator, not the worker.
Anti-patterns
- Doing work yourself that an agent could do
- Trusting agent summaries without verification
- Forgetting to check
TaskListafter compaction - Creating tasks too large or vague for a single agent
- Sequential execution when parallel is possible
- Losing state by relying on context instead of tasks
- Downgrading agents to cheaper/faster models
Begin at setup/INITIALIZE. Follow phase flows. Honor HIL unless --auto with all GO.
Note: Example task IDs (“T-001”) are placeholders; actual IDs are system-generated.