name: team-story
version: 1.2.0
description: "[Team] Break PBIs into user stories using vertical slicing, SPIDR splitting, and INVEST criteria. Use when creating user stories from PBIs, slicing features, or breaking down requirements. Triggers on keywords like "user story", "create stories", "slice pbi", "story breakdown", "vertical slice", "split story"."
argument-hint: ""
allowed-tools: Read, Write, Edit, Grep, Glob, TodoWrite
infer: true
User Story Creation
Break Product Backlog Items into implementable user stories using vertical slicing and SPIDR patterns.
MUST READ References
IMPORTANT: You MUST read these reference files for complete protocol. Do NOT skip.
- MUST READ
.claude/skills/shared/team-frameworks.md — INVEST, SPIDR, MoSCoW frameworks
- MUST READ
.claude/skills/shared/bdd-gherkin-templates.md — BDD/Gherkin scenario templates
- MUST READ
.claude/skills/shared/module-detection-keywords.md — module detection keywords
- MUST READ
references/story-patterns.md — scenarios, templates, anti-patterns
Pre-Workflow
- Activate
business-analyst skill for domain context and requirements analysis
When to Use
- PBI ready for story breakdown
- Feature needs vertical slicing
- Creating sprint-ready work items
- Story too large (effort >8)
Workflow
- Read PBI artifact and acceptance criteria
- Load domain context if module detected (see
references/story-patterns.md)
- Identify vertical slices (end-to-end functionality)
- Apply SPIDR splitting if stories too large (see shared frameworks)
- Apply INVEST criteria to each story (see shared frameworks)
- Create user stories with GIVEN/WHEN/THEN (min 3 scenarios)
- Save to
team-artifacts/pbis/stories/
- Validate stories (MANDATORY) - Interview user
- Suggest next:
/team-test-spec or /team-design-spec
Output
- Path:
team-artifacts/pbis/stories/{YYMMDD}-us-{pbi-slug}.md
- Format: Single file with all stories (use ## headers per story)
Story Format
## Story N: {Title}
**As a** {user role}
**I want** {goal}
**So that** {benefit}
### Acceptance Criteria (min 3 scenarios: happy, edge, error)
```gherkin
Scenario: {Title}
Given {context}
When {action}
Then {outcome}
## Quality Checklist
- [ ] Each story follows "As a... I want... So that..." format
- [ ] SPIDR splitting applied (effort <= 8, prefer <= 5)
- [ ] At least 3 scenarios per story: happy, edge, error
- [ ] All scenarios use GIVEN/WHEN/THEN format
- [ ] Effort estimated in Fibonacci (1, 2, 3, 5, 8)
- [ ] Stories independent (can develop in any order)
- [ ] Out of scope explicitly listed
- [ ] Dependencies identified (upstream/downstream)
- [ ] Domain vocabulary used correctly (if applicable)
- [ ] Validation interview completed (MANDATORY)
## Related
| Type | Reference |
| -------------- | ------------------------------------------------------------ |
| **Role Skill** | `business-analyst` |
| **Input** | `/team-refine` output (PBI) |
| **Next Steps** | `/team-test-spec`, `/team-design-spec`, `/team-prioritize` |
## Triggers
Activates on: story, user story, user stories, slice, slicing, split story, breakdown
## IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
1---2name: team-story3description: Break Product Backlog Items into implementable user stories using vertical slicing and SPIDR patterns.4---5
6---
7name: team-story
8version: 1.2.0
9description: "[Team] Break PBIs into user stories using vertical slicing, SPIDR splitting, and INVEST criteria. Use when creating user stories from PBIs, slicing features, or breaking down requirements. Triggers on keywords like "user story", "create stories", "slice pbi", "story breakdown", "vertical slice", "split story"."
10argument-hint: "<path-to-pbi-file-or-PBI-ID>"
11allowed-tools: Read, Write, Edit, Grep, Glob, TodoWrite
12infer: true
13---
14
15# User Story Creation
16
17Break Product Backlog Items into implementable user stories using vertical slicing and SPIDR patterns.
18
19## MUST READ References
20
21**IMPORTANT: You MUST read these reference files for complete protocol. Do NOT skip.**
22
23- **MUST READ** `.claude/skills/shared/team-frameworks.md` — INVEST, SPIDR, MoSCoW frameworks
24- **MUST READ** `.claude/skills/shared/bdd-gherkin-templates.md` — BDD/Gherkin scenario templates
25- **MUST READ** `.claude/skills/shared/module-detection-keywords.md` — module detection keywords
26- **MUST READ** `references/story-patterns.md` — scenarios, templates, anti-patterns
27
28## Pre-Workflow
29
30- Activate `business-analyst` skill for domain context and requirements analysis
31
32## When to Use
33
34- PBI ready for story breakdown
35- Feature needs vertical slicing
36- Creating sprint-ready work items
37- Story too large (effort >8)
38
39## Workflow
40
411. Read PBI artifact and acceptance criteria
422. **Load domain context** if module detected (see `references/story-patterns.md`)
433. Identify vertical slices (end-to-end functionality)
444. **Apply SPIDR splitting** if stories too large (see shared frameworks)
455. Apply INVEST criteria to each story (see shared frameworks)
466. Create user stories with GIVEN/WHEN/THEN (min 3 scenarios)
477. Save to `team-artifacts/pbis/stories/`
488. **Validate stories** (MANDATORY) - Interview user
499. Suggest next: `/team-test-spec` or `/team-design-spec`
50
51## Output
52
53- **Path:** `team-artifacts/pbis/stories/{YYMMDD}-us-{pbi-slug}.md`
54- **Format:** Single file with all stories (use ## headers per story)
55
56## Story Format
57
58```markdown
59## Story N: {Title}
60
61**As a** {user role}
62**I want** {goal}
63**So that** {benefit}
64
65### Acceptance Criteria (min 3 scenarios: happy, edge, error)
66
67```gherkin
68Scenario: {Title}
69 Given {context}
70 When {action}
71 Then {outcome}
72```
73```
74
75## Quality Checklist
76
77- [ ] Each story follows "As a... I want... So that..." format
78- [ ] SPIDR splitting applied (effort <= 8, prefer <= 5)
79- [ ] At least 3 scenarios per story: happy, edge, error
80- [ ] All scenarios use GIVEN/WHEN/THEN format
81- [ ] Effort estimated in Fibonacci (1, 2, 3, 5, 8)
82- [ ] Stories independent (can develop in any order)
83- [ ] Out of scope explicitly listed
84- [ ] Dependencies identified (upstream/downstream)
85- [ ] Domain vocabulary used correctly (if applicable)
86- [ ] Validation interview completed (MANDATORY)
87
88## Related
89
90| Type | Reference |
91| -------------- | ------------------------------------------------------------ |
92| **Role Skill** | `business-analyst` |
93| **Input** | `/team-refine` output (PBI) |
94| **Next Steps** | `/team-test-spec`, `/team-design-spec`, `/team-prioritize` |
95
96## Triggers
97
98Activates on: story, user story, user stories, slice, slicing, split story, breakdown
99
100
101## IMPORTANT Task Planning Notes
102
103- Always plan and break many small todo tasks
104- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed