cancel

cancel is a skill for Claude Code from Yeachan-Heo/oh-my-claudecode. It costs 35 tokens per session (5,161 once invoked), scanned C, original, MIT.

A cancellation command that detects the active OMC workflow and stops it, including autopilot, Ralph, swarm, pipeline, or team modes.

In plain words
What is it for?
Use it when you need to end an active workflow, release coordinated tasks, or clear leftover runtime state; use --force if normal cancellation fails.
Why use it?
It stops ongoing automated work and cleans up its active session state while preserving progress where supported.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the oh-my-claudecode plugin — 37 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it when you need to end an active workflow, release coordinated tasks, or clear leftover runtime state; use --force if normal cancellation fails.

Compare 6 skills from other repositories ↓
About the project

Oh My Claude Code is a multi-agent orchestration system for Claude Code, coordinating specialized agents, commands, skills, hooks, and workflows. It is designed for developers who want Claude Code to handle coding tasks through coordinated agent roles. Catalogue entries are components of its Claude Code workflow, including agents, commands, skills, hooks, instructions, MCP configuration, and a plugin.

Yeachan-Heo/oh-my-claudecode · 39,083 stars · on GitHub · oh-my-claudecode.dev

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Yeachan-Heo/oh-my-claudecode
Claude Code
/plugin install oh-my-claudecode

Made for: Claude Code.

Or install oh-my-claudecode, the plugin that ships this one along with the rest of its 37 skills, 21 commands, 19 agents, 11 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cancel

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/cancel/github.svg)](https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/cancel)
Your own site
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/cancel"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/cancel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cancel

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeachan-heo/oh-my-claudecode/cancel"><img src="https://agentmods.dev/badge/skills/yeachan-heo/oh-my-claudecode/cancel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 17 May 2026
  • Snyk pass 17 May 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.05161
Opus 5 $0.00017 $0.02580
Sonnet 5 $0.00007 $0.01032
Haiku 4.5 $0.00003 $0.00516

Measured 12d ago against content hash 4bf75b74c517, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

cancel scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .omc/state/team-bridge/ # Heartbeat files
skills/cancel/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 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 the persistence loop
  • Legacy Ultrawork state: Cleanup-only removal for upgraded installations; it is not an active workflow
  • UltraQA (retired): No live workflow remains; clears stale pre-5.0.0 ultraqa-state.json if present
  • Ultragoal: Clears the session-scoped ultragoal runtime guard (.omc/state/.../ultragoal-state.json) so PreToolUse /goal enforcement and Stop reinforcement release. Durable .omc/ultragoal/ plan/ledger artifacts are preserved.
  • Swarm: Stops coordinated agent swarm, releases claimed tasks
  • Ultrapilot: Stops parallel autopilot workers
  • Pipeline: Stops sequential agent pipeline
  • Team: Requests shutdown from all teammates through the active team/conversation surface, waits for responses/timeouts, clears OMC team state, clears linked ralph if present. Claude Code 2.1.178+ has no TeamDelete.
  • Team+Ralph (linked): Cancels team first (graceful shutdown), then clears ralph state. Cancelling ralph when linked also cancels team first.

Usage

/oh-my-claudecode:cancel

Or say: "cancelomc", "stopomc"

Critical: Deferred Tool Handling

The state management tools (state_clear, state_read, state_write, state_list_active, state_get_status) may be registered as deferred tools by Claude Code. Before calling any state tool, you MUST first load all of them via ToolSearch:

ToolSearch(query="select:mcp__plugin_oh-my-claudecode_t__state_clear,mcp__plugin_oh-my-claudecode_t__state_read,mcp__plugin_oh-my-claudecode_t__state_write,mcp__plugin_oh-my-claudecode_t__state_list_active,mcp__plugin_oh-my-claudecode_t__state_get_status")

Read the full file on GitHub · 387 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 387 lines · 35 tokens per session scan C 4bf75b74c517

Subscribe to this mod's changes

cancel is a skill published in the GitHub repository Yeachan-Heo/oh-my-claudecode (39,083 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 5,161 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

oh-my-opencode-slim

Configure and improve oh-my-opencode-slim for the current user. Use when users want to tune agents, models, prompts, custom agents, skills, MCPs, presets, or plugin behavior. Also use when recurring workflow friction suggests a safe config or prompt improvement.

alvinunreal/oh-my-opencode-slim · 61 tokens

clonedeps

Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos…

alvinunreal/oh-my-opencode-slim · 76 tokens

codemap

Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked for codebase documentation or initial repository mapping.

alvinunreal/oh-my-opencode-slim · 34 tokens

deepwork

High-cost orchestrator workflow for large, high-risk, multi-phase coding efforts with meaningful dependencies and review gates. Do not activate for routine multi-file changes.

alvinunreal/oh-my-opencode-slim · 34 tokens

worktrees

Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

alvinunreal/oh-my-opencode-slim · 23 tokens

simplify

Simplifies code for clarity without changing behavior. Use for readability, maintainability, and complexity reduction after behavior is understood.

alvinunreal/oh-my-opencode-slim · 27 tokens