跳到正文
cccskills
免费在 GitHub 公开

cancel

Cancel stuck or orphaned executions

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/ouroboros:cancel

Cancel stuck or orphaned executions and background jobs through the Ouroboros MCP tools, which work on hosts without shell access.

/ouroboros:cancel                 # list this project's active executions, ask which to cancel
/ouroboros:cancel <id>            # cancel one execution (orch_... or execution id) or job (job_...)
/ouroboros:cancel --all           # cancel every running or paused execution of this project

Instructions

Loading MCP tools (deferred-schema guard)

Ouroboros tools may be deferred, and a schema loaded on one turn can unload by the next. Immediately before each ouroboros_* call, load it with the active runtime's tool-discovery capability: "+ouroboros project status" for ouroboros_project_status; "+ouroboros cancel" for ouroboros_cancel_execution and ouroboros_cancel_job. A call whose schema is not loaded fails with "Invalid tool parameters". If the tool is already callable, discovery is a no-op and an empty result is expected. Use the fallback only when the tool is genuinely absent.

Listing active executions

Call ouroboros_project_status with project_dir set to the absolute path of the current project. Active executions are the runs whose status is running or paused; show each one's session_id, started_at, and seed_goal. If the call fails because the project has more runs than limit, retry once with limit set to the reported run count. The listing covers only runs attributed to this project. Background jobs have no listing tool, so also offer any job_... id returned by a start tool earlier in this conversation.

Steps

  • No ID, not "all": list as above, ask which to cancel with the active runtime's ask_user capability, then cancel the chosen ids as below. If nothing is active, say so (and, when run_shell is available, mention ouroboros cancel execution --list for executions outside this project). If the user declines, cancel nothing.
  • ID given: an id starting with job_ is a background job: call ouroboros_cancel_job with job_id. Any other id (an orch_... session id or an execution id) is an execution: call ouroboros_cancel_execution with execution_id and, if the user gave one, reason.
  • "cancel all" / "cancel everything": there is no bulk cancel tool. List as above and call ouroboros_cancel_execution once per running or paused run. Say this covered this project's runs only; for every execution on the machine, ouroboros cancel execution --all needs run_shell.

Reporting outcomes

  • ouroboros_cancel_execution: new_status cancelled means it is cancelled. cancellation_requested means the live worker was asked to stop and will record the cancellation itself; suggest ooo status to confirm. An "already in terminal state" error means there was nothing to cancel; skip it with a warning. "Execution not found" means the id is wrong. "Held by another live owner" means only the process that owns it can cancel it; relay that verbatim. "Failed to persist cancellation" is retriable; retry once.
  • ouroboros_cancel_job: status cancel_requested means the job and its linked execution were asked to stop; cancelled means done. Any other terminal status (completed, failed, interrupted) means the job had already finished and nothing was cancelled. "Job not found" means the id is wrong.

Relay any other error verbatim. Then suggest ooo status to verify or ooo run to start fresh.

Fallback (no MCP server)

When the cancel tools are genuinely absent and the active runtime has run_shell, use the CLI, which writes cancellation events straight to the event store: ouroboros cancel execution --list (prints active executions without prompting; then ask with ask_user), ouroboros cancel execution <session_id>, or ouroboros cancel execution --all. Add --reason "<text>" to record why, and report what it printed (Cancelled execution: <id>, Cancellation requested for execution: <id>, or No active executions found.) with any warning verbatim. Without run_shell, tell the user cancellation needs the Ouroboros MCP server (ooo setup) or a shell.

RFC #1392 State Breadcrumb Footer

End the final response with exactly one line ◆ <current state> → next: <recommended action>. Derive the state from live session state via ouroboros_session_status when available, otherwise from this skill's actual outcome. Never use a linear Step N of M footer; when the next step is a real choice, list 2-3 options.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

auto

免费

Use when the work spans several files or replaces a framework, language, auth, storage, or API layer (rewrites and migrations included), and the user wants it to end up working and tested. Asks only what is missing, writes a spec with acceptance criteria, then runs and verifies it in the background. Not for questions, small edits, or an existing Seed (use run).

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

Scan and manage brownfield repository/worktree defaults for interviews

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

evaluate

免费

Use when the user wants proof that finished work meets its acceptance criteria, not just that tests pass: 'verify it is actually done', 'check it against the spec', 'evaluate the run'. Runs mechanical checks, a semantic review per criterion, and multi-model consensus when uncertain. With execution.auto_evolve on (the default), a rejected result with a Seed continues into a Ralph fix loop; pass auto_evolve: false to verify only.

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

evolve

免费

Start or monitor an evolutionary development loop

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

interview

免费

Use when the user wants to build or change something but the request is vague or open-ended: 'help me figure out what to build', 'I'm not sure what it should do', 'add X' with no details, or no clear definition of done. Runs a short Socratic interview that turns the idea into goals, constraints, and acceptance criteria before any code is written. Not for simple questions, small clear edits, or an existing Seed.

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

ooo

免费

Start Ouroboros onboarding. Use when the user sends bare `ooo`, asks to start Ouroboros, or is using Ouroboros for the first time.

中文简介正在准备中。当前显示原文说明。

Q00/ouroboros62472026年10月19日 更新

查看 Q00 的全部技能

报告此技能的问题