cancel
Cancel any active OMD mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline)
от MeroZemory★ 30 звёзд на GitHub
Установить cancel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cancel Skill
Intelligent cancellation that detects and cancels the active OMD mode.
The cancel skill is the standard way to complete and exit any OMD 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
Usage
/cancel
Or say: "cancelomc", "stopomc"
Auto-Detection
The skill checks state files to determine what's active:
.omd/state/autopilot-state.json→ Autopilot detected.omd/state/ralph-state.json→ Ralph detected.omd/state/ultrawork-state.json→ Ultrawork detected.omd/state/ecomode-state.json→ Ecomode detected.omd/state/ultraqa-state.json→ UltraQA detected.omd/state/swarm.db→ Swarm detected (SQLite database).omd/state/ultrapilot-state.json→ Ultrapilot detected.omd/state/pipeline-state.json→ Pipeline detected.omd/state/plan-consensus.json→ Plan Consensus detected.omd/state/ralplan-state.json→ Plan Consensus detected (legacy)
If multiple modes are active, they're cancelled in order of dependency:
- Autopilot (includes ralph/ultraqa/ecomode cleanup)
- Ralph (includes linked ultrawork OR ecomode cleanup)
- Ultrawork (standalone)
- Ecomode (standalone)
- UltraQA (standalone)
- Swarm (standalone)
- Ultrapilot (standalone)
- Pipeline (standalone)
- Plan Consensus (standalone)
Force Clear All
To clear ALL state files regardless of what's active:
/cancel --force
Or use the --all alias:
/cancel --all
This removes all state files:
.omd/state/autopilot-state.json.omd/state/ralph-state.json.omd/state/ultrawork-state.json.omd/state/ecomode-state.json.omd/state/ultraqa-state.json.omd/state/swarm.db.omd/state/swarm.db-wal.omd/state/swarm.db-shm.omd/state/swarm-active.marker.omd/state/ultrapilot-state.json.omd/state/pipeline-state.json.omd/state/plan-consensus.json.omd/state/ralplan-state.json
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
fi
2. Detect Active Modes
# Check which modes are active
AUTOPILOT_ACTIVE=false
RALPH_ACTIVE=false
ULTRAWORK_ACTIVE=false
ECOMODE_ACTIVE=false
ULTRAQA_ACTIVE=false
if -f .omd/state/autopilot-state.json; then
AUTOPILOT_ACTIVE=$(cat .omd/state/autopilot-state.json | jq -r '.active // false')
fi
if -f .omd/state/ralph-state.json; then
RALPH_ACTIVE=$(cat .omd/state/ralph-state.json | jq -r '.active // false')
fi
if -f .omd/state/ultrawork-state.json; then
ULTRAWORK_ACTIVE=$(cat .omd/state/ultrawork-state.json | jq -r '.active // false')
fi
if -f .omd/state/ecomode-state.json; then
ECOMODE_ACTIVE=$(cat .omd/state/ecomode-state.json | jq -r '.active // false')
fi
if -f .omd/state/ultraqa-state.json; then
ULTRAQA_ACTIVE=$(cat .omd/state/ultraqa-state.json | jq -r '.active // false')
fi
PLAN_CONSENSUS_ACTIVE=false
# Check both new and legacy locations
if -f .omd/state/plan-consensus.json; then
PLAN_CONSENSUS_ACTIVE=$(cat .omd/state/plan-consensus.json | jq -r '.active // false')
elif -f .omd/state/ralplan-state.json; then
PLAN_CONSENSUS_ACTIVE=$(cat .omd/state/ralplan-state.json | jq -r '.active // false')
fi
3A. Force Mode (if --force or --all)
if "$FORCE_MODE" == "true"; then
echo "FORCE CLEAR: Removing all OMD state files..."
# Remove local state files
rm -f .omd/state/autopilot-state.json
rm -f .omd/state/ralph-state.json
rm -f .omd/state/ultrawork-state.json
rm -f .omd/state/ecomode-state.json
rm -f .omd/state/ultraqa-state.json
rm -f .omd/state/ralph-plan-state.json
rm -f .omd/state/ralph-verification.json
rm -f .omd/state/swarm.db
rm -f .omd/state/swarm.db-wal
rm -f .omd/state/swarm.db-shm
rm -f .omd/state/swarm-active.marker
rm -f .omd/state/ultrapilot-state.json
rm -f .omd/state/pipeline-state.json
rm -f .omd/state/plan-consensus.json
rm -f .omd/state/ralplan-state.json
echo "All OMD modes cleared. You are free to start fresh."
exit 0
fi
3B. Smart Cancellation (default)
If Autopilot Active
Call cancelAutopilot() from `src/hooks/aut
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cancel?
Cancel any active OMD mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline)
Как установить скилл cancel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cancel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…