cancel

cancel is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 35 tokens per session (5,001 once invoked), scanned A, original, MIT.

A cancellation skill for stopping an active OMC workflow, such as autopilot, parallel work, repeated attempts, quality checks, or an agent team.

In plain words
What is it for?
Use it when you need to stop an ongoing OMC mode or shut down a coordinated group of agents.
Why use it?
It stops background coordination cleanly and clears the workflow’s active 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; mentions Claude Code.

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-copilot plugin — 51 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it when you need to stop an ongoing OMC mode or shut down a coordinated group of agents.

Compare 6 skills from other repositories ↓
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 RobinNorberg/oh-my-copilot
Claude Code
/plugin install oh-my-copilot

Made for: Claude Code.

Or install oh-my-copilot, the plugin that ships this one along with the rest of its 51 skills, 21 commands, 20 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/robinnorberg/oh-my-copilot/cancel/github.svg)](https://agentmods.dev/skills/robinnorberg/oh-my-copilot/cancel)
Your own site
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/cancel"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/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/robinnorberg/oh-my-copilot/cancel"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/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,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.05001
Opus 5 $0.00017 $0.02500
Sonnet 5 $0.00007 $0.01000
Haiku 4.5 $0.00003 $0.00500

Measured 6d ago against content hash 009472b46435, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cancel scanned grade A 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 6d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

node -e "const{execFileSync}=require('node:child_process');let out='';try{out=execFileSync('tmux',['list-sessions','-F','#{session_name}'],{encoding:'utf8'})}catch{out=''};for(const s of out.split(/\r?\n/).map(x=>x.trim(
skills/cancel/SKILL.md · 358 lines

How it starts

The opening of the file, as written. The whole thing — 358 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 (.omg/state/.../ultragoal-state.json) so PreToolUse /goal enforcement and Stop reinforcement release. Durable .omg/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-copilot: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-copilot_t__state_clear,mcp__plugin_oh-my-copilot_t__state_read,mcp__plugin_oh-my-copilot_t__state_write,mcp__plugin_oh-my-copilot_t__state_list_active,mcp__plugin_oh-my-copilot_t__state_get_status")

Read the full file on GitHub · 358 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. 6d ago Changed · -31 lines · +3 tokens per session scan C → A 009472b46435
  2. 10d ago First seen · 389 lines · 32 tokens per session scan C c093e2373ca5

Subscribe to this mod's changes

cancel is a skill published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed 3d ago), licensed MIT. It adds 35 tokens to every session and 5,001 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

winui-design

Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light/Dark/High Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs…

microsoft/win-dev-skills · 119 tokens

winui-packaging

MSIX packaging, code signing, and distribution for WinUI 3 apps — build for release, certificate generation (winapp cert generate), certificate trust, code signing (winapp sign), self-contained deployment, CI/CD with GitHub Actions, and Microsoft Store submission. Use when preparing for release, creating MSIX…

microsoft/win-dev-skills · 86 tokens

winui-session-report

Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.

microsoft/win-dev-skills · 61 tokens

orchestrator-lanes

A file-based project-management playbook for a specific Claude Code development orchestrator. It organizes work into lanes, plans, dependency steps, validation phases, and shipping stages.

VKirill/claude-lane-stack · 0 tokens

lane-memory

A file-based store for durable project facts that cannot be reliably inferred from source code or its module map.

VKirill/claude-lane-stack · 59 tokens

yandex-webmaster

Loaded automatically when the description matches the active task. Read only the section you need, then follow the link to the relevant reference file.

VKirill/claude-lane-stack · 180 tokens