cancel
Installation
SKILL.md
Cancel
Intelligent cancellation that detects and cancels the active OMG mode.
What It Does
Automatically detects which mode is active and cancels it:
- OMG Autopilot: Stops workflow, preserves progress for resume
- Ralph: Stops persistence loop
- Ultrawork: Stops parallel execution
- UltraQA: Stops QA cycling workflow
- Team: Sends shutdown to all teammates, cleans up
- Self-Improve: Stops loop, preserves iteration state for resume
Usage
/cancel
/cancel --force
/cancel --all
Auto-Detection
Reads .omc/state/ to discover which mode is active. Cancels in dependency order:
- OMG Autopilot (includes linked ralph/ultraqa cleanup)
- Ralph (cleans linked ultrawork)
- Ultrawork (standalone)
- UltraQA (standalone)
- Team (graceful shutdown + cleanup)
- Self-Improve (preserve iteration state)
Workflow
1. Parse Arguments
Check for --force or --all flags.
2. Detect Active Modes
Use omg_read_state to check each mode's state file.
3A. Force Mode (--force or --all)
Clear ALL state files in .omc/state/. Nuclear option.
3B. Smart Cancellation (default)
If OMG Autopilot Active
- Check for linked ralph → clear ultrawork if linked → clear ralph
- Check for linked ultraqa → clear it
- Mark omg-autopilot inactive (preserve state for resume)
If Ralph Active (not OMG Autopilot)
- Check for linked ultrawork → clear if linked
- Clear ralph state
If Team Active
- Signal shutdown to all teammates
- Wait for responses (15s timeout per member)
- Clean up team resources
- Clear linked ralph if present
If UltraQA / Ultrawork / Self-Improve Active
Clear state directly.
No Active Modes
Report: "No active OMG modes detected. Use --force to clear all state."
What Gets Preserved
| Mode | State Preserved | Resume Command |
|---|---|---|
| OMG Autopilot | Yes (phase, files, spec) | /omg-autopilot |
| Self-Improve | Yes (iteration state) | /self-improve --resume |
| Ralph | No | N/A |
| Others | No | N/A |
Messages
| Mode | Success Message |
|---|---|
| OMG Autopilot | "OMG Autopilot cancelled at phase: {phase}. Progress preserved." |
| Ralph | "Ralph cancelled. Persistent mode deactivated." |
| Ultrawork | "Ultrawork cancelled." |
| UltraQA | "UltraQA cancelled." |
| Team | "Team cancelled. Teammates shut down." |
| Self-Improve | "Self-improve stopped at iteration {N}." |
| Force | "All OMG modes cleared." |
| None | "No active OMG modes detected." |
Related skills