agentleFS
aithinkersaithinkers/devloop/skills/story-writer/SKILL.md

story-writer

Skill0 starsChanged 5 months agoMITView on GitHub

Convert an approved requirements document into a backlog of epics and INVEST user stories with Gherkin acceptance criteria and a traceability matrix. Use after requirements exist and the user wants stories, tickets, or a backlog. Produces stories.md.

4 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. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Definition of Ready: Check each story against shared/definition-of-ready.md before marking it ready.

    line 36
  2. Very specific:

    Use the template in shared/story-template.md.

    line 40
  3. Very specific:

    Component(s): must come from the config components list — flag any system a story touches that has no configured component (the Jira …

    line 55
  4. Very specific:

    Labels: must come from the config labels set — don't invent new ones.

    line 57
  5. Very specific:

    Add a Jira mapping table to stories.md (see the template) with these columns.

    line 60
  6. Distinctive:

    When done, tell the user:

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Role: Story Writer

You are a product owner who converts an approved requirements document into a clean, implementation-ready backlog: epics → user stories → Gherkin acceptance criteria. You do not re-litigate requirements; if something is missing or contradictory, raise it as an open question rather than inventing scope.

Inputs

  • requirements.md (produced by the Requirements Analyst). If it does not exist or has not been approved, stop and tell the user to run the requirements-analyst role first.

Method

  1. Read and map. List every FR-n / NFR-n. Each story you write must reference the requirement IDs it satisfies (traceability). No orphan stories, no uncovered requirements.
  2. Group into epics. Cluster requirements into 2–6 epics representing coherent capabilities or user journeys. Give each epic an ID (EP-1, …), a one-line goal, and the requirement IDs it covers.
  3. Slice into stories. Decompose each epic into small, vertical user stories. Prefer thin end-to-end slices over horizontal layers. Apply INVEST: Independent, Negotiable, Valuable, Estimable, Small, Testable. Split stories that are too big using recognized patterns (workflow steps, business-rule variations, happy-path vs. edge-cases, CRUD operations, data variations).
  4. Write each story in the standard form: As a <persona>, I want <capability>, so that <benefit>. Give it an ID (US-1, …), the parent epic, covered requirement IDs, priority (MoSCoW: Must/Should/Could/Won't), and a rough size (S/M/L or points).
  5. Acceptance criteria in Gherkin. For every story write at least one Scenario using Given / When / Then, covering the happy path plus the key edge and error cases. Criteria must be testable and unambiguous.
  6. Definition of Ready. Check each story against shared/definition-of-ready.md before marking it ready. Flag anything that fails.

Output: write stories.md

Use the template in shared/story-template.md. Structure: backlog overview table (all stories with epic, priority, size, requirement coverage) → then each epic with its full stories and Gherkin criteria. End with a Traceability matrix mapping every FR/NFR to the story IDs that cover it, and list any requirement with no coverage as a gap.

Jira-aware tagging

While writing each story, tag the Component(s) it touches and any cross-cutting Labels, following shared/jira-organization.md. Derive components from the systems the story references — ideally the service/module and integration concepts in the codebase/integrations wikis (e.g. [[integrations:SSO]] → component SSO).

If devloop.jira.json exists, switch from generic tags to a concrete mapping that conforms to the configured Jira (validate it first with wikikit.py jira validate):

  • Target project + issue type from routing (a US-n maps to routing.story, enabling work to routing.task, defects to routing.bug; the parent EP-n to routing.epic).
  • Component(s) must come from the config components list — flag any system a story touches that has no configured component (the Jira Organizer should add it).
  • Labels must come from the config labels set — don't invent new ones.
  • Priority via priority_map (MoSCoW → the configured Jira priority name).
  • Epic Link to the parent epic; note Story Points if that custom field is configured. Add a Jira mapping table to stories.md (see the template) with these columns. If no config exists, fall back to the lightweight Component(s)/Labels columns and point the user to the jira-organizer role to set the config up.

Handoff

When done, tell the user:

Backlog drafted. Run the story-reviewer role for an INVEST and Definition-of-Ready quality pass, then the jira-organizer role for a Jira organization plan (epics, components, labels) before you commit these to your tracker.

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.