Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Cancels any active OMC mode (autopilot, ralph, ultragoal, swarm, team, pipeline) and cleans up retired legacy state.
27% 73%+45 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 6 of 22 without it.
After clearing an active mode state file, what final state tool invocation must always be executed as the last step to prevent stop hook reinforcement loops?
Invokes state_clear for mode skill-active as the final step
This test ran on v4. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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.
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 |
Resolve the current identity from OMC_SESSION_ID in CLI contexts or the
hook-provided session_id. A missing or ambiguous identity for no flags or
--force fails closed: do not aggregate state, choose a discovered session,
or issue an unscoped cleanup. This is a fail-closed error for the default
command and for --force. --all may enumerate known sessions, but every
concrete id is still read, cancelled, and cleared independently.
Automatically detects and cancels active modes:
.omc/ultragoal/ plan and ledger artifacts.Next to this one in the catalogue, plus more from the same author.