omh-cancel
它能做什么
它结束你会话中正在运行的 OMH 工作流,并只报告真正得到确认的停止操作。适合运行智能体工作流、希望停止它们又不留下残余问题的人。
适用场景
- ✓当你想停止仍在运行的工作流或循环时。
- ✓当某次运行朝着错误的方向发展,你想中止它时。
- ✓当你想知道哪些已被停止,哪些仍需要停止命令时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-cancel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请取消这个循环,并停止为这个任务运行的所有内容。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体清除本会话拥有的工作流状态,并为主机控制的工作列出停止命令。只有当结果确认时,它才会报告某项已停止。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cancel
This is an OMH cancel workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
cancel exists so a request to stop ends the right thing: OMH clears the state this session owns, and work the host owns stops through the person's own host command, so nothing reads as stopped before a record or the host's own reply says it is.
Do Not Use When
- The workflow finished and its outcome should be kept; record it with omh state finish instead of clearing it.
- The user wants to see what is still running rather than stop it; use
omh-running-work-board. - The user means cancelling something in their own product or accounts, such as an order, a subscription, or a meeting, rather than OMH or host work.
Examples
Good example:
- Prompt: cancel the loop and stop everything that is running
- Expected behavior: Clear this session's OMH state with its own commands, name the host's stop commands (on Hermes,
/loop stopand/stop) for the person to run, and report each OMH clear from its result and each host stop as requested. - Why: The request spans OMH state and host-owned work, which stop through different owners.
Bad example:
- Prompt: cancel: kill the background processes yourself and say everything stopped
- Expected behavior: Leave the processes to the person's own stop command (on Hermes,
/stop), and report them stopped only after the host's own reply. - Why: OMH never ends a host process, and a requested stop is not an observed one.
Completion Checklist
- Every stopped item is named with its owner: OMH state or host work.
- Each OMH clear cites its command result; each host stop stays requested until the host's reply is seen.
- Nothing outside this session's own state was cleared, and no host process was ended by OMH.
Recovery Notes
- If a session-bound clear is refused for a missing --session-ref, report the refusal rather than clearing without it.
- If the host's reply to a stop never appears, keep the stop requested and ask the person what it said.
When to Use
Use to cleanly end active adapted workflow state.
Strong routing signals: `cancel`, `$cancel`, `stop the workflow`, `abort the run`, `cancel the loop`
Catalog Metadata
Category: operator
Phase: state-cleanup
Quality tier: evidence-gated
Reasoning demand: light
Quality bar:
- Name each thing to stop and its owner: OMH state (workflow lifecycle, plan checklist, OMH goal) or host work (the running turn, background processes, delegations, a Hermes /loop or /goal).
- Clear OMH state with its own commands:
omh state clear --workflow <name>(--session-refwhen session-bound), on Hermesomh_todo action=clear, andomh goal cancel --goal <id>; an OMH loop stops through its linked goal, and one without a goal has no cancel record. - Hand host work to the person's own stop command; on Hermes
/stop(in a CLI or TUI session it ends every background process, and the classic CLI its background delegations too; on a messaging platform it interrupts the running turn rather than ending every background process),/loop stop,/goal pauseor/goal clear,/heartbeat clear,/pause(all new work on a gateway). - Report an OMH clear as done only from its command result, and a host stop as requested until the host's own reply to it is seen.
Required inputs:
- active workflow state
- cancellation intent
Expected outputs:
- cleared state
- safe stop summary
Artifact expectations:
- state clear record when state exists
Safety rules:
- Never end, kill, or signal a host process, background job, or delegation from this workflow, through the terminal or any other tool (on Hermes,
process_manageincluded); that stop is the person's own host command. - Clear only what this session owns; another session's plan, workflow state, or goal stays as it is.
Runtime Evidence
Use the current host's own tools and subagent/task mechanism when available;
otherwise run the same lanes sequentially or name the unavailable capability.
A prepared plan, handoff, checklist, or skill installation is not execution,
review, CI, merge-readiness, or merge evidence. Record actual tool results, or
not_observed / not_available, in the record; never invent dispatch or host
accounting.
Treat supplied context as advisory, not proof of hidden memory reads or writes.
State scope, constraints, verification, and the stop condition before work.
Reply in the user's own
常见问题
它会删除已完成工作流的结果吗?
不会。该技能规定,已完成的工作流应记录为完成,而不是被清除。
它会停止我电脑上的后台进程吗?
不会直接停止。它会列出停止命令供你运行,并在确认后才报告为已停止。
它能取消我的订单或订阅吗?
不能。它只处理智能体和工作流的工作,不涉及外部账户或购买。
详情
作者的原始描述
[omh] Aborting an active workflow: ending active workflow state cleanly. Use when the user says: cancel, stop the workflow, abort the run, cancel the loop.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15083
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。