agentleFS
b33eepb33eep/claude-code-setup/skills/user-stories/SKILL.md

user-stories

Skill57 starsChanged 10 months agoMITView on GitHub

Write INVEST-compliant user stories with Given-When-Then acceptance criteria. Use when writing user stories, creating acceptance criteria, or during /design Step 4.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm-experiments-new, ideal-customer-profile and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • skytiger6724Skill

    brainstorm-experiments-new

    Design lean startup experiments (pretotypes) for a new product. Creates XYZ hypotheses and suggests low-effort validation methods like landing pages, explainer videos, and pre-orders. Use when validating a new product idea, creating pretotypes, or testing market demand.

    Also in 5 projects that use this

  • skytiger6724Skill

    ideal-customer-profile

    Identify the Ideal Customer Profile (ICP) from research data with demographics, behaviors, JTBD, and needs. Use when defining your ICP, analyzing PMF survey data, or understanding who your best customers are.

    Also in 5 projects that use this

  • launchapp-devSkill

    interview-script

    Create a structured user interview script with warm-up, core exploration, and wrap-up sections. Use when preparing for user research interviews to ensure consistent, insightful conversations.

    Also in 5 projects that use this

  • 45ckSkill

    pestle-analysis

    Also in 4 projects that use this

  • +8 more from skytiger6724

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write high-quality, INVEST-compliant user stories with testable acceptance criteria.

    line 10
  2. Distinctive:

    Not every category applies to every story.

    line 107
  3. Distinctive:

    When a story is too large, split using one of these techniques:

    line 135

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

User Stories

Write high-quality, INVEST-compliant user stories with testable acceptance criteria.


User Story Template

As a [persona],
I want to [action/capability],
So that [benefit/value].

Example:

As a marketing manager,
I want to export campaign reports to PDF,
So that I can share results with stakeholders who don't have system access.

Story Types

TypeTemplateExample
FeatureAs a [persona], I want to [action] so that [benefit]As a user, I want to filter search results so that I find items faster
ImprovementAs a [persona], I need [capability] to [goal]As a user, I need faster page loads to complete tasks without frustration
Bug FixAs a [persona], I expect [behavior] when [condition]As a user, I expect my cart to persist when I refresh the page
EnablerAs a developer, I need to [technical task] to enable [capability]As a developer, I need to implement caching to enable instant search

Persona Reference

PersonaTypical NeedsContext
End UserEfficiency, simplicity, reliabilityDaily feature usage
AdministratorControl, visibility, securitySystem management
Power UserAutomation, customization, shortcutsExpert workflows
New UserGuidance, learning, safetyOnboarding

Adapt personas to your project. Use specific names when possible (e.g., "store owner" instead of "end user").


INVEST Criteria

Validate every story before adding it to the backlog:

CriterionQuestionPass If...
IndependentCan this be developed without other uncommitted stories?No blocking dependencies
NegotiableIs the implementation flexible?Multiple approaches possible
ValuableDoes this deliver user or business value?Clear benefit in "so that"
EstimableCan the team estimate this?Understood well enough to size
SmallCan this complete in one iteration?Reasonably scoped
TestableCan we verify this is done?Clear acceptance criteria

Acceptance Criteria

Given-When-Then Template

Given [precondition/context],
When [action/trigger],
Then [expected outcome].

Examples:

Given the user is logged in with valid credentials,
When they click the "Export" button,
Then a PDF download starts within 2 seconds.

Given the user has entered an invalid email format,
When they submit the registration form,
Then an inline error message displays "Please enter a valid email address."

Given the shopping cart contains items,
When the user refreshes the browser,
Then the cart contents remain unchanged.

AC Checklist

Each story should include criteria for applicable categories:

CategoryExample
Happy PathGiven valid input, When submitted, Then success message displayed
ValidationShould reject input when required field is empty
Error HandlingMust show user-friendly message when API fails
PerformanceShould complete operation within 2 seconds
AccessibilityMust be navigable via keyboard only

Not every category applies to every story. Use judgment.

Minimum Criteria by Story Size

SizeMinimum AC Count
Small (trivial)2-3 criteria
Medium4-6 criteria
Large5-8 criteria
Too largeSplit the story

INVEST Failure Patterns

CriterionRed FlagFix
Independent"After story X is done..."Combine stories or resequence
NegotiableSpecific implementation in storyFocus on outcome, not solution
ValuableNo "so that" clauseAdd benefit statement
EstimableTeam says "no idea"Spike first, then story
SmallToo large to finish in one iterationSplit into smaller stories
Testable"System should be better"Add measurable criteria

Story Splitting

When a story is too large, split using one of these techniques:

TechniqueExample
By workflow step"Create order" -> "Add items" + "Apply discount" + "Submit order"
By persona"User dashboard" -> "Admin dashboard" + "Member dashboard"
By data type"Import data" -> "Import CSV" + "Import Excel"
By operation"Manage users" -> "Add user" + "Edit user" + "Delete user"
Happy path first"Full feature" -> "Basic flow" + "Error handling" + "Edge cases"

Common Antipatterns

Story Antipatterns

AntipatternExampleFix
Solution story"Implement React component""Display user profile information"
Compound story"Create, edit, and delete users"Split into three stories
Missing persona"The system will...""As an admin, I want to..."
No benefit"I want to see a button"Add "so that [benefit]"
Too vague"Improve performance""Reduce page load to <2 seconds"
Technical jargon"Implement Redis caching""Enable instant search results"

Acceptance Criteria Antipatterns

AntipatternExampleFix
Too vague"Works correctly"Specific Given-When-Then
Implementation details"Use PostgreSQL query"Focus on outcome
Missing unhappy pathOnly success scenarioAdd error cases
Untestable"User is happy"Measurable behavior
Too many15+ criteriaSplit the story

References

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.