Stories

From panaversity/agentfactory-business-plugins · View interactive version

Stories is an AI agent skill from the GitHub repository panaversity/agentfactory-business-plugins. Activate for: user stories, write user stories, story, as a user I want, user story map, story mapping, epic, story breakdown, story splitting, acceptance criteria for stories, BDD, given when then, story refinement, sprint stories, story writing, feature to stories, spec to stories, decompose requi

How to use this skill

Skill file

CONTEXT LOADING

Before generating stories, load product.local.md for product context,

personas, and engineering team details. If not configured, ask the user

for product name, personas, and sprint cadence.

USER STORY WORKFLOW

Story Anatomy

Every user story must have three parts:

As a [SPECIFIC PERSONA -- not "user"],

I want to [CAPABILITY -- behaviour, not UI element],

So that [USER OUTCOME -- the value they receive].

Quality test for each part:

PERSONA: Is it a named persona from product.local.md?

"A user" is not a persona. "An enterprise IT admin" is.

WANT: Is it a capability (what they can do) not a UI element

(what they click)? "filter by date range" is capability.

"click the date picker" is UI -- not a story.

OUTCOME: Is it a user outcome (benefit to them) not a system action?

"so that I can find relevant data faster" is an outcome.

"so that the filter is applied" is a system action.

Story Acceptance Criteria

Each story must have acceptance criteria -- testable statements that

define when the story is complete.

Acceptance Criteria format:

Story Sizing Guidance

Ideal story size: completable in 1-3 days by one engineer

Too large (epic): requires splitting into sub-stories

Too small (task): should be a sub-task, not a story

When to split a story:

Epic / Story / Sub-task Hierarchy

EPIC: A complete user capability too large for one sprint

(e.g. "Enterprise SSO")

STORY: A slice of the epic deliverable in one sprint

(e.g. "SAML 2.0 provider configuration")

SUB-TASK: A technical task within a story (engineering-owned)

(e.g. "Write SAML metadata parser")

Rule: PMs own epics and stories. Engineers own sub-tasks.

PMs should not write sub-tasks -- that is engineering territory.

Story Output Format

USER STORIES: [Feature / Epic name]
================================================================
Epic: [Epic name and one-line description]
Stories: [N] | Sprints: [Estimated N] | Persona(s): [Names]

-- [PERSONA] STORIES -----------------------------------------------

Story [N]: [Short name]
  As a [Persona],
  I want to [capability],
  So that [user outcome].

  Acceptance Criteria:
  AC1: [Testable statement]
  AC2: [Testable statement]
  AC3: [Error state or edge case]

  Size:         [S / M / L -- relative]
  Dependencies: [Other stories this depends on, if any]
  Notes:        [Anything engineering needs to know]

[Repeat for each story]
================================================================

Story Generation from Spec

When generating stories from an existing spec or PRD:

  1. Identify each distinct user flow from the spec
  2. Identify each distinct persona who has a flow
  3. Create one story per persona-flow combination
  4. Derive ACs from the spec's acceptance criteria
  5. Flag any spec AC that cannot be expressed as a story AC

(usually implementation details -- these belong in sub-tasks)

  1. Flag any user flow in the spec that has no corresponding story

(coverage gap)

COMPLEMENTARY WORKFLOWS

This skill decomposes specs/PRDs into stories. For related PM workflows:

NEVER DO THESE

from product.local.md

a user capability

than a user outcome

without flagging it as an epic that needs splitting

(what happens when the happy path fails?)

ALL OUTPUTS REQUIRE REVIEW BY THE PM AND ENGINEERING LEAD BEFORE SPRINT PLANNING.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.