The emergency brake for when OMC modes refuse to stop cleanly. It auto-detects which mode is running (autopilot, ralph, ultrawork, swarm, team, etc.) and kills it in the right order, respecting dependencies like ralph's linked ultrawork or team's graceful shutdown flow. The state tools are deferred, so you'll need to ToolSearch them first or the whole thing fails. When that happens, there's a bash fallback that nukes state files directly, though it won't work for autopilot (breaks resume data) or omc-teams (needs tmux cleanup). Use --force to scorched-earth every session and legacy artifact at once. Mostly you'll invoke this when a stop hook detects completion, but it's also your escape hatch when modes get stuck.
- skills.sh installs
- 910
- GitHub stars
- 40.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yeachan-heo/oh-my-claudecode --skill cancel --agent claude-codeInstalls into .claude/skills of the current project.
Files
Cancel Skill
Intelligent cancellation that detects and cancels the active OMC mode.
The cancel skill is the standard way to complete and exit any OMC mode.
When the stop hook detects completion, it instructs the LLM to invoke this
skill for state cleanup. Retry a failed operation in the same scope and report
what remains; --force changes shutdown urgency, never scope, lock handling,
or ownership checks. --all is the only cross-session authorization.
Cancellation Contract
The flags control independent scope and shutdown dimensions:
| Invocation | Scope | Shutdown behavior |
|---|---|---|
| no flags | Current session only | Graceful cancellation, including teammate shutdown waits |
--force | Current session only | Forced cancellation: skip graceful waits, but still use protected state tools and honor locks/ownership |
--all | Every known session, by explicit session id | Normal safe cancellation independently for each session, then explicit legacy/global cleanup |
--force --all | Every known session, by explicit session id | Forced-all: skip graceful waits for each session, then perform the authorized legacy/global cleanup |
Sponsors
Details
- Repository
- github.com/yeachan-heo/oh-my-claudecode
- Categories
- DevOps & CI/CD, Automation & Workflows, Sales & Marketing
- First seen
- Jun 3, 2026
