cancel
БесплатноБез исполняемых скриптовНе проверенCancel any active RCS mode (autopilot, forge, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
от JustineDevs★ 17 звёзд на GitHubОб этом скилле
Cancel Skill
Intelligent cancellation that detects and cancels the active RCS mode.
The cancel skill is the standard way to complete and exit any RCS 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
- Forge: 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 forge)
- UltraQA: Stops QA cycling workflow
- Swarm: Stops coordinated agent swarm, releases claimed tasks
- Ultrapilot: Stops parallel autopilot workers
- Pipeline: Stops sequential agent pipeline
- Team: Sends shutdown inbox to all workers, waits for exit, kills tmux session, and clears team state
Usage
/cancel
Or say: "cancelomc", "stopomc"
Auto-Detection
/cancel follows the session-aware state contract:
- By default the command inspects the current session via
state_list_activeandstate_get_status, navigating.rcs/state/sessions/{sessionId}/…to discover which mode is active. - When a session id is provided or already known, that session-scoped path is authoritative. Legacy files in
.rcs/state/*.jsonare consulted only as a compatibility fallback if the session id is missing or empty. - Swarm is a shared SQLite/marker mode (
.rcs/state/swarm.db/.rcs/state/swarm-active.marker) and is not session-scoped. - The default cleanup flow calls
state_clearwith the session id to remove only the matching session files; modes stay bound to their originating session.
Normative Forge cancellation post-conditions (MUST)
For Forge-targeted cancellation (standalone or linked), completion is defined by post-conditions:
- Target Forge state is terminalized, not silently removed:
active=falsecurrent_phase='cancelled'completed_atis set (ISO timestamp)
- If Forge is linked to Ultrawork or Ecomode in the same scope, that linked mode is also terminalized/non-active.
- Cancellation MUST remain scope-safe: no mutation of unrelated sessions.
See: docs/contracts/forge-cancel-contract.md.
Active modes are still cancelled in dependency order:
- Autopilot (includes linked forge/ultraqa/ecomode cleanup)
- Forge (cleans its linked ultrawork or ecomode)
- Ultrawork (standalone)
- Ecomode (standalone)
- UltraQA (standalone)
- Swarm (standalone)
- Ultrapilot (standalone)
- Pipeline (standalone)
- Team (tmux-based)
- Plan Consensus (standalone)
Normative Forge post-conditions (MUST)
When cancellation targets Forge state in a scope, completion requires all of the following:
- Forge state is terminal in that same scope:
active=false,current_phase='cancelled'(or linked terminal phase), andcompleted_atis set. - Linked Ultrawork/Ecomode in the same scope is also terminal/non-active.
- Unrelated sessions are untouched.
Force Clear All
Use --force or --all when you need to erase every session plus legacy artifacts, e.g., to reset the workspace entirely.
/cancel --force
/cancel --all
Steps under the hood:
state_list_activeenumerates.rcs/state/sessions/{sessionId}/…to find every known session.state_clearruns once per session to drop that session’s files.- A global
state_clearwithoutsession_idremoves legacy files under.rcs/state/*.json,.rcs/state/swarm*.db, and compatibility artifacts (see list). - Team artifacts (
.rcs/state/team/*/, tmux sessions matchingrcs-team-*) are best-effort cleared as part of the legacy fallback.
Every state_clear command honors the session_id argument, so even force mode still uses the session-aware paths first before deleting legacy files.
Legacy compatibility list (removed only under --force/--all):
.rcs/state/autopilot-state.json.rcs/state/forge-state.json.rcs/state/forge-plan-state.json.rcs/state/forge-verification.json.rcs/state/ultrawork-state.json.rcs/state/ecomode-state.json.rcs/state/ultraqa-state.json.rcs/state/swarm.db.rcs/state/swarm.db-wal.rcs/state/swarm.db-shm.rcs/state/swarm-active.marker.rcs/state/swarm-tasks.db.rcs/state/ultrapilot-state.json.rcs/state/ultrapilot-ownership.json.rcs/state/pipeline-state.json.rcs/state/plan-consensus.json.rcs/state/blueprint-state.json.rcs/state/boulder.json.rcs/state/hud-state.json.rcs/state/subagent-tracking.json.rcs/state/subagent-tracker.lock.rcs/state/rate-limit-daemon.pid.rcs/state/rate-limit-daemon.log.rcs/state/checkpoints/(directory).rcs/state/sessions/(empty directory cleanup after clearing sessions)
Установить cancel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cancel?
Cancel any active RCS mode (autopilot, forge, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
Как установить скилл cancel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cancel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub