cancel

GitHub

用于终止活跃 OMX 模式(如 autopilot、ralph 等)并执行清理。支持正常取消与强制停止,需验证状态依赖关系,确保会话数据正确归档或清除,保障系统状态一致性。

plugins/oh-my-codex/skills/cancel/SKILL.md Yeachan-Heo/oh-my-codex

Trigger Scenarios

用户希望停止当前运行的自动化任务或工作流 检测到异常需要紧急中断 OMX 模式 任务完成后的标准退出流程

Install

npx skills add Yeachan-Heo/oh-my-codex --skill cancel -g -y
More Options

Non-standard path

npx skills add https://github.com/Yeachan-Heo/oh-my-codex/tree/main/plugins/oh-my-codex/skills/cancel -g -y

Use without installing

npx skills use Yeachan-Heo/oh-my-codex@cancel

指定 Agent (Claude Code)

npx skills add Yeachan-Heo/oh-my-codex --skill cancel -a claude-code -g -y

安装 repo 全部 skill

npx skills add Yeachan-Heo/oh-my-codex --all -g -y

预览 repo 内 skill

npx skills add Yeachan-Heo/oh-my-codex --list

SKILL.md

Frontmatter
{
    "name": "cancel",
    "description": "Cancel any active OMX mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)"
}

Cancel Skill

When to use

Use /cancel (or cancelomc / stopomc) to stop an active OMX mode and perform its documented cleanup. Read AGENTS.md#durable-runtime-invariants-canonical-ssot first; it is the invariant authority for scope, ownership, hooks, and Team cleanup.

Inputs and preconditions

  • Accepted forms are /cancel and /cancel --force.
  • Reject --all, unknown flags, repeated flags, and mixed flags before mutation.
  • Discover the current session/root with the state read surfaces before cleanup:
    omx state list-active --json
    omx state get-status --mode <mode> --json
    
  • Confirm the current session/root and exact target before cleanup; stop when the required evidence is missing.

Operational steps

  1. Parse and validate arguments; select one exact session/root scope.
  2. Inspect active modes in dependency order: autopilot → ralph → ultrawork → ecomode → ultraqa → swarm → ultrapilot → pipeline → team → plan-consensus.
  3. Cancel Autopilot while preserving its resumable state; clean only linked child modes it owns.
  4. For Ralph, terminalize the target state (active:false, current_phase:"cancelled", completed_at) and terminalize a proven linked Ultrawork/Ecomode state in the same scope. Confirm the post-conditions in docs/contracts/ralph-cancel-contract.md.
  5. Clear standalone modes only after proving they are not linked to another active mode.
  6. For Team, inspect the runtime with omx team status <team> --json; use omx team shutdown <team> after the normal completion gate, or follow the explicit abort path.
  7. Clear only the selected mode/session state through the state API, for example:
    omx state clear --input '{"mode":"<mode>","session_id":"<session>"}' --json
    
  8. With --force, perform its documented native-stop cleanup. Report rollback or cleanup failures rather than claiming success.

Exit and evidence

Report one result per selected mode: mode, scope/session, terminal phase, preserved state, linked cleanup, and any refusal reason. A clean no-op reports No active OMX modes detected. Include Team status and shutdown evidence when Team was selected.

Version History

  • 3ad79a8 Current 2026-08-28 17:52

    从自动检测模式改为明确的手动调用与参数校验;新增对 Ralph、Team 等特定模式的详细清理逻辑和契约验证;强调前置状态读取与证据确认,提升操作安全性。

  • e94437f 2026-08-20 07:17

Same Skill Collection

plugins/oh-my-codex/skills/analyze/SKILL.md
plugins/oh-my-codex/skills/ask/SKILL.md
plugins/oh-my-codex/skills/autopilot/SKILL.md
plugins/oh-my-codex/skills/autoresearch-goal/SKILL.md
plugins/oh-my-codex/skills/autoresearch/SKILL.md
plugins/oh-my-codex/skills/best-practice-research/SKILL.md
plugins/oh-my-codex/skills/configure-notifications/SKILL.md
plugins/oh-my-codex/skills/deep-interview/SKILL.md
plugins/oh-my-codex/skills/design/SKILL.md
plugins/oh-my-codex/skills/hud/SKILL.md
plugins/oh-my-codex/skills/omx-setup/SKILL.md
plugins/oh-my-codex/skills/performance-goal/SKILL.md
plugins/oh-my-codex/skills/pipeline/SKILL.md
plugins/oh-my-codex/skills/prometheus-strict/SKILL.md
plugins/oh-my-codex/skills/ralph/SKILL.md
plugins/oh-my-codex/skills/ralplan/SKILL.md
plugins/oh-my-codex/skills/skill/SKILL.md
plugins/oh-my-codex/skills/team/SKILL.md
plugins/oh-my-codex/skills/ultragoal/SKILL.md
plugins/oh-my-codex/skills/ultraqa/SKILL.md
plugins/oh-my-codex/skills/ultrawork/SKILL.md
plugins/oh-my-codex/skills/visual-ralph/SKILL.md
plugins/oh-my-codex/skills/wiki/SKILL.md
plugins/oh-my-codex/skills/worker/SKILL.md
skills/analyze/SKILL.md
skills/ask-claude/SKILL.md
skills/ask-gemini/SKILL.md
skills/ask/SKILL.md
skills/autopilot/SKILL.md
skills/autoresearch/SKILL.md
skills/best-practice-research/SKILL.md
skills/cancel/SKILL.md
skills/configure-notifications/SKILL.md
skills/deep-interview/SKILL.md
skills/design/SKILL.md
skills/frontend-ui-ux/SKILL.md
skills/git-master/SKILL.md
skills/hud/SKILL.md
skills/omx-setup/SKILL.md
skills/performance-goal/SKILL.md
skills/pipeline/SKILL.md
skills/prometheus-strict/SKILL.md
skills/ralplan/SKILL.md
skills/skill/SKILL.md
skills/team/SKILL.md
skills/ultragoal/SKILL.md
skills/ultraqa/SKILL.md
skills/visual-ralph/SKILL.md
skills/wiki/SKILL.md

Metadata

Files
0
Version
3ad79a8
Hash
661a7286
Indexed
2026-08-20 07:17

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 00:21
浙ICP备14020137号-1 $bản đồ khách truy cập$