cancel
Skill5 starsChanged 12 days agoMITView on GitHub
Cancel any active OMX mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
- Deletes or force-pushes
12 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- woosikkim/oh-my-claudecode-slimtheir own version, first seen Nov 8, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 8, 2026
- Gopyr/gopyr-skills-hubtheir own version, first seen Oct 11, 2026
- MacWulf/claude-in-codextheir own version, first seen Oct 9, 2026
- zereight/gitlab-mcpedited, first seen Oct 8, 2026
- Yeachan-Heo/oh-my-claude-sisyphustheir own version, first seen Oct 8, 2026
Used with
Projects with it also use setup.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 4 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- zereight/gitlab-mcp★ 2.1k12% same
- Jurel89/copilot-omni★ 033% same
Wrote their own version · 10
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- Yeachan-Heo/oh-my-codex★ 34ksame name
- Q00/ouroboros★ 6.3ksame name
- AGMO-Inc/agmo-everywhere★ 4same name
- ibahgat/oh-my-iflow★ 2same name
- Jkudjo/oh-my-cursor★ 1same name
- MacWulf/claude-in-codex★ 1same name
- woosikkim/oh-my-claudecode-slim★ 1same name
- Gopyr/gopyr-skills-hub★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- frontend-designSkill
- python-background-jobsSkill
- python-executorSkill
- python-testing-patternsSkill
- seoSkill
- ai-slop-cleanerSkill
- analyzeSkill
- api-and-interface-designSkill
- ask-claudeSkill
- ask-geminiSkill
- autopilotSkill
- browser-testing-with-devtoolsSkill
- build-fixSkill
- ci-cd-and-automationSkill
- clawd-change-workflowSkill
- code-review-and-qualitySkill
- code-reviewSkill
- code-simplificationSkill
- configure-notificationsSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deep-interviewSkill
- deepsearchSkill
- deprecation-and-migrationSkill
- doctorSkill
- documentation-and-adrsSkill
- ecomodeSkill
- frontend-ui-engineeringSkill
- frontend-ui-uxSkill
- git-masterSkill
- git-workflow-and-versioningSkill
- helpSkill
- hudSkill
- idea-refineSkill
- incremental-implementationSkill
- intent_routerSkill
- keyword_registrySkill
- mode_stateSkill
- noteSkill
- omx-setupSkill
- performance-optimizationSkill
- pipeline_orchestratorSkill
- pipelineSkill
- planning-and-task-breakdownSkill
- planSkill
- ralph-initSkill
- ralph_loopSkill
- ralphSkill
- ralplanSkill
- android-reverse-engineeringSkill
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- browser-automationSkill
- browser-extension-reverseSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 6 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When the stop hook detects work is complete, it instructs the LLM to invoke this skill for proper state cleanup.
- Very specific: line 41
When a session id is provided or already known, that session-scoped path is authoritative.
- Distinctive: line 53
If Ralph is linked to Ultrawork or Ecomode in the same scope, that linked mode is also terminalized/non-active.
- Distinctive: line 72
When cancellation targets Ralph state in a scope, completion requires all of the following:
- Very specific: line 80
Use --force or --all when you need to erase every session plus legacy artifacts, e.g., to reset the workspace entirely.
- Very specific: line 96
Every state_clear command honors the session_id argument, so even force mode still uses the session-aware paths first before deleting …
- Distinctive: line 127
When you invoke this skill:
- Very specific: line 142
Call state_list_active to enumerate .omx/state/sessions/{sessionId}/… and discover every active session.
- Very specific: line 144
If a session_id was supplied to /cancel, skip legacy fallback entirely and operate solely within that session path.
- Very specific: line 149
Use force mode to clear every session plus legacy artifacts via state_clear.
- Very specific: line 204
Check .omx/state/team/*/config.json for active teams
- Distinctive: line 206
Wait briefly for workers to exit (15s timeout)
- Very specific: line 216
Call cancelAutopilot() from src/hooks/autopilot/cancel.ts:27-78:
- Very specific: line 257
Call clearRalphState() + clearLinkedUltraworkState() from src/hooks/ralph-loop/index.ts:147-182:
- Very specific: line 337
Use state_list_active to enumerate known session ids and state_get_status to learn the active mode (autopilot, ralph, ultrawork, etc.) for …
- Very specific: line 338
When operating in default mode, call state_clear with that session_id to remove only the session’s files, then run mode-specific cleanup …
- Distinctive: line 379
Safe: Only clears linked Ultrawork, preserves standalone Ultrawork
- Distinctive: line 386
When cancelling team mode, the cancel skill should:
- Very specific: line 390
Strip AGENTS.md overlay: Remove content between <!-- OMX:TEAM:WORKER:START --> and <!-- OMX:TEAM:WORKER:END -->
- Very specific: line 394
When --force is used, also clean up:
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cancel Skill
Intelligent cancellation that detects and cancels the active OMX mode.
The cancel skill is the standard way to complete and exit any OMX mode.
When the stop hook detects work is complete, it instructs the LLM to invoke
this skill for proper state cleanup. If cancel fails or is interrupted,
retry with --force flag, or wait for the 2-hour staleness timeout as
a last resort.
What It Does
Automatically detects which mode is active and cancels it:
- Autopilot: Stops workflow, preserves progress for resume
- Ralph: Stops persistence loop, clears linked ultrawork if applicable
- Ultrawork: Stops parallel execution (standalone or linked)
- Ecomode: Stops token-efficient parallel execution (standalone or linked to ralph)
- UltraQA: Stops QA cycling workflow
- Swarm: Stops coordinated agent swarm, releases claimed tasks
- Ultrapilot: Stops parallel autopilot workers
- Pipeline: Stops sequential agent pipeline
- Team: Sends shutdown inbox to all workers, waits for exit, kills tmux session, and clears team state
Usage
/cancelOr say: "cancelomc", "stopomc"
Auto-Detection
/cancel follows the session-aware state contract:
- By default the command inspects the current session via
state_list_activeandstate_get_status, navigating.omx/state/sessions/{sessionId}/…to discover which mode is active. - When a session id is provided or already known, that session-scoped path is authoritative. Legacy files in
.omx/state/*.jsonare consulted only as a compatibility fallback if the session id is missing or empty. - Swarm is a shared SQLite/marker mode (
.omx/state/swarm.db/.omx/state/swarm-active.marker) and is not session-scoped. - The default cleanup flow calls
state_clearwith the session id to remove only the matching session files; modes stay bound to their originating session.
Normative Ralph cancellation post-conditions (MUST)
For Ralph-targeted cancellation (standalone or linked), completion is defined by post-conditions:
- Target Ralph state is terminalized, not silently removed:
active=falsecurrent_phase='cancelled'completed_atis set (ISO timestamp)
- If Ralph is linked to Ultrawork or Ecomode in the same scope, that linked mode is also terminalized/non-active.
- Cancellation MUST remain scope-safe: no mutation of unrelated sessions.
See: docs/contracts/ralph-cancel-contract.md.
Active modes are still cancelled in dependency order:
- Autopilot (includes linked ralph/ultraqa/ecomode cleanup)
- Ralph (cleans its linked ultrawork or ecomode)
- Ultrawork (standalone)
- Ecomode (standalone)
- UltraQA (standalone)
- Swarm (standalone)
- Ultrapilot (standalone)
- Pipeline (standalone)
- Team (tmux-based)
- Plan Consensus (standalone)
Normative Ralph post-conditions (MUST)
When cancellation targets Ralph state in a scope, completion requires all of the following:
- Ralph state is terminal in that same scope:
active=false,current_phase='cancelled'(or linked terminal phase), andcompleted_atis set. - Linked Ultrawork/Ecomode in the same scope is also terminal/non-active.
- Unrelated sessions are untouched.
Force Clear All
Use --force or --all when you need to erase every session plus legacy artifacts, e.g., to reset the workspace entirely.
/cancel --force/cancel --allSteps under the hood:
state_list_activeenumerates.omx/state/sessions/{sessionId}/…to find every known session.state_clearruns once per session to drop that session’s files.- A global
state_clearwithoutsession_idremoves legacy files under.omx/state/*.json,.omx/state/swarm*.db, and compatibility artifacts (see list). - Team artifacts (
.omx/state/team/*/, tmux sessions matchingomx-team-*) are best-effort cleared as part of the legacy fallback.
Every state_clear command honors the session_id argument, so even force mode still uses the session-aware paths first before deleting legacy files.
Legacy compatibility list (removed only under --force/--all):
.omx/state/autopilot-state.json.omx/state/ralph-state.json.omx/state/ralph-plan-state.json.omx/state/ralph-verification.json.omx/state/ultrawork-state.json.omx/state/ecomode-state.json.omx/state/ultraqa-state.json.omx/state/swarm.db.omx/state/swarm.db-wal.omx/state/swarm.db-shm.omx/state/swarm-active.marker.omx/state/swarm-tasks.db.omx/state/ultrapilot-state.json.omx/state/ultrapilot-ownership.json.omx/state/pipeline-state.json.omx/state/plan-consensus.json.omx/state/ralplan-state.json.omx/state/boulder.json.omx/state/hud-state.json.omx/state/subagent-tracking.json.omx/state/subagent-tracker.lock.omx/state/rate-limit-daemon.pid.omx/state/rate-limit-daemon.log.omx/state/checkpoints/(directory).omx/state/sessions/(empty directory cleanup after clearing sessions)
Implementation Steps
When you invoke this skill:
1. Parse Arguments
# Check for --force or --all flags
FORCE_MODE=false
if [[ "$*" == *"--force"* ]] || [[ "$*" == *"--all"* ]]; then
FORCE_MODE=true
fi2. Detect Active Modes
The skill now relies on the session-aware state contract rather than hard-coded file paths:
- Call
state_list_activeto enumerate.omx/state/sessions/{sessionId}/…and discover every active session. - For each session id, call
state_get_statusto learn which mode is running (autopilot,ralph,ultrawork, etc.) and whether dependent modes exist. - If a
session_idwas supplied to/cancel, skip legacy fallback entirely and operate solely within that session path; otherwise, consult legacy files in.omx/state/*.jsononly if the state tools report no active session. Swarm remains a shared SQLite/marker mode outside session scoping. - Any cancellation logic in this doc mirrors the dependency order discovered via state tools (autopilot → ralph → …).
3A. Force Mode (if --force or --all)
Use force mode to clear every session plus legacy artifacts via state_clear. Direct file removal is reserved for legacy cleanup when the state tools report no active sessions.
3B. Smart Cancellation (default)
If Team Active (tmux-based)
Teams are detected by checking for config files in .omx/state/team/:
# Check for active teams
ls .omx/state/team/*/config.json 2>/dev/nullTwo-pass cancellation protocol:
Pass 1: Graceful Shutdown
For each team found in .omx/state/team/:
1. Read config.json to get team_name and workers list
2. For each worker:
a. Write shutdown inbox to .omx/state/team/{name}/workers/{worker}/inbox.md
b. Send short trigger via tmux send-keys
c. Wait up to 15 seconds for worker tmux pane to exit
d. If still alive: mark as unresponsivePass 2: Force Kill
After graceful pass:
1. For each remaining alive worker:
a. Send C-c via tmux send-keys
b. Wait 2 seconds
c. Kill the tmux window if still alive
2. Destroy the tmux session: tmux kill-session -t omx-team-{name}Cleanup:
1. Strip AGENTS.md team worker overlay (<!-- OMX:TEAM:WORKER:START/END -->)
2. Remove team state directory: rm -rf .omx/state/team/{name}/
3. Clear team mode state: state_clear(mode="team")
4. Emit structured cancel reportStructured Cancel Report:
Team "{team_name}" cancelled:
- Workers signaled: N
- Graceful exits: M
- Force killed: K
- tmux session destroyed: yes/no
- State cleaned up: yes/noImplementation note: The cancel skill is executed by the LLM, not as a bash script. When you detect an active team:
- Check
.omx/state/team/*/config.jsonfor active teams - For each worker in config.workers, write shutdown inbox and send trigger
- Wait briefly for workers to exit (15s timeout)
- Force kill remaining workers via tmux
- Destroy tmux session:
tmux kill-session -t omx-team-{name} - Strip AGENTS.md overlay
- Remove state:
rm -rf .omx/state/team/{name}/ state_clear(mode="team")- Report structured summary to user
If Autopilot Active
Call cancelAutopilot() from src/hooks/autopilot/cancel.ts:27-78:
# Autopilot handles its own cleanup + ralph + ultraqa
# Just mark autopilot as inactive (preserves state for resume)
if [[ -f .omx/state/autopilot-state.json ]]; then
# Clean up ralph if active
if [[ -f .omx/state/ralph-state.json ]]; then
RALPH_STATE=$(cat .omx/state/ralph-state.json)
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .omx/state/ultrawork-state.json ]]; then
rm -f .omx/state/ultrawork-state.json
echo "Cleaned up: ultrawork (linked to ralph)"
fi
# Clean ralph
rm -f .omx/state/ralph-state.json
rm -f .omx/state/ralph-verification.json
echo "Cleaned up: ralph"
fi
# Clean up ultraqa if active
if [[ -f .omx/state/ultraqa-state.json ]]; then
rm -f .omx/state/ultraqa-state.json
echo "Cleaned up: ultraqa"
fi
# Mark autopilot inactive but preserve state
CURRENT_STATE=$(cat .omx/state/autopilot-state.json)
CURRENT_PHASE=$(echo "$CURRENT_STATE" | jq -r '.phase // "unknown"')
echo "$CURRENT_STATE" | jq '.active = false' > .omx/state/autopilot-state.json
echo "Autopilot cancelled at phase: $CURRENT_PHASE. Progress preserved for resume."
echo "Run /autopilot to resume."
fiIf Ralph Active (but not Autopilot)
Call clearRalphState() + clearLinkedUltraworkState() from src/hooks/ralph-loop/index.ts:147-182:
if [[ -f .omx/state/ralph-state.json ]]; then
# Check if ultrawork is linked
RALPH_STATE=$(cat .omx/state/ralph-state.json)
LINKED_UW=$(echo "$RALPH_STATE" | jq -r '.linked_ultrawork // false')
# Clean linked ultrawork first
if [[ "$LINKED_UW" == "true" ]] && [[ -f .omx/state/ultrawork-state.json ]]; then
UW_STATE=$(cat .omx/state/ultrawork-state.json)
UW_LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
# Only clear if it was linked to ralph
if [[ "$UW_LINKED" == "true" ]]; then
rm -f .omx/state/ultrawork-state.json
echo "Cleaned up: ultrawork (linked to ralph)"
fi
fi
# Clean ralph state
rm -f .omx/state/ralph-state.json
rm -f .omx/state/ralph-plan-state.json
rm -f .omx/state/ralph-verification.json
echo "Ralph cancelled. Persistent mode deactivated."
fiIf Ultrawork Active (standalone, not linked)
Call deactivateUltrawork() from src/hooks/ultrawork/index.ts:150-173:
if [[ -f .omx/state/ultrawork-state.json ]]; then
# Check if linked to ralph
UW_STATE=$(cat .omx/state/ultrawork-state.json)
LINKED=$(echo "$UW_STATE" | jq -r '.linked_to_ralph // false')
if [[ "$LINKED" == "true" ]]; then
echo "Ultrawork is linked to Ralph. Use /cancel to cancel both."
exit 1
fi
# Remove local state
rm -f .omx/state/ultrawork-state.json
echo "Ultrawork cancelled. Parallel execution mode deactivated."
fiIf UltraQA Active (standalone)
Call clearUltraQAState() from src/hooks/ultraqa/index.ts:107-120:
if [[ -f .omx/state/ultraqa-state.json ]]; then
rm -f .omx/state/ultraqa-state.json
echo "UltraQA cancelled. QA cycling workflow stopped."
fiNo Active Modes
echo "No active OMX modes detected."
echo ""
echo "Checked for:"
echo " - Autopilot (.omx/state/autopilot-state.json)"
echo " - Ralph (.omx/state/ralph-state.json)"
echo " - Ultrawork (.omx/state/ultrawork-state.json)"
echo " - UltraQA (.omx/state/ultraqa-state.json)"
echo ""
echo "Use --force to clear all state files anyway."Implementation Notes
The cancel skill runs as follows:
- Parse the
--force/--allflags, tracking whether cleanup should span every session or stay scoped to the current session id. - Use
state_list_activeto enumerate known session ids andstate_get_statusto learn the active mode (autopilot,ralph,ultrawork, etc.) for each session. - When operating in default mode, call
state_clearwith that session_id to remove only the session’s files, then run mode-specific cleanup (autopilot → ralph → …) based on the state tool signals. - In force mode, iterate every active session, call
state_clearper session, then run a globalstate_clearwithoutsession_idto drop legacy files (.omx/state/*.json, compatibility artifacts) and report success. Swarm remains a shared SQLite/marker mode outside session scoping. - Team artifacts (
.omx/state/team/*/, tmux sessions matchingomx-team-*) remain best-effort cleanup items invoked during the legacy/global pass.
State tools always honor the session_id argument, so even force mode still clears the session-scoped paths before deleting compatibility-only legacy state.
Mode-specific subsections below describe what extra cleanup each handler performs after the state-wide operations finish.
Messages Reference
| Mode | Success Message |
| Autopilot | "Autopilot cancelled at phase: {phase}. Progress preserved for resume." |
| Ralph | "Ralph cancelled. Persistent mode deactivated." |
| Ultrawork | "Ultrawork cancelled. Parallel execution mode deactivated." |
| Ecomode | "Ecomode cancelled. Token-efficient execution mode deactivated." |
| UltraQA | "UltraQA cancelled. QA cycling workflow stopped." |
| Swarm | "Swarm cancelled. Coordinated agents stopped." |
| Ultrapilot | "Ultrapilot cancelled. Parallel autopilot workers stopped." |
| Pipeline | "Pipeline cancelled. Sequential agent chain stopped." |
| Team | "Team cancelled. Teammates shut down and cleaned up." |
| Plan Consensus | "Plan Consensus cancelled. Planning session ended." |
| Force | "All OMX modes cleared. You are free to start fresh." |
| None | "No active OMX modes detected." |
What Gets Preserved
| Mode | State Preserved | Resume Command |
| Autopilot | Yes (phase, files, spec, plan, verdicts) | /autopilot |
| Ralph | No | N/A |
| Ultrawork | No | N/A |
| UltraQA | No | N/A |
| Swarm | No | N/A |
| Ultrapilot | No | N/A |
| Pipeline | No | N/A |
| Plan Consensus | Yes (plan file path preserved) | N/A |
Notes
- Dependency-aware: Autopilot cancellation cleans up Ralph and UltraQA
- Link-aware: Ralph cancellation cleans up linked Ultrawork or Ecomode
- Safe: Only clears linked Ultrawork, preserves standalone Ultrawork
- Local-only: Clears state files in
.omx/state/directory - Resume-friendly: Autopilot state is preserved for seamless resume
- Team-aware: Detects tmux-based teams and performs graceful shutdown with force-kill fallback
Tmux Team Cleanup
When cancelling team mode, the cancel skill should:
- Kill all team tmux sessions:
tmux list-sessions -F '#{session_name}' 2>/dev/null | grep '^omx-team-'and kill each - Remove team state directories:
rm -rf .omx/state/team/*/ - Strip AGENTS.md overlay: Remove content between
<!-- OMX:TEAM:WORKER:START -->and<!-- OMX:TEAM:WORKER:END -->
Force Clear Addition
When --force is used, also clean up:
rm -rf .omx/state/team/ # All team state
# Kill all omx-team-* tmux sessions
tmux list-sessions -F '#{session_name}' 2>/dev/null | grep '^omx-team-' | while read s; do tmux kill-session -t "$s" 2>/dev/null; doneDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

