cancel
What it does
This skill stops a running agent workflow and clears its leftover state. It is for people who started a long-running mode and need to end it cleanly.
When to use it
- ✓When an autonomous or multi-step mode is running and you want to stop it.
- ✓When a mode seems stuck and you need to end it cleanly.
- ✓When you want to check which modes are active before ending any of them.
Skill link
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/cancel/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Stop the active autopilot run, but keep its progress so I can resume it later.”
5 new skills a week. 1 minute to read.
How it works
It checks which modes are active, then cancels them in a set order. Autopilot keeps its resumable state, while other modes are marked as cancelled and cleaned up.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 proven linked Ultrawork/Ecomode state in the same scope. Confirm the post-conditions indocs/contracts/ralph-cancel-contract.md. - Clear standalone modes only after proving they are not linked to another active mode.
- For Team, inspect the runtime with
omx team status <team> --json; useomx team shutdown <team>after the normal completion gate, or follow the explicit abort path. - Clear only the selected mode/session state through the state API, for example:
omx state clear --input '{"mode":"<mode>","session_id":"<session>"}' --json - With
--force, perform its documented native-stop cleanup. Report rollback or cleanup failures rather than claiming success.
Exit and evidence
Report one result per selected mode: mode, scope/session, terminal phase, preserved state, linked cleanup, and any refusal reason. A clean no-op reports No active OMX modes detected. Include Team status and shutdown evidence when Team was selected.
FAQ
Will I lose progress?
Autopilot keeps its resumable state, so it can be picked up later.
What flags are accepted?
Only the plain cancel command and the force version are accepted. Any other flags are rejected before anything changes.
Can it cancel every mode at once?
No. The skill rejects the all option and works on one exact session.
Details
Original description by the author
Cancel any active OMX mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
repo: Yeachan-Heo/oh-my-codex
Popularity
- GitHub stars
- 34k
- Ranking position
- #8415
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
ai-slop-cleaner
34kHelps your agent clean up bloated, repetitive, or AI-generated code by removing dead code and needless wrappers, while keeping behavior intact.
analyze
34kLets your agent answer a question about a codebase by reading the relevant code and reporting ranked explanations with evidence, without making changes.
ask
34kLets your agent ask a locally installed Claude or Gemini command line tool for a second opinion or review, and saves the answer as a file.
autopilot
34kRuns a full, hands-off project from an idea through requirements, planning, and execution, pausing only for real blockers.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.