AGENT SKILL

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).

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

01 前言 Front Matter

name
plan
description
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).

03 SKILL.md 正文

Story Planning

Turn a spec into board data. Each story file is the complete prompt a future worker — with no memory of this conversation — will implement from. Write for that reader.

Core principle: one story = one context window = one PR. Sizing is the whole game; everything else is bookkeeping.

Process

1. Absorb the source

Read the spec or design in full. Unresolved product decisions go back to your human partner (or kit:brainstorming) — never invent them, and never encode an open question as an acceptance criterion. A genuinely open technical question can become a spike story.

2. Decompose

  • Epics group related stories: file an epic as its own story whose body carries the shared context; children reference it via --epic <id>. Epics are never implemented or closed directly — no cascade.
  • Stories obey the sizing rule. Too big — an "and" in the title, more than one subsystem, more than roughly a day of human work — split it. Two stories that can only ship together — merge them.

3. Draft each story

Field Rule
title Imperative and specific: "Add ×N multiplier gates", not "Gates work"
type feature / bug / chore / spike (projects may extend)
priority P0..P3 — P0 means "the board is blocked without it"
depends_on TRUE sequencing only (producer → consumer of an interface). Preference-ordering kills parallelism
touches Coarse globs of what the story will modify, e.g. src/gates/**. A scheduler hint — conservative, directory-level
exclusive true for sweeping refactors that own the whole repo; use it instead of a giant touches list
gates Omit to accept the type defaults from config; override per story (UI story → add visual). Only names defined in .agents/shousper-stories/config.json
complexity routine (default — omit it) | hard for cross-cutting, ambiguous, or multi-subsystem stories | frontier reserved for the rare story your human partner explicitly wants frontier-model planning on. Proposed here, confirmed by the human at the approval gate

Body sections:

Do NOT write an Implementation Plan section — planning happens at execution time (stories:work dispatches a planner against the current code); your job is Description pointers and verifiable ACs.

  • Description — enough context to implement without the spec at hand: the why, pointers to relevant files, interfaces to honor.
  • Acceptance Criteria — checkboxes, each mechanically verifiable by a command, a test, or an inspectable artifact. Never "works correctly", "is clean", "handles errors gracefully".

<Good>- [ ] GET /health returns 200 with body {"status":"ok"}</Good> <Bad>- [ ] Health endpoint works correctly</Bad>

4. HARD GATE: human approval before filing

Present the full set for review — a table (placeholder ref, title, type, priority, deps, touches, gates, complexity) plus each story body. Iterate until your human partner explicitly approves. No story create before approval. An unapproved board pollutes provenance and wastes every worker that claims from it.

5. File via the CLI

Never write story files by hand (a hook denies it anyway).

  1. Epics first — capture each printed id.
  2. Stories next, mapping placeholder refs to the real ids:
story create --title "Add ×N multiplier gates" --type feature \
  --epic st-9c01 --depends-on st-1b3e --touches 'src/gates/**' \
  --gates test,e2e --complexity hard --body-file "$SCRATCH/story-body.md"

Write each body to a scratch file for --body-file. The CLI refuses a body whose Description is empty or (for a non-epic) whose Acceptance Criteria has no checkbox, so a placeholder can never reach the board.

6. Verify

  • story doctor — clean: no dangling deps, no cycles.
  • story board — matches the approved set; report the counts to the human.

Handoff

Board filed. Your job ends here — report the board (counts + story board summary) and STOP. Execution belongs to separate worker sessions: tell your human partner to open one or more worker sessions and say "complete all stories". Never invoke stories:work, story claim, or story loop start from this planning session — planning sessions own no loop, and a loop re-prompt naming a story is addressed to the worker session that started that loop, not to you. Do NOT invoke kit:build-flow directly either — it runs per-story inside stories:work.

Red Flags

Never:

  • File before explicit approval.
  • Write a vague AC — every checkbox needs a mechanical check.
  • Chain depends_on for ordering preference.
  • Use a whole-repo touches list — that is exclusive: true.
  • Hand-edit stories/** — the CLI is the only writer.
  • Let one story carry a second story's work — split it.
  • Claim, implement, or start a story loop from a planning session — filing the board is the whole job.
  • Act on a loop re-prompt naming a story — those belong to the worker session bound to the loop.

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

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.

★ 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