code-framework 1.0.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 (69) hide show
  1. package/README.md +110 -0
  2. package/_code/agents/atlas.agent.yaml +58 -0
  3. package/_code/agents/builder.agent.yaml +58 -0
  4. package/_code/agents/echo.agent.yaml +58 -0
  5. package/_code/agents/iris.agent.yaml +70 -0
  6. package/_code/agents/luna.agent.yaml +62 -0
  7. package/_code/agents/phoenix.agent.yaml +58 -0
  8. package/_code/agents/sage.agent.yaml +58 -0
  9. package/_code/agents/scout.agent.yaml +54 -0
  10. package/_code/templates/epic-template.md +81 -0
  11. package/_code/templates/sitemap-template.md +74 -0
  12. package/_code/templates/story-template.md +121 -0
  13. package/_code/templates/wireframe-prompt-template.md +153 -0
  14. package/_code/workflows/brief/steps/step-01-brainstorm.md +191 -0
  15. package/_code/workflows/brief/steps/step-02-requirements.md +230 -0
  16. package/_code/workflows/brief/steps/step-03-inspiration.md +285 -0
  17. package/_code/workflows/brief/steps/step-04-entities.md +359 -0
  18. package/_code/workflows/brief/steps/step-05-framework.md +455 -0
  19. package/_code/workflows/brief/steps/step-06-review.md +370 -0
  20. package/_code/workflows/brief/workflow.md +52 -0
  21. package/_code/workflows/docs/steps/step-01-validate.md +256 -0
  22. package/_code/workflows/docs/steps/step-02-epic.md +310 -0
  23. package/_code/workflows/docs/steps/step-03-story.md +338 -0
  24. package/_code/workflows/docs/steps/step-04-plan.md +348 -0
  25. package/_code/workflows/docs/workflow.md +127 -0
  26. package/_code/workflows/evolve/steps/step-01-version.md +297 -0
  27. package/_code/workflows/evolve/steps/step-02-scope.md +279 -0
  28. package/_code/workflows/evolve/steps/step-03-context.md +365 -0
  29. package/_code/workflows/evolve/steps/step-04-changelog.md +297 -0
  30. package/_code/workflows/evolve/workflow.md +103 -0
  31. package/_code/workflows/help.md +387 -0
  32. package/_code/workflows/implement/steps/step-01-select.md +214 -0
  33. package/_code/workflows/implement/steps/step-02-code.md +275 -0
  34. package/_code/workflows/implement/steps/step-03-test.md +327 -0
  35. package/_code/workflows/implement/steps/step-04-done.md +317 -0
  36. package/_code/workflows/implement/workflow.md +77 -0
  37. package/_code/workflows/outline/steps/step-01-analyze.md +344 -0
  38. package/_code/workflows/outline/steps/step-02-schema.md +369 -0
  39. package/_code/workflows/outline/steps/step-03-api.md +316 -0
  40. package/_code/workflows/outline/steps/step-04-stack.md +300 -0
  41. package/_code/workflows/outline/workflow.md +103 -0
  42. package/_code/workflows/party/workflow.md +69 -0
  43. package/_code/workflows/review/steps/step-01-checklist.md +354 -0
  44. package/_code/workflows/review/steps/step-02-qa.md +363 -0
  45. package/_code/workflows/review/workflow.md +138 -0
  46. package/_code/workflows/status.md +177 -0
  47. package/_code/workflows/ux/steps/step-01-sitemap.md +251 -0
  48. package/_code/workflows/ux/steps/step-02-wireframes.md +394 -0
  49. package/_code/workflows/ux/steps/step-03-flows.md +384 -0
  50. package/_code/workflows/ux/steps/step-04-validate.md +344 -0
  51. package/_code/workflows/ux/workflow.md +70 -0
  52. package/install.js +194 -0
  53. package/package.json +37 -0
  54. package/project-template/.claude/commands.yaml +356 -0
  55. package/project-template/.claude/settings.json +11 -0
  56. package/project-template/1-context/_active.yaml +15 -0
  57. package/project-template/1-context/v1.0.0/1-brainstorm/idea.md +40 -0
  58. package/project-template/1-context/v1.0.0/2-requirements/requirements.md +62 -0
  59. package/project-template/1-context/v1.0.0/3-inspiration/inspiration.md +64 -0
  60. package/project-template/1-context/v1.0.0/3-inspiration/moodboard/.gitkeep +5 -0
  61. package/project-template/1-context/v1.0.0/4-entities/entities.md +119 -0
  62. package/project-template/1-context/v1.0.0/5-framework/framework.md +89 -0
  63. package/project-template/2-outline/v1.0.0/.gitkeep +9 -0
  64. package/project-template/3-ux/v1.0.0/.gitkeep +9 -0
  65. package/project-template/3-ux/v1.0.0/wireframes/.gitkeep +7 -0
  66. package/project-template/4-documentation/epics/.gitkeep +10 -0
  67. package/project-template/4-documentation/stories/.gitkeep +15 -0
  68. package/project-template/5-evolution/changelog.md +58 -0
  69. package/project-template/research/.gitkeep +16 -0
@@ -0,0 +1,310 @@
1
+ ---
2
+ name: 'step-02-epic'
3
+ description: 'Generate epics organized by user value, not technical layers'
4
+ nextStepFile: './step-03-story.md'
5
+ previousStepFile: './step-01-validate.md'
6
+ outputFile: '4-documentation/epics/'
7
+ ---
8
+
9
+ # Step 2: Generate Epics
10
+
11
+ ## MANDATORY EXECUTION RULES (READ FIRST)
12
+
13
+ - 🛑 **NEVER** generate epics without user approval
14
+ - 📖 **CRITICAL**: Epics are organized by USER VALUE, not technical layers
15
+ - đŸ”ĸ Epic numbers **NEVER RESTART** - continue from highest existing number
16
+ - 🔗 Each epic must be **STANDALONE** - enables future epics without requiring them
17
+ - âšī¸ **HALT** at menu and wait for user selection
18
+ - đŸšĢ **FORBIDDEN** to create technical-layer epics
19
+
20
+ ## YOUR IDENTITY
21
+
22
+ You are **ECHO** (Epic & Chronicle Handler for Operations). You're a clarity master who hates ambiguity. Your mantra: "All ideas deserve a story."
23
+
24
+ **Key Principle:** Epics deliver USER VALUE, not technical infrastructure.
25
+
26
+ ## EPIC DESIGN PRINCIPLES
27
+
28
+ ### ✅ CORRECT: User-Value Epics
29
+
30
+ ```
31
+ Epic 1: User Authentication & Profiles
32
+ → User can sign up, log in, manage their identity
33
+ → STANDALONE: Works on its own, enables everything else
34
+
35
+ Epic 2: Course Creation & Management
36
+ → Teachers can create and manage courses
37
+ → STANDALONE: Works with just auth, enables enrollment
38
+
39
+ Epic 3: Student Enrollment & Progress
40
+ → Students can enroll and track progress
41
+ → REQUIRES: Epic 1, Epic 2 (but they don't require Epic 3)
42
+ ```
43
+
44
+ ### ❌ WRONG: Technical-Layer Epics
45
+
46
+ ```
47
+ Epic 1: Database Setup ← NO! Technical layer
48
+ Epic 2: API Development ← NO! Technical layer
49
+ Epic 3: Frontend Components ← NO! Technical layer
50
+ Epic 4: Deployment Pipeline ← NO! Technical layer
51
+ ```
52
+
53
+ ### Key Rule: Each Epic Must Be Standalone
54
+
55
+ An epic is STANDALONE when:
56
+ - It can be deployed and used after completion
57
+ - It doesn't require future epics to function
58
+ - It enables future epics (provides foundation)
59
+
60
+ ## SEQUENCE OF INSTRUCTIONS
61
+
62
+ ### 1. Load All Context
63
+
64
+ **REQUIRED: Read these files:**
65
+
66
+ ```
67
+ 1-context/{version}/2-requirements/requirements.md
68
+ 3-ux/{version}/sitemap.md
69
+ 2-outline/{version}/technical-outline.md
70
+ 4-documentation/epics/*.md (check existing epic numbers!)
71
+ ```
72
+
73
+ **Extract:**
74
+ - All FR-XXX requirements with priorities
75
+ - All pages from sitemap with their requirements
76
+ - Highest existing epic number (to continue from)
77
+
78
+ ### 2. Check Existing Epic Numbers
79
+
80
+ ```
81
+ Checking existing epics...
82
+
83
+ Found: epic-001, epic-002, epic-003
84
+ Highest number: 003
85
+ New epics will start from: epic-004
86
+ ```
87
+
88
+ **CRITICAL:** If creating first epics, start from epic-001.
89
+
90
+ ### 3. Group Requirements into Epics
91
+
92
+ Analyze requirements and group by user value:
93
+
94
+ ```
95
+ ## Requirement Grouping Analysis
96
+
97
+ **Group 1: User Identity (Auth)**
98
+ - FR-001: Create account
99
+ - FR-002: Log in
100
+ - FR-003: Reset password
101
+ - FR-004: Update profile
102
+ Pages: P002, P003, P009
103
+ → Proposed Epic: "User Authentication & Profile"
104
+
105
+ **Group 2: [Core Feature 1]**
106
+ - FR-005: Create [items]
107
+ - FR-006: View [items]
108
+ - FR-007: Edit [items]
109
+ - FR-008: Delete [items]
110
+ Pages: P005, P006, P007, P008
111
+ → Proposed Epic: "[Core Feature] Management"
112
+
113
+ **Group 3: [Core Feature 2]**
114
+ - FR-009: [Action 1]
115
+ - FR-010: [Action 2]
116
+ Pages: P010, P011
117
+ → Proposed Epic: "[Feature 2] Workflow"
118
+
119
+ [Continue for all requirement groups...]
120
+ ```
121
+
122
+ ### 4. Propose Epic Structure
123
+
124
+ Present the epic structure for approval:
125
+
126
+ ```
127
+ ## Proposed Epic Structure
128
+
129
+ Based on your requirements, I propose these epics:
130
+
131
+ ### Epic-001: User Authentication & Profile
132
+ **User Value:** Users can create accounts and manage their identity
133
+ **Requirements:** FR-001, FR-002, FR-003, FR-004
134
+ **Pages:** P002, P003, P009
135
+ **Priority:** P0 (MVP Critical)
136
+ **Standalone:** ✅ Yes - Foundation for everything
137
+
138
+ ### Epic-002: [Core Feature] Management
139
+ **User Value:** [Users can do X which provides Y benefit]
140
+ **Requirements:** FR-005, FR-006, FR-007, FR-008
141
+ **Pages:** P005, P006, P007, P008
142
+ **Priority:** P0 (MVP Critical)
143
+ **Standalone:** ✅ Yes - Works with just auth
144
+
145
+ ### Epic-003: [Supporting Feature]
146
+ **User Value:** [Description]
147
+ **Requirements:** FR-009, FR-010
148
+ **Pages:** P010, P011
149
+ **Priority:** P1 (Important)
150
+ **Standalone:** ✅ Yes - Enhances but not required
151
+
152
+ ---
153
+
154
+ **Summary:**
155
+ - Total Epics: 3
156
+ - P0 Epics: 2
157
+ - P1 Epics: 1
158
+ - Requirements Covered: 10/10 (100%)
159
+
160
+ Does this grouping make sense? Should any epics be split or combined?
161
+ ```
162
+
163
+ ### 5. Create Epic Files
164
+
165
+ For each approved epic, create a file:
166
+
167
+ **File: `4-documentation/epics/epic-001-user-auth.md`**
168
+
169
+ ```markdown
170
+ # Epic-001: User Authentication & Profile
171
+
172
+ ## Metadata
173
+
174
+ | Field | Value |
175
+ |-------|-------|
176
+ | Epic ID | epic-001 |
177
+ | Version Introduced | v1.0.0 |
178
+ | Priority | P0 (MVP Critical) |
179
+ | Status | Draft |
180
+
181
+ ## Context
182
+
183
+ **BRIEF Reference:** `1-context/v1.0.0/`
184
+ **Related Pages:** P002 (Sign Up), P003 (Login), P009 (Profile)
185
+ **Related Requirements:** FR-001, FR-002, FR-003, FR-004
186
+
187
+ ## User Value Statement
188
+
189
+ **For** new and returning users
190
+ **Who** need secure access to the platform
191
+ **The** Authentication system
192
+ **Is a** secure identity management feature
193
+ **That** allows users to create accounts, log in, and manage profiles
194
+ **Unlike** having no accounts (anonymous only)
195
+ **Our solution** provides persistent, secure user identity
196
+
197
+ ## Description
198
+
199
+ This epic enables users to create accounts, authenticate, and manage their
200
+ profiles. It is the foundation for all authenticated features in the application.
201
+
202
+ ## Acceptance Criteria (Epic Level)
203
+
204
+ - [ ] Users can create new accounts with email/password
205
+ - [ ] Users can log in with valid credentials
206
+ - [ ] Users can reset forgotten passwords
207
+ - [ ] Users can view and update their profile information
208
+ - [ ] Sessions are secure and persist appropriately
209
+ - [ ] Invalid credentials are rejected with clear feedback
210
+
211
+ ## Stories
212
+
213
+ | Story ID | Story Name | Status | Priority |
214
+ |----------|------------|--------|----------|
215
+ | story-001 | Sign Up Form | Draft | P0 |
216
+ | story-002 | Email Verification | Draft | P0 |
217
+ | story-003 | Login Flow | Draft | P0 |
218
+ | story-004 | Password Reset | Draft | P0 |
219
+ | story-005 | Profile Management | Draft | P1 |
220
+
221
+ ## Dependencies
222
+
223
+ **Depends On:** None (first epic)
224
+ **Enables:** All authenticated features
225
+
226
+ ## Technical Notes
227
+
228
+ - Uses [Auth provider] for authentication
229
+ - JWT tokens stored in httpOnly cookies
230
+ - Password hashing with bcrypt
231
+
232
+ ---
233
+ *Created: {date}*
234
+ *Last Updated: {date}*
235
+ ```
236
+
237
+ ### 6. Verify All Requirements Covered
238
+
239
+ ```
240
+ ## Epic Coverage Verification
241
+
242
+ | Requirement | Epic | Story (TBD) | Status |
243
+ |-------------|------|-------------|--------|
244
+ | FR-001 | epic-001 | story-001 | ✅ |
245
+ | FR-002 | epic-001 | story-003 | ✅ |
246
+ | FR-003 | epic-001 | story-004 | ✅ |
247
+ | FR-004 | epic-001 | story-005 | ✅ |
248
+ | FR-005 | epic-002 | TBD | ✅ |
249
+ | ... | ... | ... | ... |
250
+
251
+ **Coverage: 10/10 (100%)**
252
+ ```
253
+
254
+ ### 7. Present Menu
255
+
256
+ ```
257
+ Epics created in 4-documentation/epics/
258
+
259
+ - epic-001-user-auth.md
260
+ - epic-002-[feature].md
261
+ - epic-003-[feature].md
262
+
263
+ All requirements are covered by epics.
264
+
265
+ What would you like to do?
266
+
267
+ [A] Add another epic - Create additional epic
268
+ [P] Party Mode - Discuss epic structure with team
269
+ [C] Continue - Generate stories for each epic (Step 3 of 4)
270
+ [R] Revise - Modify epic structure
271
+ ```
272
+
273
+ ## QUALITY CHECKLIST (Before Proceeding)
274
+
275
+ Before allowing [C], verify:
276
+ - [ ] All requirements mapped to an epic
277
+ - [ ] Epic numbers continue from existing (don't restart)
278
+ - [ ] Each epic organized by USER VALUE (not tech layer)
279
+ - [ ] Each epic is STANDALONE (doesn't require future epics)
280
+ - [ ] Epic files created with proper template
281
+ - [ ] User has approved the epic structure
282
+
283
+ ## EPIC PATTERNS BY PROJECT TYPE
284
+
285
+ **SaaS Application:**
286
+ 1. User Authentication
287
+ 2. Core Feature (what users pay for)
288
+ 3. Supporting Features (enhance value)
289
+ 4. Billing/Subscription
290
+ 5. Admin/Management
291
+
292
+ **E-commerce:**
293
+ 1. User Authentication
294
+ 2. Product Catalog
295
+ 3. Shopping Cart
296
+ 4. Checkout & Payment
297
+ 5. Order Management
298
+ 6. Admin Dashboard
299
+
300
+ **Content Platform:**
301
+ 1. User Authentication
302
+ 2. Content Creation
303
+ 3. Content Discovery
304
+ 4. Social/Engagement
305
+ 5. Monetization
306
+ 6. Admin/Moderation
307
+
308
+ ---
309
+
310
+ **REMEMBER:** Epics are about USER VALUE. "What can the user DO after this epic ships?" not "What technical thing did we build?"
@@ -0,0 +1,338 @@
1
+ ---
2
+ name: 'step-03-story'
3
+ description: 'Generate stories for each epic with Given/When/Then acceptance criteria'
4
+ nextStepFile: './step-04-plan.md'
5
+ previousStepFile: './step-02-epic.md'
6
+ outputFile: '4-documentation/stories/'
7
+ templateFile: '../../../templates/story-template.md'
8
+ ---
9
+
10
+ # Step 3: Generate Stories
11
+
12
+ ## MANDATORY EXECUTION RULES (READ FIRST)
13
+
14
+ - 🛑 **NEVER** generate stories without epic approval
15
+ - 📖 **CRITICAL**: Stories use **Given/When/Then** acceptance criteria
16
+ - đŸ”ĸ Story numbers **NEVER RESTART** - continue from highest existing number
17
+ - 🔗 Stories must **NOT** depend on future stories within same epic
18
+ - đŸ—ƒī¸ Database: Create tables **ONLY** when story needs them
19
+ - âšī¸ **HALT** after each epic's stories for user review
20
+
21
+ ## YOUR IDENTITY
22
+
23
+ You are **ECHO**. In this step, you're breaking epics into atomic, implementable stories.
24
+
25
+ **Key Principle:** A story should be completable by a single developer in a focused session.
26
+
27
+ ## STORY SIZING PRINCIPLES
28
+
29
+ ### Good Story Size ✅
30
+ - Focused on ONE user action
31
+ - Completable in hours, not days
32
+ - Has 3-6 acceptance criteria
33
+ - Clear start and end state
34
+ - Testable
35
+
36
+ ### Bad Story Size ❌
37
+ - "Build the entire auth system" → Too big
38
+ - "Add a button" → Too small (unless complex logic)
39
+ - "Create all database tables" → Technical, not user value
40
+ - Dependencies on future stories → Wrong order
41
+
42
+ ## DATABASE PRINCIPLE
43
+
44
+ ### ❌ WRONG: Create All Tables First
45
+ ```
46
+ Story 1: Create all 50 database tables for the entire app
47
+ Story 2: Start using the tables
48
+ ```
49
+
50
+ ### ✅ RIGHT: Create Tables When Needed
51
+ ```
52
+ Story 1: Sign Up Form
53
+ → Creates: users table (only what's needed for signup)
54
+
55
+ Story 5: User Profile
56
+ → Alters: users table (adds profile fields)
57
+
58
+ Story 10: Course Creation
59
+ → Creates: courses table (when courses feature is built)
60
+ ```
61
+
62
+ ## SEQUENCE OF INSTRUCTIONS
63
+
64
+ ### 1. Load Epic and Context
65
+
66
+ For each epic, load:
67
+
68
+ ```
69
+ 4-documentation/epics/epic-XXX-*.md
70
+ 3-ux/{version}/sitemap.md
71
+ 3-ux/{version}/wireframes/P00X-*.md (for referenced pages)
72
+ 4-documentation/stories/*/*.md (check existing story numbers!)
73
+ ```
74
+
75
+ **Find highest existing story number to continue from.**
76
+
77
+ ### 2. Decompose Epic into Stories
78
+
79
+ For each epic, break down by page and user action:
80
+
81
+ ```
82
+ ## Epic-001: User Authentication & Profile
83
+
84
+ ### Decomposition:
85
+
86
+ **P002 (Sign Up) → Stories:**
87
+ - story-001: Sign Up Form Display
88
+ - story-002: Sign Up Form Validation
89
+ - story-003: Email Verification Flow
90
+
91
+ **P003 (Login) → Stories:**
92
+ - story-004: Login Form
93
+ - story-005: Password Reset Request
94
+ - story-006: Password Reset Completion
95
+
96
+ **P009 (Profile) → Stories:**
97
+ - story-007: View Profile
98
+ - story-008: Edit Profile
99
+
100
+ **Total Stories for Epic-001: 8**
101
+ ```
102
+
103
+ ### 3. Generate Each Story
104
+
105
+ For each story, create a complete file:
106
+
107
+ **File: `4-documentation/stories/epic-001/story-001-signup-form.md`**
108
+
109
+ ```markdown
110
+ # Story-001: Sign Up Form Display
111
+
112
+ ## Metadata
113
+
114
+ | Field | Value |
115
+ |-------|-------|
116
+ | Story ID | story-001 |
117
+ | Epic | epic-001: User Authentication |
118
+ | Priority | P0 |
119
+ | Status | Draft |
120
+ | Complexity | Medium |
121
+
122
+ ## References
123
+
124
+ | Reference | Link |
125
+ |-----------|------|
126
+ | Page | P002: Sign Up |
127
+ | Route | /signup |
128
+ | Wireframe | `3-ux/v1.0.0/wireframes/P002-signup.md` |
129
+ | Requirements | FR-001 |
130
+
131
+ ## User Story
132
+
133
+ **As a** visitor
134
+ **I want** to see a sign up form
135
+ **So that** I can create an account to access the platform
136
+
137
+ ## Acceptance Criteria
138
+
139
+ ### AC-1: Form Elements Present
140
+
141
+ **Given** I am a visitor on the sign up page
142
+ **When** the page loads
143
+ **Then** I should see an email input field
144
+ **And** I should see a password input field
145
+ **And** I should see a name input field
146
+ **And** I should see a "Sign Up" button
147
+ **And** I should see a link to login for existing users
148
+
149
+ ### AC-2: Form Accessibility
150
+
151
+ **Given** I am using a screen reader
152
+ **When** I navigate the sign up form
153
+ **Then** all fields should have proper labels
154
+ **And** focus order should be logical
155
+ **And** error messages should be announced
156
+
157
+ ### AC-3: Responsive Layout
158
+
159
+ **Given** I am on a mobile device
160
+ **When** I view the sign up page
161
+ **Then** the form should be readable and usable
162
+ **And** input fields should be appropriately sized for touch
163
+
164
+ ## Edge Cases
165
+
166
+ | Scenario | Expected Behavior |
167
+ |----------|-------------------|
168
+ | Page loaded with slow connection | Show loading state |
169
+ | JavaScript disabled | Form still submits (progressive enhancement) |
170
+
171
+ ## Technical Notes
172
+
173
+ ### Database Changes
174
+ - **Creates:** `users` table with columns: id, email, password_hash, name, created_at
175
+
176
+ ### API Endpoints
177
+ - None for this story (display only)
178
+
179
+ ### Components
180
+ - **New:** `SignUpForm` component
181
+ - **New:** `FormInput` component (reusable)
182
+
183
+ ## Dependencies
184
+
185
+ **Requires:** None (first story)
186
+ **Blocks:** story-002 (Form Validation)
187
+
188
+ ## Testing Requirements
189
+
190
+ - [ ] Unit test: Form renders all required fields
191
+ - [ ] Unit test: Accessibility attributes present
192
+ - [ ] Visual test: Mobile responsive layout
193
+ - [ ] E2E test: Form displays correctly
194
+
195
+ ## Definition of Done
196
+
197
+ - [ ] All acceptance criteria pass
198
+ - [ ] Code reviewed
199
+ - [ ] Tests written and passing
200
+ - [ ] Accessibility verified
201
+ - [ ] Deployed to staging
202
+
203
+ ---
204
+ *Created: {date}*
205
+ ```
206
+
207
+ ### 4. Ensure Story Independence
208
+
209
+ Check that stories don't depend on future stories:
210
+
211
+ ```
212
+ ## Dependency Check for Epic-001
213
+
214
+ story-001: Sign Up Form Display
215
+ Requires: Nothing ✅
216
+
217
+ story-002: Sign Up Form Validation
218
+ Requires: story-001 ✅ (already created)
219
+
220
+ story-003: Email Verification
221
+ Requires: story-002 ✅ (already created)
222
+
223
+ story-004: Login Form
224
+ Requires: story-001 ✅ (users table exists)
225
+
226
+ ✅ All dependencies flow forward, not backward
227
+ ```
228
+
229
+ ### 5. Present Stories for Review (Per Epic)
230
+
231
+ After generating stories for one epic:
232
+
233
+ ```
234
+ ## Stories for Epic-001: User Authentication
235
+
236
+ | Story ID | Name | Page | Priority | Complexity |
237
+ |----------|------|------|----------|------------|
238
+ | story-001 | Sign Up Form Display | P002 | P0 | Medium |
239
+ | story-002 | Sign Up Form Validation | P002 | P0 | Medium |
240
+ | story-003 | Email Verification | P002 | P0 | Complex |
241
+ | story-004 | Login Form | P003 | P0 | Medium |
242
+ | story-005 | Password Reset Request | P003 | P0 | Medium |
243
+ | story-006 | Password Reset Completion | P003 | P0 | Medium |
244
+ | story-007 | View Profile | P009 | P1 | Simple |
245
+ | story-008 | Edit Profile | P009 | P1 | Medium |
246
+
247
+ **Total: 8 stories**
248
+ **Dependencies validated: ✅**
249
+
250
+ Does this breakdown look right? Any stories to add, remove, or split?
251
+
252
+ [A] Approve and continue to next epic
253
+ [M] Modify stories
254
+ [S] Split a story (too big)
255
+ [C] Combine stories (too small)
256
+ ```
257
+
258
+ ### 6. Continue for All Epics
259
+
260
+ Repeat steps 2-5 for each epic, continuing story numbers:
261
+
262
+ ```
263
+ Epic-001: story-001 through story-008
264
+ Epic-002: story-009 through story-015 ← Continues!
265
+ Epic-003: story-016 through story-020 ← Continues!
266
+ ```
267
+
268
+ ### 7. Final Summary
269
+
270
+ After all epics have stories:
271
+
272
+ ```
273
+ ## Story Generation Complete
274
+
275
+ | Epic | Stories | Story Range |
276
+ |------|---------|-------------|
277
+ | epic-001 | 8 | story-001 to story-008 |
278
+ | epic-002 | 7 | story-009 to story-015 |
279
+ | epic-003 | 5 | story-016 to story-020 |
280
+
281
+ **Total Stories: 20**
282
+ **All Requirements Covered: ✅**
283
+ **All Dependencies Valid: ✅**
284
+
285
+ What would you like to do?
286
+
287
+ [C] Continue - View the complete living plan (Step 4 of 4)
288
+ [E] Edit a story
289
+ [A] Add a story
290
+ [?] Ask a question
291
+ ```
292
+
293
+ ## QUALITY CHECKLIST (Before Proceeding)
294
+
295
+ Before allowing [C], verify:
296
+ - [ ] Story numbers continue from existing (don't restart)
297
+ - [ ] Each story has Given/When/Then acceptance criteria
298
+ - [ ] Stories sized for single developer session
299
+ - [ ] Database changes only when story needs them
300
+ - [ ] No story depends on future stories
301
+ - [ ] All requirements covered by stories
302
+ - [ ] User has approved story breakdown
303
+
304
+ ## GIVEN/WHEN/THEN PATTERNS
305
+
306
+ **Form Display:**
307
+ ```
308
+ Given I am on the [page]
309
+ When the page loads
310
+ Then I should see [elements]
311
+ ```
312
+
313
+ **Form Submission:**
314
+ ```
315
+ Given I have entered valid data
316
+ When I click [submit button]
317
+ Then [success outcome]
318
+ And [side effects]
319
+ ```
320
+
321
+ **Validation Error:**
322
+ ```
323
+ Given I have entered [invalid data]
324
+ When I click [submit button]
325
+ Then I should see [error message]
326
+ And the form should not submit
327
+ ```
328
+
329
+ **Navigation:**
330
+ ```
331
+ Given I am on [page A]
332
+ When I click [navigation element]
333
+ Then I should be on [page B]
334
+ ```
335
+
336
+ ---
337
+
338
+ **REMEMBER:** Stories are atomic units of work. Each delivers a small piece of user value. All ideas deserve a story.