跳到主要内容
知仓学习社ZHICANG

cancel

Cancel stuck or orphaned executions

不碰外部(只输出文字)无严重或高危命中Q00/ouroboros

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

/ouroboros:cancel

Cancel stuck or orphaned executions by session ID, cancel all running sessions, or interactively pick from active executions.

Usage

/ouroboros:cancel                          # Interactive: list active, pick one
/ouroboros:cancel <execution_id>           # Cancel specific execution
/ouroboros:cancel --all                    # Cancel all running executions

Trigger keywords: "cancel execution", "kill session", "stop running", "abort execution"

How It Works

This skill interacts directly with the event store (not via MCP tool) to emit cancellation events. It uses the CLI command under the hood.

Three modes:

  1. Bare (no args): Lists all active (running/paused) executions in a numbered table and prompts you to pick one to cancel
  2. Explicit (execution_id): Cancels the specified execution immediately
  3. --all flag: Cancels every running or paused execution at once

Instructions

When the user invokes this skill:

  1. Determine which mode to use:
  • If the user provided an execution/session ID: Explicit mode
  • If the user says "cancel all" or "cancel everything": --all mode
  • If no ID given and not "all": Bare mode (interactive listing)
  1. Run the appropriate CLI command using Bash:

Bare mode (interactive):

   ouroboros cancel execution

This will list active executions and prompt for selection.

Explicit mode (specific execution):

   ouroboros cancel execution <execution_id>

Cancel all mode:

   ouroboros cancel execution --all

With custom reason:

   ouroboros cancel execution <execution_id> --reason "Stuck for 2 hours"
  1. Present results to the user:
  • Show which executions were cancelled
  • If bare mode, show the list and selection prompt
  • If no active executions, inform the user
  1. End with a next-step suggestion:
  • After cancellation: ◆ Cancelled — use ooo status to verify, or ooo run to start fresh
  • No active sessions: ◆ No active executions — use ooo run to start a new one

State Transitions

Only sessions in running or paused status can be cancelled. Sessions that are already completed, failed, or cancelled are skipped with a warning.

Fallback (No Database)

If the configured runtime EventStore does not exist:

No Ouroboros database found at the configured runtime path.
Run an execution first with: /ouroboros:ouroboros-run

Example

User: cancel that stuck execution

> ouroboros cancel execution

Active Executions
┌───┬──────────────────┬──────────────┬─────────┬─────────┬──────────────┐
│ # │ Session ID       │ Execution ID │ Seed ID │ Status  │ Started      │
├───┼──────────────────┼──────────────┼─────────┼─────────┼──────────────┤
│ 1 │ sess-abc-123     │ exec-001     │ seed-42 │ running │ 2024-01-15   │
│ 2 │ sess-def-456     │ exec-002     │ seed-99 │ paused  │ 2024-01-14   │
└───┴──────────────────┴──────────────┴─────────┴─────────┴──────────────┘

Enter number to cancel (1-2), or 'q' to quit: 1
Cancel session sess-abc-123 (running)? [y/N]: y
✓ Cancelled execution: sess-abc-123

◆ Cancelled — use `ooo status` to verify, or `ooo run` to start fresh

RFC #1392 State Breadcrumb Footer

Your final response MUST end with exactly one breadcrumb footer line:

◆ <current state> → next: <recommended action>

Derive <current state> from live session state via ouroboros_session_status when that MCP projection is available; otherwise derive it from this skill's actual outcome. Never use a linear Step N of M footer because Ouroboros is an evolutionary loop. When the next action is genuinely a choice, list 2-3 honest options in the next: clause. The breadcrumb line must be the last line of the response.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 5,947
本站分层T1
该仓技能数22
原文件路径skills/cancel/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 22 个技能