agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/create-stories/SKILL.md

create-stories

Skill1 starsChanged 24 days agoMITView on GitHub

Writes INVEST user stories with Given/When/Then acceptance criteria and an acceptance-criterion-to-test map for an epic. Use when an epic has no stories yet, when a spec changed and stories must follow, or when the user asks to break work down.

13 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

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Ask lead-frontend and lead-backend (in parallel) to estimate each story in points (1, 2, 3, 5, 8) and name the owning specialist(s) using …

    line 50
  2. Very specific:

    Ask "May I write these N stories to production/stories/E-NN/?" On yes, write each from .claude/docs/templates/story.md with Status: draft, …

    line 62

“Common” is measured: kept by at least 6 in 10 of the 13 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

Create Stories

Breaks one epic into user stories in production/stories/E-NN/S-NNN-<slug>.md, in the story file format from .claude/docs/skill-conventions.md. Each story is a vertical slice a user can see or an API client can call, small enough to finish in one or two sessions. It writes stories as Status: draft; only /story-readiness marks them ready.

Inputs

  • The epic file (production/epics/E-NN-*.md)
  • The epic's linked specs, read by section: Requirements, User Flow, States, API Contract, Data Model, Edge Cases
  • docs/architecture/api/openapi.yaml sections for the endpoints involved
  • Existing stories in production/stories/ (numbering is global)

Phases

Phase 1: Slice

Spawn product-manager with the epic and spec sections. Ask for stories that are INVEST: Independent, Negotiable, Valuable, Estimable, Small, Testable. Slice by user outcome (happy path first, then error and edge paths), never by layer ("build the table", "build the form"). Typical first slice: the thinnest UI → API → DB path for the main flow.

Phase 2: Acceptance criteria

For each story, criteria in Given / When / Then, including:

  • the happy path
  • validation errors and empty states
  • permission cases (anonymous, wrong role, other tenant's record)
  • limits (pagination, quotas, rate limits) where the spec names them

Each criterion gets an ID (AC1…) and a planned test location under ## Tests: unit (tests/unit/…), integration (tests/integration/…) or e2e (tests/e2e/…). Under minimal, the map may stay "TBD" for non-logic stories.

Phase 3: Estimate and own

Ask lead-frontend and lead-backend (in parallel) to estimate each story in points (1, 2, 3, 5, 8) and name the owning specialist(s) using .claude/docs/stack-matrix.md. A story estimated at 8 must be split.

Phase 4: Review

Show a table: ID, title, ACs (count), estimate, owners, dependencies. Ask the user to approve, split, merge or drop stories.

Phase 5: Write

Numbers come from bash .claude/scripts/next-number.sh production/stories S-. Ask "May I write these N stories to production/stories/E-NN/?" On yes, write each from .claude/docs/templates/story.md with Status: draft, and add the story IDs to the epic's story list.

Output

production/stories/E-NN/S-NNN-<slug>.md per story; epic file updated with links.

Next step

/story-readiness E-NN to check and mark the stories ready.

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.