Aller au contenu
Skillpedia
Tâches et projets7.8k · #12822

user-story

Ce qu’il fait

Ce skill rédige des user stories qui précisent qui en bénéficie, ce qu'il veut faire et pourquoi, suivies de critères d'acceptation dans un format testable. Il s'adresse aux chefs de produit qui confient du travail aux équipes de développement.

Quand l’utiliser

  • ✓Quand un besoin utilisateur est prêt à devenir du travail de développement avec des résultats clairs.
  • ✓Quand les ingénieurs et le produit ont besoin d'une compréhension commune et de conditions de réussite testables.
  • ✓Quand vous avez besoin de critères d'acceptation qui couvrent les cas limites avant le début du travail.

Lien du skill

https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/user-story/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/user-story/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Rédige des user stories pour la réinitialisation de mot de passe par SMS dans notre application bancaire, et inclus le cas limite du verrouillage de compte.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il demande qui est l'utilisateur et ce qu'il veut accomplir, puis rédige une story sous la forme en tant qu'utilisateur, je veux une action, afin de obtenir un résultat, avec des critères d'acceptation de style Gherkin.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Purpose

Create clear, concise user stories that combine Mike Cohn's user story format with Gherkin-style acceptance criteria. Use this to translate user needs into actionable development work that focuses on outcomes, ensures shared understanding between product and engineering, and provides testable success criteria.

This is not a feature spec—it's a conversation starter that captures who benefits, what they're trying to do, why it matters, and how you'll know it works.

Input

Works best with: The feature or user need the story captures. Also useful: The user role, the outcome they want, and edge cases the acceptance criteria must cover.

Anything supplied with the invocation itself — text after the skill name, a pasted context dump, or an appended ARGUMENTS: line — counts as answers already given. Use it and skip whatever it covers; don't re-ask.

Arriving empty-handed? That works too. The skill asks who the user is and what they're trying to accomplish before drafting story and Gherkin criteria.

Example invocation: Write user stories for password reset via SMS for our banking app — include the lockout edge case.

Key Concepts

The Mike Cohn + Gherkin Format

A user story combines:

Use Case (Mike Cohn format):

  • As a [user persona/role]
  • I want to [action to achieve outcome]
  • so that [desired outcome]

Acceptance Criteria (Gherkin format):

  • Scenario: [Brief description of the scenario]
  • Given: [Initial context or preconditions]
  • and Given: [Additional preconditions]
  • When: [Event that triggers the action]
  • Then: [Expected outcome]

Why This Structure Works

  • User-centric: Forces focus on who benefits and why
  • Outcome-focused: "So that" emphasizes the value delivered, not just the action
  • Testable: Gherkin acceptance criteria are concrete and verifiable
  • Conversational: Story is the opening for discussion, not the final spec
  • Shared language: Product, engineering, and QA all understand the format

Anti-Patterns (What This Is NOT)

  • Not a task: "As a developer, I want to refactor the database" (this is a tech task, not user value)
  • Not a feature list: "I want dashboards, reports, and analytics" (this is too big—needs splitting)
  • Not vague: "I want a better experience" (unmeasurable, no clear outcome)
  • Not a contract: Stories are placeholders for conversation, not locked-in specs

When to Use This

  • Translating user needs into development work
  • Backlog grooming and sprint planning
  • Communicating value to engineering and design
  • Ensuring testable acceptance criteria exist before development

When NOT to Use This

  • For pure technical debt or refactoring (use engineering tasks instead)
  • When stories are too large (split first—see skills/user-story-splitting/SKILL.md)
  • Before understanding the user problem (write a problem statement first)

Application

Step 1: Gather Context

Before writing a story, ensure you have:

  • User persona: Who is this for? (reference skills/proto-persona/SKILL.md)
  • Problem understanding: What need does this address? (reference skills/problem-statement/SKILL.md)
  • Desired outcome: What does success look like?
  • Constraints: Technical, time, or scope limitations

If missing context: Run discovery interviews or problem validation work first.


Optional Helper Script (Template Generator)

If you want a consistent Markdown stub, you can generate one from CLI inputs. This script is deterministic and does not fetch data or write files.

python3 scripts/user-story-template.py --persona \"trial user\" --action \"log in with Google\" --outcome \"access the app without creating a new password\"

Step 2: Write the Use Case

Use template.md for the full fill-in structure.

Fill in the template:

### User Story [ID]:

- **Summary:** [Brief, memorable title focused on value to the user]

#### Use Case:
- **As a** [user name if available, otherwise persona, otherwise role]
- **I want to** [action user takes to get to outcome]
- **so that** [desired outcome]

Quality checks:

  • "As a" specificity: Is this a specific persona (e.g., "trial user") or generic ("user")?
  • "I want to" clarity: Is this an action the user takes, or a feature you're building?
  • "So that" outcome: Does this explain the user's motivation? Or is it just restating the action?

**Common mista

Questions fréquentes

Une user story est-elle une spécification fonctionnelle ?

Non. C'est un point de départ de conversation qui capture qui en bénéficie, ce dont il a besoin, pourquoi c'est important et comment vous saurez que cela fonctionne.

Puis-je nommer des cas limites ?

Oui. Les cas limites que vous nommez, comme un verrouillage de compte, sont couverts dans les critères d'acceptation.

Et si je ne connais pas encore l'utilisateur ?

Le skill demande qui est l'utilisateur avant de rédiger, vous pouvez donc répondre à cette question d'abord.

Détails

Description originale de l’auteur

Create user stories with Mike Cohn format and Gherkin acceptance criteria. Use when turning user needs into development-ready work with clear outcomes and testable conditions.

repo: deanpeters/Product-Manager-Skills

Popularité

Étoiles GitHub
7.8k
Position au classement
#12822
Licence
—
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires