AGENT SKILL

cancel

Stops an active story loop and reports where the board stands. Use when asked to "stop the loop", "cancel the story run", "halt autonomous story work", "kill the worker loop", or when a runaway run must be shut down. DO NOT TRIGGER for closing a single story (that is story done inside stories:work), for deleting or archiving stories, or for removing the story workflow from a project.

License 许可
MIT
最近更新
2026-10-27
Stars
★ 5
Forks
2

01 前言 Front Matter

name
cancel
description
Stops an active story loop and reports where the board stands. Use when asked to "stop the loop", "cancel the story run", "halt autonomous story work", "kill the worker loop", or when a runaway run must be shut down. DO NOT TRIGGER for closing a single story (that is story done inside stories:work), for deleting or archiving stories, or for removing the story workflow from a project.

03 SKILL.md 正文

Cancel Story Run

The escape hatch. Stopping is cheap, safe, and never loses work — say so, then do it.

Process

1. Stop the loop

Loops are per-session — stopping one worker's loop needs its session id (or run this from that worker's own session, whose harness adapter supplies it as STORY_SESSION_ID); stopping every loop on the board needs --all.

story loop status --json                # no session: lists every active loop on the board
story loop status --session <id> --json # one worker's loop — capture goal, iteration count, and stalls vs budget BEFORE stopping
story loop stop --session <id>          # stop that one worker's loop — returns {stopped: true|false}
story loop stop --all                   # stop every loop on the board

Report the goal, iteration count, and stalls-vs-budget from the status output. If status reports no active loop ({active: false}), say so and continue to the report — the human still wants the picture.

2. Settle the in-flight story

If this session has a claimed in-progress story, ask your human partner which of:

  1. Finish it — one last pass through gates and story done.
  2. Park it — story park <id> --question "Cancelled mid-work: <current state, what remains>".
  3. Release it — story update <id> --status todo (work stays on the story branch; the worktree remains for the next claimant).

Never decide silently, and never leave it dangling without asking — a dead lease is reclaimable, but the next worker wastes time re-discovering state.

3. Report the board

From story board (and story list --json where detail helps):

  • Counts: done / in-progress / in-review / blocked / todo.
  • Parked questions, verbatim, with story ids — these are the human's inbox.
  • In-review stories awaiting human review or PR merge.
  • Other sessions' active claims — do NOT touch them; their leases expire on their own.

What cancel is not

  • Not rollback: completed stories stay done; merged code stays merged.
  • Not teardown: worktrees, branches, config, and learnings remain — a future stories:work run resumes cleanly.
  • Not cleanup of other workers: parallel sessions keep running; stopping them means cancelling in THEIR sessions.

Red Flags

Never:

  • Delete or edit .agents/shousper-stories/local/loop.*.md by hand — story loop stop owns it.
  • Un-claim another session's story.
  • Bury parked questions — they are the point of the report.

04 同仓库更多 Skills

shousper
shousper/clanker-kit

writing-docs

Use when creating or editing documentation of any kind, including Markdown, RST, or HTML pages, READMEs, design docs, ADRs, changelogs, docstrings, and comment blocks. Covers document purpose, headings, paragraphs, lists, procedures, notices, cross-references, code samples, placeholders, example data, and word choice for technical writing.

★ 5
shousper
shousper/clanker-kit

work

Runs the story worker loop in a story-workflow project — claim ready stories, implement each in its own worktree, close through verification gates, repeat until the goal is met or the loop stalls. Use when asked to "work the board", "complete all stories", "work on epic st-XXXX", "pick up the next story", "start a worker", or to resume or continue a story run — and when a loop re-prompt names the next story in a session that started the loop. DO NOT TRIGGER without .agents/shousper-stories/config.json (use stories:setup first), for decomposing a spec into stories (stories:plan), or to stop a run (stories:cancel).

★ 5
shousper
shousper/clanker-kit

using-stories

Compressed story-workflow rulebook, injected automatically at session start (including after compaction) in projects with .agents/shousper-stories/config.json. Use when unsure of the workflow rules mid-session, when asked "how does the story workflow work here", or for a story CLI quick reference. DO NOT TRIGGER in projects without .agents/shousper-stories/config.json, to set up the workflow (stories:setup), to file stories (stories:plan), or to run the loop (stories:work).

★ 5
shousper
shousper/clanker-kit

setup

Interactive onboarding that turns a repo into a story-workflow project — merge-mode choice, verification gates with test-runner detection, gitignore wiring, optional project-specific reviewer personas. Use when asked to "set up the story workflow", "adopt stories", "story init", "install the story board", or when stories:plan / stories:work is wanted but .agents/shousper-stories/config.json does not exist yet. DO NOT TRIGGER when .agents/shousper-stories/config.json already exists (use stories:plan to file work, stories:work to execute it), for creating individual stories, or for project scaffolding unrelated to the story workflow.

★ 5
shousper
shousper/clanker-kit

plan

Decomposes a spec or approved design into epics and stories on the story board — sized, dependency-ordered, gated, human-approved, then filed via the story CLI. Use in a project with .agents/shousper-stories/config.json when there is a design doc (often from kit:brainstorming), spec, requirements file, or feature request to break down; it replaces kit:writing-plans in the workflow chain for story-based projects. Also use for "file stories", "break this into stories", "populate the board". DO NOT TRIGGER in projects without .agents/shousper-stories/config.json (use kit:writing-plans), for executing stories (stories:work), or for filing a single discovered-work story mid-loop (plain story create).

★ 5
shousper
shousper/clanker-kit

writing-skills

Creates, edits, and tests Claude skill files (SKILL.md) using TDD methodology with baseline pressure testing and rationalization defense. Use when writing a new skill, modifying an existing skill, optimizing a skill description for discovery (CSO), testing whether a skill triggers correctly, or structuring skill documentation. Enforces RED-GREEN-REFACTOR for process documentation.

★ 5