agileflow 2.61.0 → 2.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
  3. package/scripts/lib/counter.js +103 -0
  4. package/src/core/commands/auto.md +1 -0
  5. package/src/core/commands/babysit.md +170 -29
  6. package/src/core/commands/board.md +1 -0
  7. package/src/core/commands/ci.md +1 -0
  8. package/src/core/commands/compress.md +1 -0
  9. package/src/core/commands/deploy.md +1 -0
  10. package/src/core/commands/help.md +1 -0
  11. package/src/core/commands/research.md +1 -0
  12. package/src/core/commands/skill/create.md +566 -0
  13. package/src/core/commands/skill/delete.md +189 -0
  14. package/src/core/commands/skill/edit.md +245 -0
  15. package/src/core/commands/skill/list.md +155 -0
  16. package/src/core/commands/skill/test.md +249 -0
  17. package/src/core/commands/template.md +1 -0
  18. package/src/core/commands/tests.md +1 -0
  19. package/src/core/commands/update.md +1 -0
  20. package/src/core/commands/velocity.md +1 -0
  21. package/src/core/experts/refactor/expertise.yaml +17 -12
  22. package/src/core/templates/claude-settings.advanced.example.json +1 -1
  23. package/src/core/templates/claude-settings.example.json +1 -1
  24. package/tools/cli/commands/list.js +8 -13
  25. package/tools/cli/installers/core/installer.js +20 -19
  26. package/tools/cli/installers/ide/_base-ide.js +18 -4
  27. package/tools/cli/installers/ide/claude-code.js +4 -15
  28. package/tools/cli/installers/ide/codex.js +9 -13
  29. package/tools/cli/lib/content-injector.js +162 -31
  30. package/tools/cli/lib/utils.js +87 -0
  31. package/src/core/skills/acceptance-criteria-generator/SKILL.md +0 -46
  32. package/src/core/skills/adr-template/SKILL.md +0 -62
  33. package/src/core/skills/agileflow-acceptance-criteria/SKILL.md +0 -156
  34. package/src/core/skills/agileflow-adr/SKILL.md +0 -147
  35. package/src/core/skills/agileflow-adr/examples/database-choice-example.md +0 -122
  36. package/src/core/skills/agileflow-adr/templates/adr-template.md +0 -69
  37. package/src/core/skills/agileflow-commit-messages/SKILL.md +0 -130
  38. package/src/core/skills/agileflow-commit-messages/reference/bad-examples.md +0 -168
  39. package/src/core/skills/agileflow-commit-messages/reference/good-examples.md +0 -120
  40. package/src/core/skills/agileflow-commit-messages/scripts/check-attribution.sh +0 -15
  41. package/src/core/skills/agileflow-epic-planner/SKILL.md +0 -184
  42. package/src/core/skills/agileflow-retro-facilitator/SKILL.md +0 -119
  43. package/src/core/skills/agileflow-retro-facilitator/cookbook/4ls.md +0 -86
  44. package/src/core/skills/agileflow-retro-facilitator/cookbook/glad-sad-mad.md +0 -79
  45. package/src/core/skills/agileflow-retro-facilitator/cookbook/start-stop-continue.md +0 -142
  46. package/src/core/skills/agileflow-retro-facilitator/prompts/action-items.md +0 -83
  47. package/src/core/skills/agileflow-sprint-planner/SKILL.md +0 -212
  48. package/src/core/skills/agileflow-story-writer/SKILL.md +0 -163
  49. package/src/core/skills/agileflow-story-writer/examples/good-story-example.md +0 -63
  50. package/src/core/skills/agileflow-story-writer/templates/story-template.md +0 -44
  51. package/src/core/skills/agileflow-tech-debt/SKILL.md +0 -215
  52. package/src/core/skills/api-documentation-generator/SKILL.md +0 -65
  53. package/src/core/skills/changelog-entry/SKILL.md +0 -55
  54. package/src/core/skills/commit-message-formatter/SKILL.md +0 -50
  55. package/src/core/skills/deployment-guide-generator/SKILL.md +0 -84
  56. package/src/core/skills/diagram-generator/SKILL.md +0 -65
  57. package/src/core/skills/error-handler-template/SKILL.md +0 -78
  58. package/src/core/skills/migration-checklist/SKILL.md +0 -82
  59. package/src/core/skills/pr-description/SKILL.md +0 -65
  60. package/src/core/skills/sql-schema-generator/SKILL.md +0 -69
  61. package/src/core/skills/story-skeleton/SKILL.md +0 -34
  62. package/src/core/skills/test-case-generator/SKILL.md +0 -63
  63. package/src/core/skills/type-definitions/SKILL.md +0 -65
  64. package/src/core/skills/validation-schema-generator/SKILL.md +0 -64
  65. package/src/core/skills/writing-skills/SKILL.md +0 -352
  66. package/src/core/skills/writing-skills/testing-skills-with-subagents.md +0 -232
@@ -1,142 +0,0 @@
1
- # Start/Stop/Continue Retrospective Format
2
-
3
- The standard format for sprint retrospectives. Best for regular, recurring retros.
4
-
5
- ## Template
6
-
7
- ```markdown
8
- # Sprint [Number] Retrospective
9
-
10
- **Date**: YYYY-MM-DD
11
- **Facilitator**: [Name]
12
- **Attendees**: [Team members present]
13
- **Sprint Duration**: [Start] - [End]
14
-
15
- ## Sprint Metrics
16
-
17
- - **Committed**: X story points
18
- - **Completed**: Y story points
19
- - **Velocity**: Z%
20
- - **Stories Done**: A / B
21
- - **Bugs Found**: C
22
-
23
- ## What Went Well
24
-
25
- - [Positive 1: Specific thing that worked]
26
- - [Positive 2: Team success]
27
- - [Positive 3: Process improvement]
28
-
29
- ## What Didn't Go Well
30
-
31
- - [Challenge 1: Specific problem]
32
- - [Challenge 2: Blocker or delay]
33
- - [Challenge 3: Process issue]
34
-
35
- ## Start (New Practices)
36
-
37
- - **[Practice 1]**
38
- - Why: [Reasoning]
39
- - Owner: [Who will drive this]
40
- - Success metric: [How we'll measure]
41
-
42
- ## Stop (Remove Practices)
43
-
44
- - **[Practice 1]**
45
- - Why it's not working: [Reasoning]
46
- - Alternative: [What we'll do instead]
47
-
48
- ## Continue (Keep Doing)
49
-
50
- - **[Practice 1]**
51
- - Why it's working: [Reasoning]
52
- - How to maintain: [Keep it going]
53
-
54
- ## Action Items
55
-
56
- - [ ] **[Action 1]** - @Owner - Due: [Date]
57
- - Success criteria: [How we know it's done]
58
-
59
- - [ ] **[Action 2]** - @Owner - Due: [Date]
60
- - Success criteria: [How we know it's done]
61
-
62
- ## Previous Action Items Review
63
-
64
- - [] **[Completed Action]** - Implemented, improved X by Y%
65
- - [] **[In Progress Action]** - Still working on it, 60% done
66
- - [] **[Not Done Action]** - Blocked by Z, rolling to next sprint
67
-
68
- ## Key Insights
69
-
70
- 1. [Insight 1: Pattern or learning]
71
- 2. [Insight 2: Team dynamic observation]
72
- 3. [Insight 3: Process discovery]
73
- ```
74
-
75
- ## Metrics to Track
76
-
77
- **Sprint Health**:
78
- - Velocity trend (increasing, stable, decreasing?)
79
- - Commitment accuracy (completed vs committed)
80
- - Bug count (increasing, decreasing?)
81
- - Blocker frequency
82
-
83
- **Team Health**:
84
- - Meeting effectiveness
85
- - Communication quality
86
- - Collaboration level
87
- - Work-life balance
88
-
89
- **Process Health**:
90
- - Cycle time (story start to done)
91
- - Code review turnaround
92
- - Deployment frequency
93
- - Incident count
94
-
95
- ## Common Themes to Watch For
96
-
97
- **Positive Patterns**:
98
- - Consistent velocity
99
- - Low bug count
100
- - Fast code reviews
101
- - Clear requirements
102
- - Good collaboration
103
-
104
- **Warning Signs**:
105
- - Declining velocity
106
- - Recurring blockers
107
- - Communication issues
108
- - Scope creep
109
- - Burnout indicators
110
-
111
- ## Facilitator Tips
112
-
113
- **Do**:
114
- - Create safe space for honest feedback
115
- - Focus on process, not people
116
- - Time-box discussions (5-10 min per topic)
117
- - Ensure everyone participates
118
- - End on positive note
119
- - Follow up on action items
120
-
121
- **Don't**:
122
- - Blame individuals
123
- - Let discussions run too long
124
- - Skip retros ("too busy")
125
- - Create action items without owners
126
- - Ignore previous action items
127
-
128
- ## Remote Retro Adaptations
129
-
130
- For distributed teams:
131
- - Use anonymous feedback tools (Retrium, Metro Retro)
132
- - Give time for async reflection before meeting
133
- - Use polls/voting for prioritization
134
- - Record session for absent team members
135
- - Use collaborative docs for brainstorming
136
-
137
- ## Frequency Guidelines
138
-
139
- - **Every sprint**: Standard retros (60-90 min)
140
- - **Major milestones**: Extended retros (2-3 hours)
141
- - **Quarterly**: Big-picture retros (process, tools, culture)
142
- - **Post-incident**: Blameless postmortems (as needed)
@@ -1,83 +0,0 @@
1
- # Action Items Template
2
-
3
- Shared template for creating SMART action items across all retro formats.
4
-
5
- ## SMART Action Items
6
-
7
- - **S**pecific: Clear what needs to be done
8
- - **M**easurable: Can verify it's complete
9
- - **A**ssignable: Has an owner
10
- - **R**elevant: Addresses the issue
11
- - **T**ime-bound: Has a deadline
12
-
13
- ## Good vs Bad Examples
14
-
15
- **Good (Specific, Actionable)**:
16
- ```
17
- - [ ] **Create PR size guideline** - @TechLead - Due: Before next sprint
18
- - Success criteria: Document written, shared with team, added to CLAUDE.md
19
- - Metric: 80% of PRs under 300 lines
20
- ```
21
-
22
- **Bad (Vague, Unactionable)**:
23
- ```
24
- - [ ] Fix code reviews
25
- - [ ] Be better at communication
26
- - [ ] Improve quality
27
- ```
28
-
29
- ## Good vs Bad Feedback
30
-
31
- **Good (Specific, Constructive)**:
32
- ```
33
- "Daily standups ran long (20+ min) because we discussed
34
- implementation details. Consider moving technical discussions
35
- to separate sessions."
36
-
37
- "Code reviews were faster this sprint (avg 4 hours vs 24 hours
38
- last sprint) thanks to smaller PR sizes."
39
- ```
40
-
41
- **Bad (Vague, Blame-Oriented)**:
42
- ```
43
- "Meetings were bad"
44
- "Bob didn't do his job"
45
- "Everything was terrible"
46
- "Process is broken"
47
- ```
48
-
49
- ## Action Item Template
50
-
51
- ```markdown
52
- - [ ] **[Specific Action]** - @Owner - Due: [Date]
53
- - Context: [What retro item this addresses]
54
- - Success criteria: [How we know it's done]
55
- - Metric: [Measurable outcome if applicable]
56
- ```
57
-
58
- ## Tracking Action Items
59
-
60
- **Status Markers**:
61
- - `[ ]` - Not started
62
- - `[~]` - In progress
63
- - `[x]` - Completed
64
- - `[!]` - Blocked
65
- - `[-]` - Cancelled/Deferred
66
-
67
- **Review Format**:
68
- ```markdown
69
- ## Previous Action Items Review
70
-
71
- - [x] **[Completed Action]** - Implemented, improved X by Y%
72
- - [~] **[In Progress Action]** - 60% done, on track for next week
73
- - [!] **[Blocked Action]** - Blocked by Z, need help from [team]
74
- - [-] **[Cancelled Action]** - No longer relevant due to [reason]
75
- ```
76
-
77
- ## Best Practices
78
-
79
- 1. **Limit to 3-5 actions per retro** - More than 5 rarely get done
80
- 2. **Assign single owners** - Shared ownership = no ownership
81
- 3. **Set realistic deadlines** - Usually before next retro
82
- 4. **Review at next retro** - Accountability matters
83
- 5. **Track completion rate** - Target: >80%
@@ -1,212 +0,0 @@
1
- ---
2
- name: agileflow-sprint-planner
3
- description: Helps plan sprints by grouping stories, calculating capacity, identifying risks, and creating sprint goals. Loads when discussing sprint planning or iteration planning.
4
- ---
5
-
6
- # AgileFlow Sprint Planner
7
-
8
- Assists with sprint planning by analyzing available stories, team capacity, dependencies, and creating balanced sprint plans.
9
-
10
- ## When to Use
11
-
12
- This skill activates when:
13
- - Keywords: "sprint planning", "iteration planning"
14
- - Discussing what to work on next sprint
15
- - User asks "what should we work on?"
16
- - Calculating team capacity or velocity
17
- - Keywords: "sprint goal", "sprint commitment"
18
-
19
- ## What This Does
20
-
21
- 1. Reads backlog stories from docs/06-stories/
22
- 2. Calculates team capacity (people × days × velocity)
23
- 3. Selects stories by priority and dependencies
24
- 4. Creates balanced sprint plan with goal
25
- 5. Identifies risks and blockers
26
-
27
- ## Instructions
28
-
29
- 1. **Gather information**:
30
- - Read backlog stories from `docs/06-stories/`
31
- - Check team capacity (PTO, holidays, meetings)
32
- - Review last sprint's velocity
33
-
34
- 2. **Calculate capacity**:
35
- - Team members × days available × points per day
36
- - Account for: PTO/vacation, holidays, meetings (10-20%), support work
37
-
38
- 3. **Select stories**:
39
- - Start with highest priority (P0, P1)
40
- - Consider dependencies
41
- - Balance work across team members
42
- - Add stretch goals (20% buffer)
43
-
44
- 4. **Define sprint goal**:
45
- - One clear, achievable objective
46
- - Aligns with epic/milestone
47
- - Measurable outcome
48
-
49
- 5. **Validate plan**:
50
- - Check for blockers/dependencies
51
- - Ensure balanced workload
52
- - Verify stories have clear AC
53
-
54
- ## Sprint Plan Format
55
-
56
- ```markdown
57
- # Sprint [Number]: [Sprint Goal]
58
-
59
- **Duration**: [Start Date] - [End Date] (2 weeks)
60
- **Team Capacity**: X story points
61
- **Sprint Goal**: [1-2 sentence description of what we aim to achieve]
62
-
63
- ## Committed Stories
64
-
65
- ### High Priority (P0/P1)
66
- - [ ] [STORY-###: Title](link) - X pts - @Owner
67
- - [ ] [STORY-###: Title](link) - X pts - @Owner
68
-
69
- ### Medium Priority (P2)
70
- - [ ] [STORY-###: Title](link) - X pts - @Owner
71
-
72
- ### Stretch Goals (if capacity allows)
73
- - [ ] [STORY-###: Title](link) - X pts - @Owner
74
-
75
- **Total Committed**: X story points
76
- **Total with Stretch**: Y story points
77
-
78
- ## Capacity Breakdown
79
-
80
- | Team Member | Availability | Capacity (pts) | Assigned (pts) |
81
- |-------------|--------------|----------------|----------------|
82
- | Alice | 10 days | 15 | 13 |
83
- | Bob | 8 days (PTO) | 12 | 11 |
84
- | Carol | 10 days | 15 | 14 |
85
- | **Total** | 28 days | **42** | **38** |
86
-
87
- ## Dependencies & Blockers
88
-
89
- - [Dependency 1: What needs to happen]
90
- - [Blocker 1: Known issue]
91
-
92
- ## Risks
93
-
94
- - [Risk 1: What might go wrong]
95
- - [Risk 2: Mitigation plan]
96
-
97
- ## Sprint Schedule
98
-
99
- - **Day 1 (Mon)**: Sprint Planning
100
- - **Day 3 (Wed)**: Mid-sprint check-in
101
- - **Day 8 (Wed)**: Feature freeze / Code review
102
- - **Day 10 (Fri)**: Sprint Review & Retro
103
-
104
- ## Definition of Done
105
-
106
- - [ ] Code reviewed and approved
107
- - [ ] Tests written and passing (unit + integration)
108
- - [ ] Documentation updated
109
- - [ ] Deployed to staging
110
- - [ ] Acceptance criteria validated
111
- - [ ] No open bugs
112
- ```
113
-
114
- ## Capacity Calculation
115
-
116
- **Basic Formula**:
117
- ```
118
- Capacity = Team Members × Available Days × Points per Day
119
- ```
120
-
121
- **Example**:
122
- - 3 developers
123
- - 10 working days per person
124
- - ~1.5 story points per day average
125
- - Capacity = 3 × 10 × 1.5 = 45 story points
126
-
127
- **Adjustments**:
128
- - Meetings overhead: -15% (6.75 pts)
129
- - Code reviews: -10% (4.5 pts)
130
- - Bug fixes: -10% (4.5 pts)
131
- - Realistic capacity: ~30 story points
132
-
133
- ## Velocity Tracking
134
-
135
- Track historical velocity to improve estimates:
136
-
137
- | Sprint | Committed | Completed | Velocity |
138
- |--------|-----------|-----------|----------|
139
- | 12 | 40 | 38 | 95% |
140
- | 11 | 35 | 35 | 100% |
141
- | 10 | 42 | 30 | 71% |
142
- | 9 | 38 | 40 | 105% |
143
- | **Avg**| **38.75** | **35.75** | **92%** |
144
-
145
- **Recommended commitment**: 36-40 story points (based on 92% velocity)
146
-
147
- ## Sprint Goal Guidelines
148
-
149
- **Good Sprint Goals**:
150
- - Complete user authentication (login, signup, password reset)
151
- - Launch MVP of dark mode feature
152
- - Improve search performance to <100ms
153
- - Integrate Stripe payment processing
154
-
155
- **Bad Sprint Goals**:
156
- - Complete as many stories as possible (not specific)
157
- - Fix bugs (too vague)
158
- - Work on 10 different features (no focus)
159
-
160
- ## Story Selection Strategy
161
-
162
- **Priority-Based**:
163
- 1. P0 (Critical): Blockers, security fixes, production bugs
164
- 2. P1 (High): Planned features, important improvements
165
- 3. P2 (Medium): Nice-to-haves, enhancements
166
- 4. P3 (Low): Tech debt, cleanup, future work
167
-
168
- **Dependency-Based**:
169
- - Group stories that depend on each other
170
- - Complete prerequisites first
171
- - Avoid half-done features
172
-
173
- **Skill-Based**:
174
- - Match stories to team member expertise
175
- - Allow learning opportunities
176
- - Pair complex tasks
177
-
178
- ## Risk Identification
179
-
180
- **Common Risks**:
181
- - **Underestimated complexity**: Add buffer or spike story
182
- - **External dependencies**: Identify early, create fallback plan
183
- - **Unclear requirements**: Refine stories before sprint starts
184
- - **Team availability**: Plan for reduced capacity
185
- - **Technical unknowns**: Add research/investigation time
186
-
187
- ## Quality Checklist
188
-
189
- Before finalizing sprint plan:
190
- - [ ] Sprint goal is clear and achievable
191
- - [ ] Stories sum to realistic capacity (80-90% of max)
192
- - [ ] All stories have defined acceptance criteria
193
- - [ ] Dependencies identified and resolved
194
- - [ ] Work balanced across team members
195
- - [ ] Stretch goals identified (10-20% extra)
196
- - [ ] Blockers documented with mitigation plans
197
- - [ ] Team has reviewed and committed
198
-
199
- ## Integration
200
-
201
- - **agileflow-story-writer**: Ensures stories are well-formed
202
- - **epic-planner**: Pulls stories from epic milestones
203
- - **agileflow-retro-facilitator**: Uses retro insights for planning
204
-
205
- ## Notes
206
-
207
- - Sprint planning should take ~2 hours for 2-week sprint
208
- - Don't overcommit - better to under-promise and over-deliver
209
- - Review velocity trends, not just last sprint
210
- - Leave 10-20% buffer for unknowns
211
- - Pair estimation with multiple team members
212
- - Re-estimate stories that seem unclear during planning
@@ -1,163 +0,0 @@
1
- ---
2
- name: agileflow-story-writer
3
- description: Automatically formats user requirements and feature discussions into proper user stories with acceptance criteria following AgileFlow templates. Loads when user describes features, requirements, or tasks to implement.
4
- ---
5
-
6
- # AgileFlow Story Writer
7
-
8
- Automatically converts user feature descriptions and requirements into properly formatted user stories with acceptance criteria, owner assignment, priority, and estimates.
9
-
10
- ## When to Use
11
-
12
- This skill activates when:
13
- - User describes how a feature should behave or requirements
14
- - Discussing features to build or tasks to implement
15
- - Creating or reviewing user stories
16
- - Keywords: "user story", "feature", "build", "implement", "requirement"
17
-
18
- ## What This Does
19
-
20
- 1. Extracts user story components from feature discussions
21
- 2. Determines metadata (owner, priority, estimate)
22
- 3. Generates acceptance criteria in Given/When/Then format
23
- 4. Shows story for approval before writing
24
- 5. Creates story file and updates tracking
25
-
26
- ## Instructions
27
-
28
- 1. **Extract user story components**:
29
- - **Who** (user type): As a [user type]
30
- - **What** (capability): I want to [action/capability]
31
- - **Why** (benefit): So that [benefit/value]
32
-
33
- 2. **Determine metadata**:
34
- - **Owner**: Based on work type (AG-UI, AG-API, AG-CI, AG-DEVOPS)
35
- - **Priority**: P0/P1/P2/P3
36
- - **Estimate**: Fibonacci scale (1,2,3,5,8,13)
37
- - **Epic**: Link if part of larger epic
38
-
39
- 3. **Generate acceptance criteria** (2-5 criteria):
40
- - Format: **Given** [context] **When** [action] **Then** [outcome]
41
- - Cover happy path, errors, edge cases
42
-
43
- 4. **Show diff**: Display story and wait for YES/NO confirmation
44
-
45
- 5. **After YES**:
46
- - Write story file to `docs/06-stories/US-####-descriptive-name.md`
47
- - Update `docs/06-stories/README.md` index
48
- - Update `docs/09-agents/status.json` with new story (status: ready)
49
- - Create test stub at `docs/07-testing/test-cases/US-####.md`
50
-
51
- ## User Story Format
52
-
53
- ```markdown
54
- ---
55
- story_id: US-0042
56
- epic: EP-0001
57
- title: User Login Form
58
- owner: AG-UI
59
- status: ready
60
- estimate: 5
61
- priority: P1
62
- created: 2025-10-30
63
- updated: 2025-10-30
64
- dependencies: [US-0040]
65
- ---
66
-
67
- ## Description
68
-
69
- As a user,
70
- I want to log in with my email and password,
71
- So that I can access my account and personalized features.
72
-
73
- ## Acceptance Criteria
74
-
75
- ### AC1: Successful Login
76
- **Given** a registered user with valid credentials
77
- **When** user enters email and password
78
- **Then** user is redirected to dashboard with welcome message
79
-
80
- ### AC2: Invalid Credentials
81
- **Given** user enters incorrect password
82
- **When** user submits login form
83
- **Then** error message "Invalid email or password" is displayed
84
-
85
- ### AC3: Input Validation
86
- **Given** user submits empty email field
87
- **When** user clicks "Login" button
88
- **Then** validation error "Email is required" is shown
89
-
90
- ## Technical Notes
91
-
92
- - Use JWT authentication with 24h expiration
93
- - Store tokens in httpOnly cookies
94
- - Implement rate limiting (5 attempts per 15 minutes)
95
- - Hash passwords with bcrypt
96
-
97
- ## Testing Strategy
98
-
99
- - Unit tests for form validation logic
100
- - Integration tests for authentication flow
101
- - E2E test for full login journey
102
- - Test stub: docs/07-testing/test-cases/US-0042.md
103
-
104
- ## Definition of Done
105
-
106
- - [ ] Code implemented and reviewed
107
- - [ ] Tests written and passing
108
- - [ ] Documentation updated
109
- - [ ] Deployed to staging
110
- - [ ] Acceptance criteria validated
111
- ```
112
-
113
- ## Owner Determination
114
-
115
- - **AG-UI**: Frontend components, styling, user interactions, accessibility
116
- - **AG-API**: Backend services, APIs, data models, business logic
117
- - **AG-CI**: CI/CD pipelines, testing infrastructure, quality gates
118
- - **AG-DEVOPS**: Infrastructure, deployment, monitoring, automation
119
-
120
- ## Story Point Estimation
121
-
122
- - **1 point**: Trivial change (update text, fix typo, config tweak)
123
- - **2 points**: Simple feature (add form field, new button, basic validation)
124
- - **3 points**: Small feature (basic CRUD endpoint, simple component)
125
- - **5 points**: Medium feature (authentication flow, data model)
126
- - **8 points**: Large feature (payment integration, complex UI workflow)
127
- - **13 points**: Very large (consider splitting into multiple stories or epic)
128
-
129
- ## Priority Guidelines
130
-
131
- - **P0 (Critical)**: Blocking users, security issues, data loss, production outage
132
- - **P1 (High)**: Major features, important fixes, user-facing improvements
133
- - **P2 (Medium)**: Nice-to-have features, minor improvements, enhancements
134
- - **P3 (Low)**: Tech debt, cleanup, future enhancements, optimizations
135
-
136
- ## Quality Checklist
137
-
138
- Before creating story:
139
- - [ ] User story follows "As a...I want...So that..." format
140
- - [ ] At least 2 acceptance criteria with Given/When/Then
141
- - [ ] Owner is appropriate for work type
142
- - [ ] Priority reflects urgency and impact (P0-P3)
143
- - [ ] Estimate is in Fibonacci sequence (1,2,3,5,8,13)
144
- - [ ] File name matches pattern: US-####-descriptive-name.md
145
- - [ ] Technical notes capture implementation details
146
- - [ ] Definition of Done is comprehensive
147
- - [ ] Story will be added to status.json with status=ready
148
- - [ ] Test stub will be created
149
-
150
- ## Integration
151
-
152
- - **epic-planner**: Stories are part of epics
153
- - **agileflow-sprint-planner**: Stories selected for sprints
154
- - **agileflow-acceptance-criteria**: AC skill enhances AC sections
155
- - **agileflow-adr**: Reference architectural decisions in technical notes
156
-
157
- ## Notes
158
-
159
- - If user is vague, ask clarifying questions before generating story
160
- - Update story number based on existing stories in docs/06-stories/
161
- - If story is >13 points, suggest breaking into multiple stories or epic
162
- - Use "diff-first; YES/NO" pattern - show story before writing file
163
- - Create test stub to satisfy Definition of Ready
@@ -1,63 +0,0 @@
1
- # [STORY-042] Add Dark Mode Toggle to Settings
2
-
3
- **Owner**: AG-UI
4
- **Status**: TODO
5
- **Epic**: [EPIC-005] User Experience Improvements
6
- **Priority**: P2
7
- **Estimate**: 5 story points
8
-
9
- ## User Story
10
-
11
- As a user who works at night,
12
- I want to toggle dark mode in the settings,
13
- So that I can reduce eye strain and improve readability in low-light conditions.
14
-
15
- ## Acceptance Criteria
16
-
17
- ### AC1: Settings Toggle Available
18
- **Given** I am on the settings page
19
- **When** I navigate to the "Appearance" section
20
- **Then** I should see a dark mode toggle switch
21
-
22
- ### AC2: Theme Switches Immediately
23
- **Given** I am viewing the app in light mode
24
- **When** I toggle dark mode on
25
- **Then** the entire UI should switch to dark theme within 200ms
26
-
27
- ### AC3: Preference Persists
28
- **Given** I have enabled dark mode
29
- **When** I close and reopen the application
30
- **Then** dark mode should still be active
31
-
32
- ### AC4: System Preference Detection
33
- **Given** I have not set a preference
34
- **When** the app loads for the first time
35
- **Then** it should default to my system's dark mode preference
36
-
37
- ## Technical Notes
38
-
39
- - Use CSS custom properties for theme colors
40
- - Store preference in localStorage: `theme: 'light' | 'dark' | 'system'`
41
- - Listen to `prefers-color-scheme` media query for system default
42
- - Ensure all components support both themes
43
- - Add transition animations for smooth mode switching
44
-
45
- ## Testing Strategy
46
-
47
- - Test theme switching in all major browsers (Chrome, Firefox, Safari)
48
- - Verify localStorage persistence across sessions
49
- - Test system preference detection on different OS
50
- - Validate WCAG contrast ratios in dark mode
51
- - Test with keyboard navigation (accessibility)
52
-
53
- ## Definition of Done
54
-
55
- - [ ] Dark mode toggle implemented in settings UI
56
- - [ ] Theme preference stored in localStorage
57
- - [ ] All components styled for dark mode
58
- - [ ] System preference detection working
59
- - [ ] Unit tests for theme switching logic
60
- - [ ] E2E tests for toggle interaction
61
- - [ ] Documentation updated with theme implementation details
62
- - [ ] Deployed to staging and tested
63
- - [ ] Accessibility audit passed (WCAG AA)
@@ -1,44 +0,0 @@
1
- # [STORY-###] {Title}
2
-
3
- **Owner**: {AG-UI | AG-API | AG-CI | AG-DEVOPS}
4
- **Status**: TODO
5
- **Epic**: {Link to epic if applicable}
6
- **Priority**: {P0 | P1 | P2 | P3}
7
- **Estimate**: {1-13 story points}
8
-
9
- ## User Story
10
-
11
- As a {user type},
12
- I want to {action/capability},
13
- So that {benefit/value}.
14
-
15
- ## Acceptance Criteria
16
-
17
- ### AC1: {Criterion Name}
18
- **Given** {initial context/state}
19
- **When** {action/trigger}
20
- **Then** {expected outcome}
21
-
22
- ### AC2: {Another Criterion}
23
- **Given** {context}
24
- **When** {action}
25
- **Then** {outcome}
26
-
27
- ## Technical Notes
28
-
29
- - {Implementation details}
30
- - {Dependencies}
31
- - {Risks/Considerations}
32
-
33
- ## Testing Strategy
34
-
35
- - {How to test this story}
36
- - {Edge cases to verify}
37
-
38
- ## Definition of Done
39
-
40
- - [ ] Code implemented and reviewed
41
- - [ ] Tests written and passing
42
- - [ ] Documentation updated
43
- - [ ] Deployed to staging
44
- - [ ] Acceptance criteria validated