Epics and Stories
Learn how to create and manage epics and stories in AgileFlow
Epics and Stories
Learn how to effectively create and manage epics and user stories in AgileFlow.
What are Stories?
A user story is a short, simple description of a feature from the user's perspective.
Story Format
AgileFlow uses the classic user story format:
Example Story
Creating Stories
Review Generated Story
AgileFlow will generate:
- Formatted user story
- Acceptance criteria (Given/When/Then)
- Story points estimate
- Technical requirements
- Test scenarios
Refine and Save
Review and adjust the generated content, then save to .agileflow/stories/
Story Components
A complete story in AgileFlow includes:
1. Title
Clear, concise name (e.g., "Password Reset via Email")
2. Description
User story in As a/I want/So that format
3. Acceptance Criteria
Given/When/Then scenarios:
4. Story Points
Effort estimation (1, 2, 3, 5, 8, 13):
- 1-2: Simple changes
- 3-5: Moderate features
- 8-13: Complex features (consider breaking down)
5. Status
Current workflow state:
- Backlog
- Ready
- In Progress
- Review
- Done
6. Dependencies
Related or blocking stories:
What are Epics?
An epic is a large body of work that can be broken down into multiple user stories.
Example Epic
Epic: User Authentication System
Contains stories:
- AF-001: User Registration
- AF-002: User Login
- AF-003: Password Reset
- AF-004: Email Verification
- AF-005: Two-Factor Authentication
- AF-006: OAuth Integration
Creating Epics
Use the epic command:
Then describe your feature:
AgileFlow will:
- Create the epic structure
- Generate individual stories
- Set up dependencies
- Estimate story points
Epic Components
1. Epic Title
High-level feature name
2. Overview
Brief description of what the epic accomplishes
3. Goals
Business objectives and outcomes
4. Stories
List of user stories that comprise the epic
5. Milestones
Key checkpoints:
6. Dependencies
External dependencies or prerequisites
Story Lifecycle
Stories move through states:
Updating Status
AgileFlow tracks status changes and calculates cycle time automatically.
Story Estimation
Story Points Scale
Use Fibonacci sequence for estimation:
| Points | Description | Examples |
|---|---|---|
| 1 | Trivial | Fix typo, update config |
| 2 | Simple | Add validation, simple UI component |
| 3 | Moderate | New API endpoint, form component |
| 5 | Complex | Auth integration, complex feature |
| 8 | Very complex | Major refactor, new subsystem |
| 13 | Epic-sized | Should be broken down |
Estimation Tips
Estimates should reflect effort, not time. Include complexity, unknowns, and risk.
- Compare to known stories: "This is similar to AF-005 which was 3 points"
- Account for uncertainty: Add points for unknowns
- Include all work: Testing, docs, code review
- Be consistent: Use the same scale across stories
Story Templates
AgileFlow provides templates for common story types:
Feature Story
Bug Fix Story
Technical Story
Best Practices
For Stories
- Keep them small: 1-3 days of work maximum
- Make them testable: Clear acceptance criteria
- Include the why: Explain business value
- Avoid technical jargon: Write for users
- One story, one feature: Don't bundle unrelated work
For Epics
- Define clear goals: What success looks like
- Break down completely: All stories identified upfront
- Set milestones: Deliverable checkpoints
- Track progress: Update epic status regularly
- Review scope: Adjust as you learn
Working with Dependencies
Identifying Dependencies
Managing Dependencies
AgileFlow helps you:
- Visualize dependency graphs
- Detect circular dependencies
- Plan stories in the right order
- Warn about blocked stories
Circular dependencies indicate stories should be broken down differently.
Story Refinement
Regularly refine your backlog:
Next Steps
Now that you understand stories and epics, learn about planning sprints.
- Read the Sprint Planning guide
- Explore Commands for story management
- Learn about Agents that help implement stories