agentleFS
mrzhangguoguomrzhangguoguo/oh-my-workbuddy/skills/cancel/SKILL.md

cancel

Skill2 starsChanged 5 months agoMITView on GitHub

Abort the current WorkBuddy workflow — stop background agents/processes, clear in-progress tasks, and hand back control to the user

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Stop background work: If any background shell command (started with run_in_background) is running, stop it with the TaskStop tool (or send …

    line 23
  2. Distinctive:

    Stop spawned agents: If any Agent tool calls are still in flight, let them finish their current message or stop them.

    line 25
  3. Distinctive:

    Do not auto-continue into another workflow.

    line 33
  4. Very specific:

    Use --force / --all semantics only to also:

    line 46
  5. Very specific:

    Remove any .workbuddy/memory scratch notes you created for this run if the user wants a clean slate.

    line 49
  6. Distinctive:

    Safe by default: only the current session's in-flight work is affected.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ported from oh-my-codex cancel. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

Cancel

The standard, safe way to stop whatever is currently running and exit cleanly.

WorkBuddy has no persistent "mode" state like OMX's .omx/state/*.json, so there is nothing to terminalize across sessions — but in-progress work within the current session can still be stopped. Use this skill whenever the user says "cancel", "stop", "abort", or asks to halt the current flow.

What It Does

  1. Stop background work. If any background shell command (started with run_in_background) is running, stop it with the TaskStop tool (or send its task_id).
  2. Stop spawned agents. If any Agent tool calls are still in flight, let them finish their current message or stop them; do not start new ones.
  3. Clear the task list. Mark every in_progress task as completed only if it is genuinely done; otherwise set it back to pending so it is not silently lost, or delete it. Do not leave phantom in_progress items.
  4. Preserve recoverable progress. Anything worth keeping (files written, decisions made) should already be on disk or in .workbuddy/memory/YYYY-MM-DD.md. Do not delete user files.
  5. Report and yield. Tell the user what was stopped and what (if anything) remains, then stop. Do not auto-continue into another workflow.

Usage

/cancel

Or say: "cancel", "stop", "abort".

Force / Full Reset

WorkBuddy sessions are stateless between turns, so a simple "stop" already resets the flow. Use --force / --all semantics only to also:

  • Clear all in-progress and pending tasks from the task list (not just the current one).
  • Remove any .workbuddy/memory scratch notes you created for this run if the user wants a clean slate.

Example:

/cancel --force

Notes

  • Safe by default: only the current session's in-flight work is affected; never touch unrelated files, other sessions, or global config.
  • Resume-friendly: written files and memory entries survive a cancel, so the user can pick up later without re-doing completed work.
  • No destructive deletion: cancelling never deletes the user's source, git history, or installed skills.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.