agentleFS
tomershahartomershahar/user-story-mapping-skill/SKILL.md

user-story-mapping

Skill4 starsChanged 9 months agoMITView on GitHub

Use when a user wants to create, facilitate, or generate a user story map for a product or feature — either guided step-by-step (coaching mode) or from a raw requirement (generation mode).

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use derisk-measurement-advisor, organic-growth-advisor and 1 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.
  • DIAL-StudioSkill

    derisk-measurement-advisor

    Identify what to measure, test, or track to de-risk a product or AI idea. Use when stress-testing an idea across internal (DUFV) and external (PESTEL) dimensions.

    Also in 3 projects that use this

  • DIAL-StudioSkill

    organic-growth-advisor

    Identify which organic growth path to pursue — new segments, geographies, channels, or products. Use when diagnosing where a growth constraint lives and which McKinsey growth level to act\

    Also in 3 projects that use this

  • +1 more from DIAL-Studio
  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. deanpeters/Product-Manager-Skills★ 7.2ksame name
    2. yngchefcook/product_skills★ 28same name
    3. DIAL-Studio/pm-agent-harness-kit★ 12same name
    4. agrivisionai/claude-skills★ 1same name
    5. nandanosql/all_in_one_pm_skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. 0 are common, 19 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 19

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask one question at a time.

    line 28
  2. Distinctive:

    Always think from the user's perspective, not the system's.

    line 32
  3. Very specific:

    Node labels: avoid special characters (→, &, ", ()).

    line 179
  4. Very specific:

    Subgraph titles: use subgraph R1_MVP[R1 MVP] — avoid quoted syntax ["R1 (MVP)"] which requires Mermaid v9+.

    line 180
  5. Distinctive:

    Use the Socratic method — ask questions rather than assume answers.

    line 219
  6. Distinctive:

    Start broad, go narrow. Backbone first, then depth.

    line 220
  7. Distinctive:

    If the user gets stuck, offer examples or options to choose from.

    line 222
  8. Distinctive:

    Ask about risks and tasks at the story level, not just acceptance criteria.

    line 224
  9. Distinctive:

    Ask smart clarifying questions upfront (3-5 max).

    line 227
  10. Distinctive:

    Always write stories from the user's perspective, never the system's.

    line 235
  11. Distinctive:

    Use "As a [user], I want [X] because [Y]" format consistently.

    line 236
  12. Distinctive:

    Keep backbone steps at 3-7 items.

    line 238
  13. Distinctive:

    Don't forget error states, edge cases, and non-happy-path flows.

    line 240
  14. Distinctive:

    When the user asks to export to an external tool, follow this pattern:

    line 249
  15. Very specific:

    Detection: Look for Figma MCP tools (e.g., figma_create_frame, figma_create_sticky)

    line 264
  16. Distinctive:

    Pre-flight: Ask which FigJam file/page to export to

    line 265
  17. Very specific:

    Detection: Look for Miro MCP tools (e.g., miro_create_board, miro_create_sticky_note)

    line 278
  18. Distinctive:

    Pre-flight: Ask which Miro board to export to, or offer to create a new one

    line 279
  19. Very specific:

    Detection: Look for Jira MCP tools (e.g., jira_create_issue)

    line 292
  20. Distinctive:

    Pre-flight: Ask for a project key, or list available projects via MCP and let the user pick

    line 293
  21. Very specific:

    Detection: Look for Linear MCP tools (e.g., linear_create_issue)

    line 310
  22. Distinctive:

    Pre-flight: Ask for a team name; optionally ask for a project within that team.

    line 311
  23. Distinctive:

    When presenting the user story map output, always include the following in addition to the ASCII map and markdown details:

    line 327
  24. Very specific:

    After the visualizations, provide a CSV block containing the tasks in the map, using the following columns: Release, Activity, Story, Task, …

    line 354
  25. Very specific:

    All tasks under "Release 1" (usually "R1 (MVP)") must have their task names bolded by wrapping them in double asterisks (task) in the CSV.

    line 363
  26. Distinctive:

    Always include both the Mermaid journey diagram and the tasks CSV block along with the standard outputs.

    line 369
  27. Distinctive:

    If Release 1 is titled differently (e.g., "Release 1" or "MVP"), treat it as equivalent to "R1 (MVP)" for the bolding rule.

    line 370

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

Overview

A Claude skill for collaborative user story mapping based on Jeff Patton's methodology. Helps product teams break down requirements into structured, visual story maps with release planning — usable both as a team facilitation tool and as structured AI context.


Two Modes

Mode 1: Coaching Mode (Guided Workshop)

Walk the user step-by-step through story mapping, like a facilitator running a workshop.

Flow:

  1. Identify the user persona(s) — Who is the primary user? Any secondary personas?
  2. Define the backbone (happy path) — Ask the user to describe the high-level steps end to end. Aim for 3-7 steps.
  3. Go vertical on each step — For each backbone step, ask deeper questions about requirements, tasks, and acceptance criteria.
  4. Go horizontal — Expand to edge cases, error states, alternative flows.
  5. Add metadata — Capture comments, tasks, risks per story.
  6. Define releases — Group stories into MVP / R1 / R2 / Future.
  7. Generate output — Produce the ASCII visual map and structured markdown.

Coaching behavior for Claude:

  • Ask one question at a time. Don't overwhelm.
  • Confirm each level before going deeper.
  • Summarize back what you heard before moving on.
  • Challenge assumptions: "What happens if the user does X instead?"
  • Always think from the user's perspective, not the system's.
  • Periodically show the evolving ASCII map so the user can see progress.

Mode 2: Generation Mode (Fast Breakdown)

User provides a raw requirement or product idea. Claude asks targeted clarifying questions, then generates a complete story map.

Flow:

  1. User provides the requirement/product idea.
  2. Claude asks 3-5 clarifying questions about:
    • Target user(s)
    • Core happy path
    • Known constraints or requirements
    • Priority / what's most important for first release
  3. Claude generates the full story map with suggested releases.
  4. User reviews and iterates.

Output Format

Part 1: ASCII Visual Map

The backbone runs horizontally across the top. Stories hang vertically below each activity. Release lines cut horizontally across the map.

USER STORY MAP: [Product/Feature Name]
Persona: [Primary User]

BACKBONE (User Journey)
═════════════════════════════════════════════════════════════════════════════

┌─────────────┐    ┌─────────────┐    ┌─────────────┐    ┌─────────────┐
│  Activity 1 │    │  Activity 2 │    │  Activity 3 │    │  Activity 4 │
│  (Step Name)│    │  (Step Name)│    │  (Step Name)│    │  (Step Name)│
└──────┬──────┘    └──────┬──────┘    └──────┬──────┘    └──────┬──────┘
       │                  │                  │                  │
───────┼──────────────────┼──────────────────┼──────────────────┼───── R1 (MVP)
       │                  │                  │                  │
  ┌────┴────┐        ┌────┴────┐        ┌────┴────┐        ┌────┴────┐
  │Story 1.1│        │Story 2.1│        │Story 3.1│        │Story 4.1│
  │ ⚠️ risk  │        │         │        │ 📝 task │        │         │
  └─────────┘        └─────────┘        └─────────┘        └─────────┘
  ┌─────────┐        ┌─────────┐        ┌─────────┐
  │Story 1.2│        │Story 2.2│        │Story 3.2│
  │ 💬 note │        │         │        │         │
  └─────────┘        └─────────┘        └─────────┘
       │                  │
───────┼──────────────────┼──────────────────────────────────────────── R2
       │                  │
  ┌────┴────┐        ┌────┴────┐
  │Story 1.3│        │Story 2.3│
  └─────────┘        └─────────┘
       │
───────┼────────────────────────────────────────────────────────────── Future
       │
  ┌────┴────┐
  │Story 1.4│
  └─────────┘

Legend: 💬 Comment  📝 Task  ⚠️ Risk

Part 2: Structured Markdown Detail

Story Map: [Product/Feature Name]

Persona

Primary: [Name/Role] — [Brief description of who they are and what they need] Secondary: [If applicable]


Backbone

Activity 1: [Step Name]

High-level description of what the user is doing at this stage.

Release 1 (MVP)

Story 1.1: [Short Title]

  • User Story: As a [user], I want [X] because [Y]
  • Acceptance Criteria:
    • Given [context], when [action], then [outcome]
    • Given [context], when [action], then [outcome]
  • Tasks:
    • [Development task]
    • [Design task]
  • Comments: [Notes from discussions, decisions made, open questions]
  • Risks: [Technical, business, or UX risks to be aware of]

Story 1.2: [Short Title]

  • User Story: As a [user], I want [X] because [Y]
  • Acceptance Criteria:
    • ...
  • Tasks: ...
  • Comments: ...
  • Risks: ...
Release 2

Story 1.3: [Short Title]

  • ...

Activity 2: [Step Name]

High-level description...

[...continue for each activity...]


Release Summary

ReleaseScopeStoriesGoal
R1 (MVP)Core happy path1.1, 1.2, 2.1, 2.2, 3.1, 4.1[What user can do after R1]
R2Enhanced features1.3, 2.3, 3.2, 3.3[What R2 adds]
FutureNice-to-haves1.4[Vision items]

Open Risks

IDStoryRiskSeverityStatus
R11.1[Risk description]High/Med/LowOpen/Resolved

Open Tasks

IDStoryTaskOwnerStatus
T12.1[Task description][Who]Todo/In Progress/Done

Part 3: Mermaid Diagram (available in both Coaching and Generation modes)

An alternative to the ASCII map. Use graph LR (left-to-right) to mirror story map reading direction.

  • Backbone activities → top-level nodes (outside all subgraphs)
  • Stories → child nodes, grouped by release
  • Release groupings → subgraph blocks
  • Node labels: avoid special characters (→, &, ", ()). Use plain text equivalents (to, and) for maximum compatibility across renderers (Miro, GitHub, Notion).
  • Subgraph titles: use subgraph R1_MVP[R1 MVP] — avoid quoted syntax ["R1 (MVP)"] which requires Mermaid v9+.

When the user asks for Mermaid output, generate the current map in this format — replacing or alongside the ASCII, per user preference. Default to ASCII during coaching mode; offer Mermaid as an alternative when presenting a final or exported map. Note: Mermaid only renders in compatible environments (GitHub, Notion, some chat surfaces) — mention this if the context is unclear.

graph LR
  A1[Activity 1] --> A2[Activity 2]

  subgraph R1_MVP[R1 MVP]
    S1_1[Story 1.1]
    S1_2[Story 1.2]
    S2_1[Story 2.1]
    S2_2[Story 2.2]
  end

  subgraph R2
    S1_3[Story 1.3]
    S2_3[Story 2.3]
  end

  subgraph Future
    S1_4[Story 1.4]
  end

  A1 --> S1_1
  A1 --> S1_2
  A1 --> S1_3
  A1 --> S1_4
  A2 --> S2_1
  A2 --> S2_2
  A2 --> S2_3

Guidelines for Claude

When in Coaching Mode:

  • Act as a workshop facilitator, not a document generator.
  • Use the Socratic method — ask questions rather than assume answers.
  • Start broad, go narrow. Backbone first, then depth.
  • Validate each level with the user before proceeding.
  • If the user gets stuck, offer examples or options to choose from.
  • Periodically show the evolving ASCII map so the user can see progress.
  • Ask about risks and tasks at the story level, not just acceptance criteria.

When in Generation Mode:

  • Ask smart clarifying questions upfront (3-5 max).
  • Generate a complete first draft of the map.
  • Be opinionated about release grouping — suggest what should be MVP.
  • Flag areas where you made assumptions and ask the user to confirm.
  • Pre-populate obvious risks (e.g., security stories should flag data risk).
  • Make it easy to iterate — when the user gives feedback, regenerate the affected sections.

General Principles:

  • Always write stories from the user's perspective, never the system's.
  • Use "As a [user], I want [X] because [Y]" format consistently.
  • Acceptance criteria should be testable (Given/When/Then where possible).
  • Keep backbone steps at 3-7 items. If more, consider grouping.
  • Stories should be small enough to fit in a sprint but deliver real user value.
  • Don't forget error states, edge cases, and non-happy-path flows.
  • The backbone should tell a story — readable left to right as a user journey.

Integrations

Common Pattern

When the user asks to export to an external tool, follow this pattern:

  1. Detect — attempt to call a known tool from the relevant MCP. If it fails or isn't found, skip to step 4.
  2. Pre-flight — ask the user for the required destination (project key, team name). If the MCP supports listing, offer to show available options.
  3. Execute — use MCP tools to create the export.
  4. Not available — if the MCP is not configured:
    • Say clearly: "I don't have access to [tool] — the [X] MCP isn't configured."
    • Share the link to configure it.
    • Offer a fallback: "I can export as a Mermaid diagram or save a markdown file instead."

Figma / FigJam

  • Trigger: User asks to export to Figma or FigJam
  • Detection: Look for Figma MCP tools (e.g., figma_create_frame, figma_create_sticky)
  • Pre-flight: Ask which FigJam file/page to export to
  • Output:
    • Backbone activities → horizontal frames across the top
    • Stories → sticky notes below each activity
    • Release groupings → section dividers / swimlanes
  • MCP: https://github.com/GLips/Figma-Context-MCP
  • Fallback: Mermaid diagram or markdown file

Miro

  • Trigger: User asks to export to Miro
  • Detection: Look for Miro MCP tools (e.g., miro_create_board, miro_create_sticky_note)
  • Pre-flight: Ask which Miro board to export to, or offer to create a new one
  • Output:
    • Backbone activities → top row of cards
    • Stories → sticky notes in columns below each activity
    • Release groupings → horizontal divider lines
  • MCP: https://github.com/k-jarzyna/mcp-miro
  • Fallback: Mermaid diagram or markdown file

Jira

  • Trigger: User asks to export to Jira or create Jira tickets
  • Detection: Look for Jira MCP tools (e.g., jira_create_issue)
  • Pre-flight: Ask for a project key, or list available projects via MCP and let the user pick
  • Output mapping:
    • Backbone activity → Epic
    • Story → Issue under its Epic
      • Title: story short title
      • Description: user story text + acceptance criteria (Given/When/Then)
      • Sub-tasks: tasks from the Tasks list
      • Labels: risks flagged on that story
    • Release grouping → Sprint or Fix Version
  • MCP: https://github.com/sooperset/mcp-atlassian
  • Fallback: Mermaid diagram or markdown file

Linear

  • Trigger: User asks to export to Linear or create Linear issues
  • Detection: Look for Linear MCP tools (e.g., linear_create_issue)
  • Pre-flight: Ask for a team name; optionally ask for a project within that team. Offer to list teams via MCP.
  • Output mapping:
    • Backbone activity → Label or Project grouping
    • Story → Issue
      • Title: story short title
      • Description: user story text + acceptance criteria (Given/When/Then)
      • Sub-issues: tasks from the Tasks list
      • Labels: risks flagged on that story
    • Release grouping → Cycle or Milestone
  • MCP: https://github.com/jerhadf/linear-mcp-server
  • Fallback: Mermaid diagram or markdown file

Output Formatting

When presenting the user story map output, always include the following in addition to the ASCII map and markdown details:

1. Mermaid.js Journey Diagram

Provide a Mermaid.js journey diagram that visualizes the user journey and each story as steps or tasks. Use the following structure as an example:

journey
    title [Product/Feature Name] User Journey
    section [Activity 1 Name]
      Story 1.1: 5: User
      Story 1.2: 3: User
    section [Activity 2 Name]
      Story 2.1: 4: User
      Story 2.2: 2: User
    section [Activity N Name]
      Story N.x: 1: User
  • Each activity becomes a section.
  • Each story is a step within that section (label as "Story X.Y: [Short Title]").
  • User is the default actor.
  • You may use numbers (1-5) for effort or importance if provided by the user.

The journey diagram should be included by default for every map.

2. Tasks CSV Export Block

After the visualizations, provide a CSV block containing the tasks in the map, using the following columns: Release, Activity, Story, Task, Owner, Status. Format it like:

Release,Activity,Story,Task,Owner,Status
R1 (MVP),Login,Story 1.1,**Set up authentication flow**,Alice,Todo
R1 (MVP),Login,Story 1.2,**Design error messaging**,Bob,In Progress
R2,Profile Management,Story 2.3,Update user avatar,Carol,Todo
  • All tasks under "Release 1" (usually "R1 (MVP)") must have their task names bolded by wrapping them in double asterisks (**task**) in the CSV.
  • For other releases, leave task text unbolded.
  • The CSV should always be included for easy export, even if no tasks exist (list only headers if empty).

3. General

  • Always include both the Mermaid journey diagram and the tasks CSV block along with the standard outputs.
  • If Release 1 is titled differently (e.g., "Release 1" or "MVP"), treat it as equivalent to "R1 (MVP)" for the bolding rule.
  • Mention this formatting in any summary or intro when generating outputs for the user.

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.