cancel

Cancel active OMC modes and restore a clean state.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/OliverOuyang/shuhe-work-skills --skill cancel-oliverouyang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cancel
Source: https://github.com/OliverOuyang/shuhe-work-skills/tree/main/skills/cancel
Command: npx skills add https://github.com/OliverOuyang/shuhe-work-skills --skill cancel-oliverouyang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Canceling active OMC modes to restore a clean state when workflows or team sessions are stuck or conflicting.

Core Features & Use Cases

  • Detects active modes (Autopilot, Ralph, Ultrawork, UltraQA, Swarm, Ultrapilot, Pipeline, Team) and cancels them in dependency order.
  • Supports a global force/complete cleanup with --force or --all to drop legacy state via state_clear.
  • Uses session-aware state contracts (state_list_active and state_get_status) to target the right scope and preserve resume data for Autopilot where applicable.

Quick Start

Use the /oh-my-claudecode:cancel command to terminate the active OMC mode and perform cleanup.

Frequently Asked Questions about cancel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cancel an active OMC mode in Claude Code?▼

To cancel an active OMC mode, use the /oh-my-claudecode:cancel command. It detects active modes like Autopilot, Ralph, Ultrawork, or Team and terminates them in dependency order to restore a clean state.

How does session-aware state cleanup work when canceling workflows?▼

Session-aware state cleanup uses state_list_active and state_get_status to detect the correct scope before terminating workflows. This ensures only the targeted active sessions are dropped while preserving Autopilot resume data where applicable.

Can I force cancel all legacy state and stuck sessions at once?▼

Yes, you can force cancel all legacy state by appending the --force or --all flag to the cancel command. This executes a global cleanup using state_clear to drop all active modes regardless of dependency order.

Does canceling OMC modes preserve Autopilot resume data?▼

Yes, canceling OMC modes preserves Autopilot resume data where applicable. The command uses session-aware state contracts to target the right scope, ensuring resume information remains intact during standard cancellation.

What is the best way to clean up conflicting team sessions in Claude Code?▼

The best way to clean up conflicting team sessions is executing the cancel command. It targets active Team modes using session-aware state contracts, clearing the stuck workflow and restoring a clean environment.

Why are my OMC workflows stuck and not responding to new commands?▼

OMC workflows get stuck when active modes conflict or fail to exit cleanly. Running the cancel command identifies these active modes via state_get_status and terminates them in dependency order to restore a clean state.