Cancel Skill
When to use
Use /cancel (or cancelomc / stopomc) to stop an active OMX mode and perform its documented cleanup. Read AGENTS.md#durable-runtime-invariants-canonical-ssot first; it is the invariant authority for scope, ownership, hooks, and Team cleanup.
Inputs and preconditions
- Accepted forms are
/canceland/cancel --force. - Reject
--all, unknown flags, repeated flags, and mixed flags before mutation. - Discover the current session/root with the state read surfaces before cleanup:
omx state list-active --json omx state get-status --mode <mode> --json - Confirm the current session/root and exact target before cleanup; stop when the required evidence is missing.
Operational steps
- Parse and validate arguments; select one exact session/root scope.
- Inspect active modes in dependency order:
autopilot → ralph → ultrawork → ecomode → ultraqa → swarm → ultrapilot → pipeline → team → plan-consensus. - Cancel Autopilot while preserving its resumable state; clean only linked child modes it owns.
- For Ralph, terminalize the target state (
active:false,current_phase:"cancelled",completed_at) and terminalize a…