$npx -y skills add jmstar85/oh-my-githubcopilot --skill cancelCancel any active OMG mode and clean up state. Activate when user says: cancel, stop, cancelomg, stopomg, abort, kill it, stop everything.
| 1 | # Cancel |
| 2 | |
| 3 | Intelligent cancellation that detects and cancels the active OMG mode. |
| 4 | |
| 5 | ## What It Does |
| 6 | |
| 7 | Automatically detects which mode is active and cancels it: |
| 8 | - **OMG Autopilot**: Stops workflow, preserves progress for resume |
| 9 | - **Ralph**: Stops persistence loop |
| 10 | - **Ultrawork**: Stops parallel execution |
| 11 | - **UltraQA**: Stops QA cycling workflow |
| 12 | - **Team**: Sends shutdown to all teammates, cleans up |
| 13 | - **Self-Improve**: Stops loop, preserves iteration state for resume |
| 14 | |
| 15 | ## Usage |
| 16 | |
| 17 | ``` |
| 18 | /cancel |
| 19 | /cancel --force |
| 20 | /cancel --all |
| 21 | ``` |
| 22 | |
| 23 | ## Auto-Detection |
| 24 | |
| 25 | Reads `.omg/state/` to discover which mode is active. Cancels in dependency order: |
| 26 | |
| 27 | 1. OMG Autopilot (includes linked ralph/ultraqa cleanup) |
| 28 | 2. Ralph (cleans linked ultrawork) |
| 29 | 3. Ultrawork (standalone) |
| 30 | 4. UltraQA (standalone) |
| 31 | 5. Team (graceful shutdown + cleanup) |
| 32 | 6. Self-Improve (preserve iteration state) |
| 33 | |
| 34 | ## Workflow |
| 35 | |
| 36 | ### 1. Parse Arguments |
| 37 | Check for `--force` or `--all` flags. |
| 38 | |
| 39 | ### 2. Detect Active Modes |
| 40 | Use `omg_read_state` to check each mode's state file. |
| 41 | |
| 42 | ### 3A. Force Mode (--force or --all) |
| 43 | Clear ALL state files in `.omg/state/`. Nuclear option. |
| 44 | |
| 45 | ### 3B. Smart Cancellation (default) |
| 46 | |
| 47 | #### If OMG Autopilot Active |
| 48 | 1. Check for linked ralph → clear ultrawork if linked → clear ralph |
| 49 | 2. Check for linked ultraqa → clear it |
| 50 | 3. Mark omg-autopilot inactive (preserve state for resume) |
| 51 | |
| 52 | #### If Ralph Active (not OMG Autopilot) |
| 53 | 1. Check for linked ultrawork → clear if linked |
| 54 | 2. Clear ralph state |
| 55 | |
| 56 | #### If Team Active |
| 57 | 1. Signal shutdown to all teammates |
| 58 | 2. Wait for responses (15s timeout per member) |
| 59 | 3. Clean up team resources |
| 60 | 4. Clear linked ralph if present |
| 61 | |
| 62 | #### If UltraQA / Ultrawork / Self-Improve Active |
| 63 | Clear state directly. |
| 64 | |
| 65 | #### No Active Modes |
| 66 | Report: "No active OMG modes detected. Use --force to clear all state." |
| 67 | |
| 68 | ## What Gets Preserved |
| 69 | |
| 70 | | Mode | State Preserved | Resume Command | |
| 71 | |------|-----------------|----------------| |
| 72 | | OMG Autopilot | Yes (phase, files, spec) | `/omg-autopilot` | |
| 73 | | Self-Improve | Yes (iteration state) | `/self-improve --resume` | |
| 74 | | Ralph | No | N/A | |
| 75 | | Others | No | N/A | |
| 76 | |
| 77 | ## Messages |
| 78 | |
| 79 | | Mode | Success Message | |
| 80 | |------|-----------------| |
| 81 | | OMG Autopilot | "OMG Autopilot cancelled at phase: {phase}. Progress preserved." | |
| 82 | | Ralph | "Ralph cancelled. Persistent mode deactivated." | |
| 83 | | Ultrawork | "Ultrawork cancelled." | |
| 84 | | UltraQA | "UltraQA cancelled." | |
| 85 | | Team | "Team cancelled. Teammates shut down." | |
| 86 | | Self-Improve | "Self-improve stopped at iteration {N}." | |
| 87 | | Force | "All OMG modes cleared." | |
| 88 | | None | "No active OMG modes detected." | |