Generate user stories from a feature's PRD
Generates independent, atomic user stories from PRD following the Independence Principle.
/plugin marketplace add eLafo/hefesto/plugin install elafo-hefesto-2@eLafo/hefesto<feature_id>po/Generate independent, atomic user stories from the PRD following the Independence Principle.
prd_createdVerify:
.hefesto/features/{feature_id}/.hefesto/features/{feature_id}/prd.mdprd_createdEach story must satisfy:
feature.jsonprd_created.hefesto/features/{feature_id}/prd.md.hefesto/features/{feature_id}/
├── feature.json
├── prd.md
└── stories/
├── 001-{story-slug}/
│ └── user-story.md
├── 002-{story-slug}/
│ └── user-story.md
└── ...
For each story, create user-story.md:
# User Story: {Title}
## Metadata
- **Story ID**: {nnn}-{slug}
- **Feature**: {feature_id}
- **Priority**: {1-4}
- **Status**: defined
- **Created**: {timestamp}
- **Requirements**: FR-001, FR-002
## Conflict Analysis
### Files Likely Modified
- `src/components/...`
- `src/api/...`
### Potential Conflicts
{Analysis of overlapping changes}
## Dependencies
### Required Before This Story
- None (or list story IDs)
### Enables These Stories
- 002-password-validation
## User Story
**As a** {user type}
**I want to** {action/capability}
**So that** {benefit/value}
## Acceptance Criteria
1. [ ] Given {context}, when {action}, then {result}
2. [ ] Given {context}, when {action}, then {result}
## Scenarios
### Scenario 1: {Happy Path}
**Given** {initial state}
**When** {action taken}
**Then** {expected outcome}
### Scenario 2: {Error Case}
**Given** {initial state}
**When** {invalid action}
**Then** {error handling}
## Technical Notes
{Implementation hints}
## Out of Scope
{What this story does NOT include}
Update feature.json:
status: stories_createdphase: storiesworkflow.stories_created: truestories: array of story metadataVerify:
user-story.md✅ User Stories Generated
Feature: {title}
Path: .hefesto/features/{id}/stories/
Stories Created:
[P1] 001-login-form
[P1] 002-password-validation
[P2] 003-session-management
[P2] 004-logout-flow
[P3] 005-password-reset
Dependency Graph:
001 → 002 → 003
↘ 004
005 (independent)
→ Next (DEV): dev:plan story .hefesto/features/{id}/stories/001-login-form