agentleFS
gabriellstgabriellst/codm/.claude/skills/user-stories/SKILL.md

user-stories

Skill4 starsChanged 2 months agoMITView on GitHub

Generate user stories with acceptance criteria from a feature request or requirement. Use when transforming business needs into structured, testable stories. Use this skill for any feature specification that needs to be broken into implementable stories with clear acceptance criteria.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 6

    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:

    Read the input and extract:

    line 35
  2. Distinctive:

    Ask clarifying questions whenever ambiguity exists.

    line 43
  3. Distinctive:

    Create stories following this format:

    line 47
  4. Distinctive:

    Check each story against:

    line 71
  5. Distinctive:

    Before finalizing, surface targeted questions about:

    line 83
  6. Distinctive:

    Do not finalize stories while high-impact assumptions remain unanswered.

    line 91

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

Generate User Stories

Transforms a feature request or requirement description into structured user stories with acceptance criteria.

When to Use

  • Receiving a new feature request from a stakeholder or PRD
  • Breaking down a large requirement into testable stories
  • Defining scope and acceptance criteria before technical work begins

When NOT to Use

  • Architectural component breakdown (use /plan)
  • Implementation sequencing (use /task-breakdown)
  • Reviewing an existing plan (use /spec-review)

Prerequisites

  • Feature request, PRD excerpt, or natural language description
  • Understanding of the project's domain and bounded contexts

Output

User stories in US-XXX format with acceptance criteria. Nothing else — no component tables, no sequencing, no architecture.

Process

Step 1: Understand the Requirement

Read the input and extract:

  • Domain: What bounded context does this belong to?
  • Actors: Who are the users/systems involved?
  • Actions: What operations need to be performed?
  • Data: What information is being created/modified/read?
  • Rules: What business rules apply?

Ask clarifying questions whenever ambiguity exists. Do not proceed with hidden assumptions when a question can resolve scope or contract uncertainty.

Step 2: Generate User Stories

Create stories following this format:

## User Stories

### US-001: [Story Title]
**As a** [actor/role]
**I want to** [action/goal]
**So that** [benefit/value]

**Acceptance Criteria:**
- [ ] [Criterion 1]
- [ ] [Criterion 2]
- [ ] [Criterion 3]

**Notes:**
- [Any additional context, edge cases, constraints]

### US-002: [Story Title]
...

Step 3: Validate Completeness

Check each story against:

  • Actor is a real role in the system (not generic "user" when specificity matters)
  • Action is specific and testable
  • Benefit is business-focused (not implementation detail)
  • Acceptance criteria are measurable and verifiable
  • Edge cases documented in Notes
  • Stories are independent where possible (no hidden coupling)
  • No acceptance criterion implies a specific implementation

Step 4: Ask Clarifying Questions

Before finalizing, surface targeted questions about:

  • Scope boundaries: What's explicitly excluded?
  • Actor permissions: Who can do what?
  • Data rules: Required fields, validation constraints, uniqueness
  • State transitions: Valid transitions and who can trigger them
  • Error scenarios: What happens when things go wrong?

Do not finalize stories while high-impact assumptions remain unanswered.

Output Template

# User Stories: [Feature Name]

## Summary
[1-2 sentence description of the feature]

## User Stories

### US-001: [Story Title]
**As a** [role]
**I want to** [action]
**So that** [benefit]

**Acceptance Criteria:**
- [ ] [Criteria]

**Notes:**
- [Context]

---

## Open Questions
- [ ] [Question 1 — impact: scope/contract/acceptance]
- [ ] [Question 2]

## Assumptions
- [Assumption 1 — risk level: low/medium/high]

Checklist

  • All actors identified from the requirement
  • Each story has clear, testable acceptance criteria
  • Stories are independent where possible
  • Edge cases and error scenarios considered
  • Open questions surfaced with impact classification
  • Assumptions documented with risk level
  • No architectural or implementation details leaked into stories

References

  • docs/BACKEND.md — Backend domain context
  • docs/FRONTEND.md — Frontend patterns

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.