cancel

GitHub

智能取消当前活跃的 OMG 模式(如 Autopilot、Ralph 等),清理状态并支持保留进度以恢复。通过解析命令参数和检测状态文件,实现强制或平滑的会话终止与资源回收。

.github/skills/cancel/SKILL.md zereight/gitlab-mcp

触发场景

用户输入 cancel, stop, abort 等停止指令 需要中断当前正在运行的自动化工作流或并行任务

安装

npx skills add zereight/gitlab-mcp --skill cancel -g -y
更多选项

非标准路径

npx skills add https://github.com/zereight/gitlab-mcp/tree/main/.github/skills/cancel -g -y

不安装直接使用

npx skills use zereight/gitlab-mcp@cancel

指定 Agent (Claude Code)

npx skills add zereight/gitlab-mcp --skill cancel -a claude-code -g -y

安装 repo 全部 skill

npx skills add zereight/gitlab-mcp --all -g -y

预览 repo 内 skill

npx skills add zereight/gitlab-mcp --list

SKILL.md

Frontmatter
{
    "name": "cancel",
    "description": "Cancel any active OMG mode and clean up state. Activate when user says: cancel, stop, cancelomg, stopomg, abort, kill it, stop everything.\n",
    "argument-hint": "[--force|--all]"
}

Cancel

Intelligent cancellation that detects and cancels the active OMG mode.

What It Does

Automatically detects which mode is active and cancels it:

  • OMG Autopilot: Stops workflow, preserves progress for resume
  • Ralph: Stops persistence loop
  • Ultrawork: Stops parallel execution
  • UltraQA: Stops QA cycling workflow
  • Team: Sends shutdown to all teammates, cleans up
  • Self-Improve: Stops loop, preserves iteration state for resume

Usage

/cancel
/cancel --force
/cancel --all

Auto-Detection

Reads .omc/state/ to discover which mode is active. Cancels in dependency order:

  1. OMG Autopilot (includes linked ralph/ultraqa cleanup)
  2. Ralph (cleans linked ultrawork)
  3. Ultrawork (standalone)
  4. UltraQA (standalone)
  5. Team (graceful shutdown + cleanup)
  6. Self-Improve (preserve iteration state)

Workflow

1. Parse Arguments

Check for --force or --all flags.

2. Detect Active Modes

Use omg_read_state to check each mode's state file.

3A. Force Mode (--force or --all)

Clear ALL state files in .omc/state/. Nuclear option.

3B. Smart Cancellation (default)

If OMG Autopilot Active

  1. Check for linked ralph → clear ultrawork if linked → clear ralph
  2. Check for linked ultraqa → clear it
  3. Mark omg-autopilot inactive (preserve state for resume)

If Ralph Active (not OMG Autopilot)

  1. Check for linked ultrawork → clear if linked
  2. Clear ralph state

If Team Active

  1. Signal shutdown to all teammates
  2. Wait for responses (15s timeout per member)
  3. Clean up team resources
  4. Clear linked ralph if present

If UltraQA / Ultrawork / Self-Improve Active

Clear state directly.

No Active Modes

Report: "No active OMG modes detected. Use --force to clear all state."

What Gets Preserved

Mode State Preserved Resume Command
OMG Autopilot Yes (phase, files, spec) /omg-autopilot
Self-Improve Yes (iteration state) /self-improve --resume
Ralph No N/A
Others No N/A

Messages

Mode Success Message
OMG Autopilot "OMG Autopilot cancelled at phase: {phase}. Progress preserved."
Ralph "Ralph cancelled. Persistent mode deactivated."
Ultrawork "Ultrawork cancelled."
UltraQA "UltraQA cancelled."
Team "Team cancelled. Teammates shut down."
Self-Improve "Self-improve stopped at iteration {N}."
Force "All OMG modes cleared."
None "No active OMG modes detected."

版本历史

  • a8f5d4f 当前 2026-07-25 10:03

同 Skill 集合

.github/skills/ai-slop-cleaner/SKILL.md
.github/skills/ccg/SKILL.md
.github/skills/coding-standards/SKILL.md
.github/skills/deep-dive/SKILL.md
.github/skills/deep-interview/SKILL.md
.github/skills/omg-autopilot/SKILL.md
.github/skills/plan/SKILL.md
.github/skills/ralph/SKILL.md
.github/skills/ralplan/SKILL.md
.github/skills/remember/SKILL.md
.github/skills/review/SKILL.md
.github/skills/security-scan/SKILL.md
.github/skills/self-improve/SKILL.md
.github/skills/skill-stocktake/SKILL.md
.github/skills/status/SKILL.md
.github/skills/tdd/SKILL.md
.github/skills/team/SKILL.md
.github/skills/trace/SKILL.md
.github/skills/ultraqa/SKILL.md
.github/skills/ultrawork/SKILL.md
.github/skills/verify/SKILL.md
skills/gitlab-mcp/SKILL.md

元信息

文件数
0
版本
ee18073
Hash
a957d2c2
收录时间
2026-07-25 10:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 18:47
浙ICP备14020137号-1 $访客地图$