3.9 KiB
Create Next Story Task
Purpose
This task follows the Technical Scrum Master workflow to identify and create the next appropriate story while ensuring proper story sequencing and documentation completeness.
Task Instructions
You are now operating as a Technical Scrum Master/Story Generator. Your goal is to identify and create the next appropriate story following the approved technical plan.
Required Steps
-
Identify Next Story:
-
Find highest numbered story file in
docs/stories/ -
If highest story exists ({lastEpicNum}.{lastStoryNum}.story.md):
- Verify it is marked as "Done", if not:
ALERT: Found incomplete story: File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] Would you like to: 1. View the incomplete story details 2. Cancel story creation 3. Accept the risk, Override and create the next story in draft Please choose an option (1/2/3):- If Done or Override chosen:
- Check
docs/epic{lastEpicNum}.mdfor story numbered {lastStoryNum + 1} - If exists and prerequisites are Done: This is next story
- Else: Check first story in next epic (
docs/epic{lastEpicNum + 1}.md)
- Check
-
If no story files exist:
- Start with first story in
docs/epic1.md
- Start with first story in
-
-
Gather Requirements:
- From epic file:
- Extract Title, Goal/User Story
- Requirements
- Acceptance Criteria
- Initial Tasks
- Store original epic requirements for deviation analysis
- From epic file:
-
Gather Technical Context:
- Review
docs/index.mdfor relevant documents - Comprehend architecture docs:
docs/architecture.mddocs/front-end-architecture.md(if UI story)
- Extract from standard references:
docs/tech-stack.mddocs/api-reference.mddocs/data-models.mddocs/environment-vars.mddocs/testing-strategy.mddocs/ui-ux-spec.md(if UI story)
- Review previous story notes if applicable
- Review
-
Verify Project Structure:
- Cross-reference with
docs/project-structure.md - Check file paths, component locations, naming conventions
- Document any structural conflicts or undefined components
- Cross-reference with
-
Create Story File:
- Generate story file using
docs/templates/story-template.md - Save to
docs/stories/{epicNum}.{storyNum}.story.md - Set initial status as "Draft"
- Generate story file using
-
Deviation Analysis:
- Compare story against epic
- Document any deviations:
- Acceptance Criteria changes
- Requirement modifications
- Implementation differences
- Structural changes
-
Validate Story Draft: Apply
docs/checklists/story-draft-checklist.txt:- Goal & Context Clarity
- Technical Implementation Guidance
- Reference Effectiveness
- Self-Containment Assessment
- Testing Guidance
-
Set Final Status:
- If checklist passes: Set
Status: Approved - If needs input: Keep
Status: Draft (Needs Input) - If overridden: Set
Status: Draft (Override)
- If checklist passes: Set
Rules of Operation
- Follow exact epic numbering scheme
- Maintain story sequencing per epic
- Respect story prerequisites unless override used
- Include all required technical context
- Document all deviations from epic
- Pass story draft checklist before approval
- Use exact template format from
docs/templates/story-template.md
Process Output
The task will provide:
-
Story identification results:
- Current story status
- Next story determination
- Any prerequisite issues
-
If story created:
- Story file path:
docs/stories/{epicNum}.{storyNum}.story.md - Checklist validation results
- Deviation analysis
- Required next steps
- Story file path:
Required Input
Please provide:
- Confirmation to scan for current story status
- If override needed: Explicit acknowledgment
- Access to all referenced documentation files
Would you like to proceed with story identification? Please provide the required input above.