मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट41k · #6996

cancel

यह क्या करती है

यह स्किल oh-my-claudecode में चल रहे स्वचालित मोड बंद करती है और उनकी बची हुई स्थिति साफ़ करती है। यह उन लोगों के लिए है जो पृष्ठभूमि में चल रहा मोड रोकना चाहते हैं या काम पूरा होने पर उसे रीसेट करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब कोई स्वचालित मोड, जैसे autopilot या ralph, अभी भी चल रहा हो और आप उसे रोकना चाहें।
  • ✓जब कोई स्वचालित मोड खत्म हो चुका हो और उसकी सेव स्थिति साफ़ करनी हो।
  • ✓जब आप सभी सत्रों में स्वचालित मोड रोकना चाहें।

Skill का लिंक

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/cancel/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/cancel/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कृपया autopilot का चल रहा काम रोकिए और उसकी स्थिति साफ़ कर दीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पता लगाता है कि कौन-सा मोड चालू है और उसे मौजूदा सत्र में रद्द करता है। दूसरे सत्रों तक वह तभी पहुँचता है जब आप सबके लिए साफ़ तौर पर कहें, और चल रहे काम के लॉक का सम्मान करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 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.

Cancellation Contract

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.

What It Does

Automatically detects and cancels active modes:

  • Autopilot: Stops the workflow while preserving progress for resume.
  • Ralph: Stops the persistence loop.
  • Legacy Ultrawork / UltraQA: Removes stale upgraded-installation state only; neither is a live workflow.
  • Ultragoal: Clears its session runtime guard while preserving durable .omc/ultragoal/ plan and ledger artifacts.
  • Swarm: Stops coordinated agents and releases claimed tasks only in its authorized shared cleanup path.
  • Ultrapilot / Pipeline: Stops their worker or sequential execution.
  • Team: Uses the active team surface for graceful shutdown, then clears session-scoped Team state; forced paths skip waits. Claude Code 2.1.178+ has no TeamDelete.
  • Team + Ralph: Team is cancelled first, then linked Ralph is cleared in the same session; a Team failure retains linked Ralph.
  • OMC Teams, Plan Consensus, and Self-Improve: Use their mode-specific protected cleanup and preserve artifacts designated for resume.

Usage

/oh-my-claudecode:cancel
/oh-my-claudecode:cancel --force
/oh-my-claudecode:cancel --all
/oh-my-claudecode:cancel --force --all

Or say: cancelomc, stopomc.

Critical: Deferred Tool Handling

The state tools (state_clear, state_read, state_write, state_list_active, state_get_status) may be deferred by Claude Code. Before calling any of them, load all of them with 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")

If state_clear is unavailable or fails, retry the same scoped operation and report the failure. The fallback below is only an emergency escape from a stop-hook loop for a non-force, non-Team cancellation. It removes files only for an explicitly identified current session. Do NOT use this fallback for autopilot, team, or omc-teams, or for --force/--all; never use it to bypass a lock, ownership check, corruption, or another state-tool failure. Linked modes need one protected operation per mode.

Replace MODE with the specific mode (for example ralplan, ralph, ultrawork, or ultragoal).

# Emergency fallback: direct file removal for one identified session only.
SESSION_ID="${OMC_SESSION_ID:-${CLAUDE_SESSION_ID:-${CLAUDECODE_SESSION_ID:-}}}"
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || { d="$PWD"; while [ "$d" != "/" ] && [ ! -d "$d/.omc" ]; do d="$(dirname "$d")"; done; echo "$d"; })"
sha256portable() { printf '%s' "$1" | (sha256sum 2>/dev/null || shasum -a 256) | cut -c1-16; }

if [ -n "${OMC_STATE_DIR:-}" ]; then
  SOURCE="$(git remote get-url origin 2>/dev/null || echo "$REPO_ROOT")"
  HA
अक्सर पूछे जाने वाले सवाल

force विकल्प क्या करता है?

यह बंद होते समय का सामान्य इंतज़ार छोड़ देता है, पर लॉक और मालिकाना जाँच फिर भी मानता है।

क्या यह डिफ़ॉल्ट रूप से हर सत्र रद्द करेगी?

नहीं। डिफ़ॉल्ट रूप से यह सिर्फ़ मौजूदा सत्र पर काम करती है, और सभी सत्र रद्द करने के लिए साफ़ अनुरोध चाहिए।

क्या हर रन के बाद इसकी ज़रूरत होती है?

यह स्वचालित मोड को सही तरह बंद करने का सामान्य तरीका है, इसलिए इसे उसे साफ़ तरह से समेटने के लिए इस्तेमाल किया जाता है।

जानकारी

लेखक का मूल विवरण

Cancel any active OMC mode (autopilot, ralph, ultragoal, swarm, ultrapilot, pipeline, team) and clean up retired legacy state

repo: Yeachan-Heo/oh-my-claudecode

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6996
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

agent-doc-discipline

41k

यह आपके एजेंट को ऐसे निर्देश लिखना सिखाती है जिन्हें दूसरे AI एजेंट बिना अतिरिक्त समझ के फ़ॉलो कर सकें।

लेखन और डॉक्यूमेंटलेखन

ai-slop-cleaner

41k

यह आपके एजेंट को AI से लिखे गए ऐसे कोड को साफ़ करने में मदद करती है जो चलता है पर फूला हुआ या दोहराव वाला है, बिना उसका व्यवहार बदले।

कोडिंगसामान्य कोडिंग

architecture-survey

41k

यह आपके एजेंट को कोडबेस की संरचना देखकर उन हिस्सों की सूची बनाने में मदद करती है जिन्हें बदलना कठिन होता जा रहा है, सबूत के साथ, बिना खुद कुछ बदले।

कोडिंगसामान्य कोडिंग

ask-navigator

41k

यह आपके एजेंट को एक धुंधले प्रोजेक्ट को साफ़ फ़ैसले वाले सवालों के नक्शे में बदलने में मदद करती है, फिर उन्हें एक-एक करके हल करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills