Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cancel

БесплатноБез исполняемых скриптовНе проверен

Cancel any active RCS mode (autopilot, forge, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)

JustineDevsот 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_active and state_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/*.json are 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_clear with 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:

  1. Target Forge state is terminalized, not silently removed:
    • active=false
    • current_phase='cancelled'
    • completed_at is set (ISO timestamp)
  2. If Forge is linked to Ultrawork or Ecomode in the same scope, that linked mode is also terminalized/non-active.
  3. 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:

  1. Autopilot (includes linked forge/ultraqa/ecomode cleanup)
  2. Forge (cleans its linked ultrawork or ecomode)
  3. Ultrawork (standalone)
  4. Ecomode (standalone)
  5. UltraQA (standalone)
  6. Swarm (standalone)
  7. Ultrapilot (standalone)
  8. Pipeline (standalone)
  9. Team (tmux-based)
  10. Plan Consensus (standalone)

Normative Forge post-conditions (MUST)

When cancellation targets Forge state in a scope, completion requires all of the following:

  1. Forge state is terminal in that same scope: active=false, current_phase='cancelled' (or linked terminal phase), and completed_at is set.
  2. Linked Ultrawork/Ecomode in the same scope is also terminal/non-active.
  3. 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:

  1. state_list_active enumerates .rcs/state/sessions/{sessionId}/… to find every known session.
  2. state_clear runs once per session to drop that session’s files.
  3. A global state_clear without session_id removes legacy files under .rcs/state/*.json, .rcs/state/swarm*.db, and compatibility artifacts (see list).
  4. Team artifacts (.rcs/state/team/*/, tmux sessions matching rcs-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)
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить cancel с