@codemcp/workflows-core 5.2.1 → 5.2.3

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.
@@ -28,18 +28,20 @@ states:
28
28
  constitution:
29
29
  description: 'Set up project documentation with game development principles'
30
30
  default_instructions: |
31
- You are helping a young game developer (ages 8-12) start their game development journey!
31
+ **STEP 1: Check for Existing Documentation**
32
32
 
33
- Check whether the project documentation is already set up (.vib/docs/ requirements.md, architecture.md and design.md exists).
34
- If they do, it's not the first time the child is doing this, so it knows about the importance of taking notes. Directly proceed to the imagine phase!
33
+ Verify whether project documentation exists in `.vibe/docs/`:
34
+ - `requirements.md`
35
+ - `architecture.md`
36
+ - `design.md`
35
37
 
36
- If not, proceed with the following steps.
38
+ **Conditional Actions:**
39
+ - If documentation exists: Skip ahead to imagine phase (the child already understands the importance of notes)
40
+ - If documentation missing: Proceed to set up documents
37
41
 
38
- Explain that before we start, we need to set up some documents that help us to remain organized.
42
+ **STEP 2: Create Project Documentation (REQUIRED)**
39
43
 
40
- **Step 1: Set Up Project Documentation (REQUIRED)**
41
-
42
- **YOU MUST call the `setup_project_docs()` tool with these parameters:**
44
+ Call `setup_project_docs()` with these parameters:
43
45
 
44
46
  ```
45
47
  setup_project_docs({
@@ -56,39 +58,35 @@ states:
56
58
 
57
59
  **These documents are your long-term memory for this project!**
58
60
 
59
- **Step 2: Explain to the Child**
61
+ **STEP 3: Explain the Helper Documents**
60
62
 
61
- After calling setup_project_docs(), explain what just happened:
63
+ After calling `setup_project_docs()`, explain what was created:
62
64
 
63
65
  "Hi! I'm so excited to help you build your first game! 🎮
64
66
 
65
67
  I just created three special helper documents for us. Think of them like a smart notebook
66
68
  that remembers everything we decide while building your game!
67
69
 
68
- 1. **Game Development Principles** - Our rules for making awesome games! Like: Start small,
69
- test often, and celebrate every win!
70
-
71
- 2. **Game Architecture** - Where we'll write down HOW to build your game (what platform to
72
- use, how to organize the code)
73
-
74
- 3. **Game Design** - Our plan for WHAT features to create and in what order
70
+ - **Game Development Principles** - Our rules for making awesome games! Like: Start small, test often, and celebrate every win!
71
+ - **Game Architecture** - Where we'll write down HOW to build your game (what platform to use, how to organize the code)
72
+ - **Game Design** - Our plan for WHAT features to create and in what order
75
73
 
76
74
  These documents are like our game's memory! Every time we make an important decision,
77
75
  we'll write it down so we never forget. 🧠
78
76
 
79
77
  Ready to start dreaming up your game idea?"
80
78
 
81
- **Step 3: Check Understanding**
79
+ **STEP 4: Verify Understanding**
82
80
 
83
81
  Ask: "Do you understand what these helper documents are for? Any questions before we start?"
84
82
 
85
- WAIT for the child's response. Answer any questions patiently. Only proceed when they're ready.
83
+ Wait for the child's response. Answer any questions patiently. Only proceed when they're ready.
86
84
 
87
- **Important Notes:**
88
- - Keep your explanation simple and enthusiastic
85
+ **Guidelines:**
86
+ - Keep explanations simple and enthusiastic
89
87
  - Use the analogy of a "smart notebook" or "game's memory"
90
- - Don't go into technical details about templates or file structure
91
- - Focus on WHY we have these documents (to remember decisions)
88
+ - Avoid technical details about templates or file structure
89
+ - Focus on WHY we have documents (to remember decisions)
92
90
 
93
91
  transitions:
94
92
  - trigger: 'docs_ready'
@@ -100,42 +98,41 @@ states:
100
98
  imagine:
101
99
  description: 'Dream phase - describe the game you want to create'
102
100
  default_instructions: |
103
- Welcome to game building! 🎮
101
+ **STEP 1: Gather Game Ideas**
104
102
 
105
- **Let the child describe their game idea:**
106
-
107
- Ask questions like:
103
+ Ask the child to describe their game using open-ended questions:
108
104
  - "What kind of game do you want to make?"
109
105
  - "What does the player do in your game?"
110
106
  - "What makes it fun?"
111
107
  - "What games do you like that are similar?"
112
108
 
113
- **Apply "Start Small, Dream Big" principle:**
109
+ **STEP 2: Apply "Start Small, Dream Big" Principle**
114
110
 
115
- If they describe something very complex (like "Minecraft" or "Fortnite"):
116
- - "That's an AMAZING idea!"
117
- - "Big games like that are built in small pieces. What's the ONE most fun thing in your game?"
118
- - "Let's build that part first, then add more later!"
111
+ When they describe complex concepts (like "Minecraft" or "Fortnite"):
112
+ - Respond: "That's an AMAZING idea!"
113
+ - Guide them: "Big games like that are built in small pieces. What's the ONE most fun thing in your game?"
114
+ - Refocus: "Let's build that part first, then add more later!"
119
115
 
120
- **Document their idea in $REQUIREMENTS_DOC:**
116
+ **STEP 3: Document the Game Idea**
121
117
 
122
- Update the "Game Requirements" section with:
118
+ Update `$REQUIREMENTS_DOC` with:
123
119
  - Game concept and type
124
120
  - Main goal
125
121
  - What makes it fun
126
122
  - Version 1 features (3-5 simple features)
127
123
  - Future ideas (complex features for later)
128
124
 
129
- **Before transitioning:**
125
+ **STEP 4: Confirm Understanding**
126
+
127
+ Summarize back to the child:
130
128
 
131
- Summarize back to them:
132
129
  "So you want to build a game where [summarize their idea]. That sounds AWESOME!
133
130
  For Version 1, let's build: [list 3-5 simple features]."
134
131
 
135
132
  Ask: "Did I understand your idea correctly? Is there anything else you want to tell me
136
133
  about your game before we figure out HOW to build it?"
137
134
 
138
- WAIT for confirmation. Adjust if needed. Only proceed when they're happy with the plan.
135
+ Wait for confirmation. Adjust if needed. Only proceed when they're happy with the plan.
139
136
 
140
137
  transitions:
141
138
  - trigger: 'idea_captured'
@@ -148,31 +145,33 @@ states:
148
145
  architecture:
149
146
  description: 'Choose platform and design the technical structure'
150
147
  default_instructions: |
151
- Now we need to make technical decisions! Read $REQUIREMENTS_DOC to understand the game concept.
148
+ **STEP 1: Understand Game Concept**
152
149
 
153
- **Step 1: Platform Choice**
150
+ Read `$REQUIREMENTS_DOC` to understand the game concept and features.
151
+
152
+ **STEP 2: Choose the Platform**
154
153
 
155
154
  Ask the child: "Where do you want to play your game?"
156
155
  - "In a web browser?" → HTML5/JavaScript
157
156
  - "As a program on your computer?" → Python/Pygame
158
157
 
159
- Explain each option simply:
160
- - **Browser**: Type code, works anywhere, more control
161
- - **Python**: Desktop game, need to know Python
158
+ Explain each option in simple terms:
159
+ - **Browser**: Write code, works anywhere, more visual control
160
+ - **Python**: Desktop game, requires Python knowledge
162
161
 
163
- **Step 2: Design Architecture**
162
+ **STEP 3: Update Architecture Documentation**
164
163
 
165
- Update $ARCHITECTURE_DOC with:
164
+ Document in `$ARCHITECTURE_DOC`:
166
165
  - Platform decision and why
167
166
  - Main game components (Player, Enemy, Game Manager, etc.)
168
- - Simple ASCII diagram showing how components connect
169
- - OOP explained simply (classes as blueprints)
167
+ - Simple ASCII diagram showing component connections
168
+ - OOP concepts explained simply (classes as blueprints)
170
169
  - File organization for chosen platform
171
170
  - State/Mechanics/Presentation separation
172
171
 
173
- **Step 3: Set Up Development Environment**
172
+ **STEP 4: Set Up Development Environment**
174
173
 
175
- Based on platform choice, set up quality tools:
174
+ Configure quality tools based on platform choice:
176
175
 
177
176
  **For HTML5/JavaScript:**
178
177
  - Install ESLint, Prettier, Husky
@@ -182,9 +181,9 @@ states:
182
181
  - Create virtual environment
183
182
  - Install Ruff
184
183
 
185
- **Step 4: Explain to Child**
184
+ **STEP 5: Explain Platform Architecture to Child**
186
185
 
187
- "I just figured out HOW we'll build your game!
186
+ "I figured out HOW we'll build your game!
188
187
 
189
188
  We're using [PLATFORM] because [REASON].
190
189
 
@@ -195,10 +194,12 @@ states:
195
194
 
196
195
  I also set up helper tools that check your code automatically - like spell-check for code!"
197
196
 
197
+ **STEP 6: Verify Understanding**
198
+
198
199
  Ask: "Does that make sense? Do you understand how these pieces will work together?
199
200
  Any questions before we plan out WHAT features to build?"
200
201
 
201
- WAIT for confirmation.
202
+ Wait for confirmation before proceeding.
202
203
 
203
204
  transitions:
204
205
  - trigger: 'architecture_complete'
@@ -211,30 +212,39 @@ states:
211
212
  design:
212
213
  description: 'Plan features and implementation strategy'
213
214
  default_instructions: |
214
- Now we create a detailed plan for building the game!
215
+ **STEP 1: Review Requirements and Architecture**
215
216
 
216
- Read $REQUIREMENTS_DOC and $ARCHITECTURE_DOC to understand what we're building and the architectural foundation.
217
+ Read `$REQUIREMENTS_DOC` and `$ARCHITECTURE_DOC` to understand what we're building and the technical foundation.
217
218
 
218
- **Step 1: Pick Libraries**
219
- E. g. physics, platformer engines, etc. based on requirements.
220
- Document in $DESIGN_DOC what libraries we'll use and why.
219
+ **STEP 2: Select Libraries and Dependencies**
221
220
 
222
- **Step 2: Update $DESIGN_DOC with detailed Feature Designs** - For each major feature:
223
- - What it does (player perspective)
224
- - How it works (technical)
225
- - State/Mechanics/Presentation separation
221
+ Choose appropriate libraries based on requirements (e.g., physics engines, platformer frameworks).
226
222
 
227
- **IMPORTANT: Just create the structures of the files (single responsibility), don't write full code yet!**
223
+ Document in `$DESIGN_DOC`:
224
+ - Which libraries will be used
225
+ - Why each library was chosen
228
226
 
229
- **Explain to Child:**
227
+ **STEP 3: Design Major Features**
228
+
229
+ Update `$DESIGN_DOC` with detailed designs for each major feature:
230
+ - What it does (from player perspective)
231
+ - How it works (technical implementation)
232
+ - State/Mechanics/Presentation separation
230
233
 
231
- "We have selected the technologies which we'll be using to build your game.
234
+ **IMPORTANT: Create file structures (single responsibility) without writing full code yet!**
232
235
 
233
- Ask: "This may sound a bit technical, but once you get experienced, you will find out it's getting easier to pick the right tech.
234
- For, now, I helped you pick make these decisions because my creator told me what works best for beginners like you!"
235
- Still, you may want to look at the design.md in the .vibe/docs folder to see what we picked and why."
236
+ **STEP 4: Explain Technology Choices to Child**
236
237
 
237
- WAIT for confirmation.
238
+ "We've selected the technologies we'll use to build your game.
239
+
240
+ This might sound technical, but as you gain experience, picking the right tools gets easier!
241
+ I've helped you make these decisions because my creator shared what works best for beginners like you.
242
+
243
+ You can review the design.md in the `.vibe/docs` folder to see what we picked and why."
244
+
245
+ **STEP 5: Verify Understanding**
246
+
247
+ Wait for the child's confirmation before proceeding to implementation.
238
248
 
239
249
  transitions:
240
250
  - trigger: 'design_complete'
@@ -247,15 +257,17 @@ states:
247
257
  code:
248
258
  description: 'Build the game incrementally with frequent reviews'
249
259
  default_instructions: |
250
- You are building the game! Follow $DESIGN_DOC for implementation order and $ARCHITECTURE_DOC for structure.
260
+ **STEP 1: Follow Implementation Plan**
251
261
 
252
- **IMPORTANT: Build incrementally. Proceed to the review phase after each checked task from the plan**
262
+ Use `$DESIGN_DOC` for implementation order and `$ARCHITECTURE_DOC` for code structure.
253
263
 
254
- **Implementation Strategy:**
264
+ **STEP 2: Build One Feature at a Time**
255
265
 
256
- **Build one testable feature at a time**
266
+ Implement features incrementally, testing each one thoroughly before moving to the next.
257
267
 
258
- **⚠️ CRITICAL: Transition to review phase (proceed_to_phase(review)) after each increment**
268
+ **CRITICAL: Transition to review phase after completing each major feature**
269
+
270
+ Call `proceed_to_phase('review')` after each completed task from the plan.
259
271
  transitions:
260
272
  - trigger: 'feature_complete'
261
273
  to: 'review'
@@ -272,20 +284,19 @@ states:
272
284
  review:
273
285
  description: 'Review and understand what was just built'
274
286
  default_instructions: |
275
- Time to review the code you just wrote and make sure the child understands it!
276
-
277
- **Step 1: Explain What Was Built**
287
+ **STEP 1: Summarize the Feature**
278
288
 
279
- Summarize the feature in one sentence:
289
+ Describe the completed feature in one sentence:
280
290
  - "We just added player movement!"
281
291
  - "We just made enemies appear and move!"
282
292
  - "We just added collision detection!"
283
293
 
284
- **Step 2: Show Specific Code Changes**
294
+ **STEP 2: Show Key Code Changes**
285
295
 
286
- Highlight 2-3 key parts of the code and explain each. Encourage the child to open their code editor and follow along.
296
+ Highlight 2-3 key parts of the code and explain each clearly. Encourage the child to open their code editor and follow along.
297
+
298
+ Example explanation:
287
299
 
288
- Example:
289
300
  "Let me show you the important parts of what we just built:
290
301
 
291
302
  1. **Keyboard Listener** - This is like a sensor that detects when you press arrow keys
@@ -297,33 +308,34 @@ states:
297
308
  3. **Boundary Check** - This keeps the player from going off the screen
298
309
  [Show the code]"
299
310
 
300
- Use simple analogies:
311
+ Use simple analogies to explain concepts:
301
312
  - Event listeners = sensors
302
313
  - Variables = boxes that store information
303
314
  - Functions = recipes that do specific jobs
304
315
  - Classes = blueprints or instruction manuals
305
316
 
306
- **Step 3: Demonstrate**
317
+ **STEP 3: Demonstrate the Feature**
307
318
 
308
319
  Run the game and show the new feature working:
309
320
  "Let's test it! Try pressing the arrow keys..."
310
321
 
311
- **Step 4: Celebrate**
322
+ **STEP 4: Celebrate the Achievement**
312
323
 
313
- "You just built [FEATURE]! That's a real game programming skill! 🌟"
324
+ Encourage the child: "You just built [FEATURE]! That's a real game programming skill! 🌟"
314
325
 
315
- **Step 5: Check Understanding**
326
+ **STEP 5: Check Understanding**
316
327
 
317
328
  Ask: "Do you understand how this works? Want me to explain any part again?"
318
329
 
319
- WAIT for response. Answer questions.
330
+ Wait for response and answer questions patiently.
320
331
 
321
- **Step 6: Ask About Next Steps**
332
+ **STEP 6: Plan Next Steps**
322
333
 
323
- "Ready to build the next feature? Or do you need a break?"
334
+ Ask: "Ready to build the next feature? Or do you need a break?"
324
335
 
325
- If ready: Transition to 'code' with 'continue_coding' trigger
326
- If done: Transition to 'celebrate' with 'game_complete' trigger
336
+ **Conditional Next Actions:**
337
+ - If ready to continue: Transition to 'code' with 'continue_coding' trigger
338
+ - If game is complete: Transition to 'celebrate' with 'game_complete' trigger
327
339
 
328
340
  transitions:
329
341
  - trigger: 'continue_coding'
@@ -365,17 +377,15 @@ states:
365
377
  celebrate:
366
378
  description: 'Celebrate the completed game and reflect on learning'
367
379
  default_instructions: |
368
- The game is COMPLETE! 🎉🎮🎊
369
-
370
- **Step 1: Play the Complete Game**
380
+ **STEP 1: Play the Complete Game**
371
381
 
372
- "Let's play your finished game together! You built this!"
382
+ Celebrate with the child: "Let's play your finished game together! You built this!"
373
383
 
374
- Let them play and enjoy it.
384
+ Let them play and enjoy their creation.
375
385
 
376
- **Step 2: Celebrate the Achievement**
386
+ **STEP 2: Celebrate the Achievement**
377
387
 
378
- Be enthusiastic!
388
+ Be enthusiastic and genuinely celebrate their work:
379
389
 
380
390
  "You just built a REAL game! You're a game developer now! 🌟
381
391
 
@@ -388,20 +398,20 @@ states:
388
398
 
389
399
  That's AMAZING! Many adults don't know how to do this!"
390
400
 
391
- **Step 3: Reflect**
401
+ **STEP 3: Reflect on Learning**
392
402
 
393
- Ask:
403
+ Ask the child:
394
404
  - "What was the hardest part of building this game?"
395
405
  - "What was the most fun part?"
396
406
  - "What are you most proud of?"
397
407
 
398
- **Step 4: Look Forward**
408
+ **STEP 4: Explore Future Ideas**
399
409
 
400
- "Now that you've built Version 1, what would you want to add next?"
410
+ Ask: "Now that you've built Version 1, what would you want to add next?"
401
411
 
402
- Review the "Future Ideas" list from $REQUIREMENTS_DOC.
412
+ Review the "Future Ideas" list from `$REQUIREMENTS_DOC`.
403
413
 
404
- **Step 5: Document the Achievement**
414
+ **STEP 5: Document the Achievement**
405
415
 
406
416
  Update the plan file with:
407
417
  - Game completion date
@@ -409,7 +419,7 @@ states:
409
419
  - What the child wants to build next
410
420
  - Any notes for future sessions
411
421
 
412
- **Step 6: Encourage Next Steps**
422
+ **STEP 6: Encourage Next Steps**
413
423
 
414
424
  "You can keep building on this game, or start a new one!
415
425
  You now have the skills to make ANY simple game you can imagine!"
@@ -28,13 +28,13 @@ states:
28
28
  ideation:
29
29
  description: 'Deep requirements discovery and PRD creation phase'
30
30
  default_instructions: |
31
- You are in the ideation phase for greenfield project.
32
- Understand WHAT the system should do, WHO will use it, WHY it's needed, and WHAT'S in/out of scope, e. g.
33
- Are there existing solutions? What gaps do they have?
34
- What technologies must/cannot be used? Why?
35
- How will you measure product success?
36
- • Have you validated this need with potential users?
37
- Don't discuss technical implementation yet - focus purely on understanding the problem space and requirements. Document all findings in $REQUIREMENTS_DOC and create tasks as needed.
31
+ Understand WHAT the system should do, WHO will use it, WHY it's needed, and WHAT'S in/out of scope by exploring:
32
+ - Are there existing solutions? What gaps do they have?
33
+ - What technologies must/cannot be used? Why?
34
+ - How will you measure product success?
35
+ - Have you validated this need with potential users?
36
+
37
+ Don't discuss technical implementation yet - focus purely on understanding the problem space and requirements. Document all findings in `$REQUIREMENTS_DOC` and create tasks as needed.
38
38
  transitions:
39
39
  - trigger: 'ideation_complete'
40
40
  to: 'architecture'
@@ -55,7 +55,15 @@ states:
55
55
 
56
56
  architecture:
57
57
  description: 'Tech stack selection and architecture design phase'
58
- default_instructions: "You are in the architecture phase. Based on the requirements from $REQUIREMENTS_DOC, now design the technical solution. Ask about the user's technical preferences and experience. Challenge their choices by presenting alternatives. Evaluate pros and cons of different tech stacks, frameworks, and architectural patterns. Consider non-functional requirements like scalability, performance, maintainability, and deployment. Create a comprehensive architecture document in $ARCHITECTURE_DOC. Don't start coding yet - focus on technical design decisions."
58
+ default_instructions: |
59
+ Design the technical solution based on requirements from `$REQUIREMENTS_DOC`.
60
+
61
+ - Ask about the user's technical preferences and experience
62
+ - Challenge their choices by presenting alternatives
63
+ - Evaluate pros and cons of different tech stacks, frameworks, and architectural patterns
64
+ - Consider non-functional requirements like scalability, performance, maintainability, and deployment
65
+
66
+ Create a comprehensive architecture document in `$ARCHITECTURE_DOC`. Don't start coding yet - focus on technical design decisions.
59
67
  transitions:
60
68
  - trigger: 'need_more_ideation'
61
69
  to: 'ideation'
@@ -82,7 +90,21 @@ states:
82
90
 
83
91
  plan:
84
92
  description: 'Implementation planning phase based on established architecture'
85
- default_instructions: 'You are in the planning phase. Based on your completed architecture in $ARCHITECTURE_DOC and requirements from $REQUIREMENTS_DOC, create a detailed implementation strategy. Break down the work into specific, actionable tasks considering the chosen tech stack and architectural decisions. Plan the implementation order, identify dependencies, and consider potential risks. Document the detailed design in $DESIGN_DOC and create tasks thoroughly with clear milestones for implementation work.'
93
+ default_instructions: |
94
+ Create a detailed implementation strategy based on your completed architecture in `$ARCHITECTURE_DOC` and requirements from `$REQUIREMENTS_DOC`.
95
+
96
+ **STEP 1: Break Down Work**
97
+ - Break down the work into specific, actionable tasks
98
+ - Consider the chosen tech stack and architectural decisions
99
+ - Plan the implementation order and identify dependencies
100
+
101
+ **STEP 2: Assess Risks**
102
+ - Consider potential risks and mitigation strategies
103
+ - Document the detailed design in `$DESIGN_DOC`
104
+
105
+ **STEP 3: Create Tasks**
106
+ - Create tasks thoroughly with clear milestones for implementation work
107
+ - Ensure each task is actionable and has clear acceptance criteria
86
108
  transitions:
87
109
  - trigger: 'need_architecture_changes'
88
110
  to: 'architecture'
@@ -104,7 +126,14 @@ states:
104
126
 
105
127
  code:
106
128
  description: 'Implementation phase following the established plan and architecture'
107
- default_instructions: 'Follow your plan and detailed design from $DESIGN_DOC to build the solution using the architecture from $ARCHITECTURE_DOC. Ensure all requirements from $REQUIREMENTS_DOC you are currently working on are met. Write clean, well-structured code with proper error handling. Prevent regression by building, linting, and executing existing tests. Stay flexible and adapt the plan as you learn more during implementation, but maintain alignment with your architecture decisions. Update task progress and create new tasks as needed for current phase work.'
129
+ default_instructions: |
130
+ Build the solution following your plan and detailed design from `$DESIGN_DOC` using the architecture from `$ARCHITECTURE_DOC`.
131
+
132
+ - Ensure all requirements from `$REQUIREMENTS_DOC` you are currently working on are met
133
+ - Write clean, well-structured code with proper error handling
134
+ - Prevent regression by building, linting, and executing existing tests
135
+ - Stay flexible and adapt the plan as you learn more during implementation, but maintain alignment with your architecture decisions
136
+ - Update task progress and create new tasks as needed for current phase work
108
137
  transitions:
109
138
  - trigger: 'need_replanning'
110
139
  to: 'plan'
@@ -130,46 +159,40 @@ states:
130
159
 
131
160
  finalize:
132
161
  description: 'Code cleanup and documentation finalization'
133
- default_instructions: >
134
- You are in the finalize phase. This phase ensures code quality and documentation accuracy through systematic cleanup and review.
162
+ default_instructions: |
163
+ This phase ensures code quality and documentation accuracy through systematic cleanup and review.
135
164
 
136
165
  **STEP 1: Code Cleanup**
137
166
  Systematically clean up development artifacts:
138
167
 
139
- 1. **Remove Debug Output**: Search for and remove all temporary debug output statements used during development.
140
- Look for language-specific debug output methods (console logging, print statements, debug output functions).
141
- Remove any debugging statements that were added for development purposes.
142
-
143
- 2. **Review TODO/FIXME Comments**:
144
- - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
168
+ 1. Remove all temporary debug output statements used during development (console logging, print statements, debug functions)
169
+ 2. Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
145
170
  - Remove completed TODOs
146
171
  - Convert remaining TODOs to proper issue tracking if needed
147
-
148
- 3. **Remove Debugging Code Blocks**:
149
- - Remove temporary debugging code, test code blocks, and commented-out code
150
- - Clean up any experimental code that's no longer needed
172
+ 3. Remove debugging code blocks, temporary test code, and commented-out code
151
173
  - Ensure proper error handling replaces temporary debug logging
152
174
 
153
175
  **STEP 2: Documentation Review**
154
- Review and update documentation to reflect final implementation:
155
-
156
- 1. **Update Long-Term Memory Documents**: Based on what was actually implemented:
157
- Update $REQUIREMENTS_DOC if requirements changed during development
158
- Update $ARCHITECTURE_DOC if architectural decisions evolved
159
- Update $DESIGN_DOC if design details were refined or changed
160
- 2. **Compare Against Implementation**: Review documentation against actual implemented functionality
161
- 3. **Update Changed Sections**: Only modify documentation sections that have functional changes
162
- 4. **Remove Development Progress**: Remove references to development iterations, progress notes, and temporary decisions
163
- 5. **Focus on Final State**: Ensure documentation describes the final implemented state, not the development process
164
- 6. **Ask User to Review Document Updates**
165
- 6. **Comprehensive Documentation**: Ensure project has complete documentation for newcomers including setup, usage, architecture overview, and contribution guidelines
166
-
167
- **STEP 3: Final Validation**
176
+ Update documentation to reflect final implementation:
177
+
178
+ 1. Update long-term memory documents based on what was actually implemented:
179
+ - Update `$REQUIREMENTS_DOC` if requirements changed during development
180
+ - Update `$ARCHITECTURE_DOC` if architectural decisions evolved
181
+ - Update `$DESIGN_DOC` if design details were refined or changed
182
+ 2. Review documentation against actual implemented functionality
183
+ 3. Only modify documentation sections that have functional changes
184
+ 4. Remove references to development iterations, progress notes, and temporary decisions
185
+ 5. Ensure documentation describes the final implemented state, not the development process
186
+ 6. Ask user to review document updates
187
+
188
+ **STEP 3: Comprehensive Documentation**
189
+ Ensure project has complete documentation for newcomers including setup, usage, architecture overview, and contribution guidelines.
190
+
191
+ **STEP 4: Final Validation**
168
192
  - Run existing tests to ensure cleanup didn't break functionality
169
193
  - Verify documentation accuracy with a final review
170
194
  - Ensure project is ready for users and contributors
171
-
172
- Update task progress and mark completed work as you finalize the project.
195
+ - Update task progress and mark completed work as you finalize the project
173
196
  transitions:
174
197
  - trigger: 'need_code_changes'
175
198
  to: 'code'