@codemcp/workflows-core 5.2.2 → 5.2.4
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.
- package/package.json +1 -1
- package/resources/workflows/adr.yaml +62 -48
- package/resources/workflows/big-bang-conversion.yaml +231 -172
- package/resources/workflows/boundary-testing.yaml +137 -95
- package/resources/workflows/bugfix.yaml +33 -38
- package/resources/workflows/business-analysis.yaml +130 -172
- package/resources/workflows/c4-analysis.yaml +120 -114
- package/resources/workflows/epcc.yaml +43 -10
- package/resources/workflows/game-beginner.yaml +113 -103
- package/resources/workflows/greenfield.yaml +61 -38
- package/resources/workflows/minor.yaml +51 -28
- package/resources/workflows/posts.yaml +41 -42
- package/resources/workflows/sdd-bugfix-crowd.yaml +181 -206
- package/resources/workflows/sdd-bugfix.yaml +168 -179
- package/resources/workflows/sdd-feature-crowd.yaml +357 -380
- package/resources/workflows/sdd-feature.yaml +162 -155
- package/resources/workflows/sdd-greenfield-crowd.yaml +82 -74
- package/resources/workflows/sdd-greenfield.yaml +153 -147
- package/resources/workflows/slides.yaml +29 -35
- package/resources/workflows/tdd.yaml +59 -48
- package/resources/workflows/waterfall.yaml +64 -44
|
@@ -28,18 +28,20 @@ states:
|
|
|
28
28
|
constitution:
|
|
29
29
|
description: 'Set up project documentation with game development principles'
|
|
30
30
|
default_instructions: |
|
|
31
|
-
|
|
31
|
+
**STEP 1: Check for Existing Documentation**
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
Verify whether project documentation exists in `.vibe/docs/`:
|
|
34
|
+
- `requirements.md`
|
|
35
|
+
- `architecture.md`
|
|
36
|
+
- `design.md`
|
|
35
37
|
|
|
36
|
-
|
|
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
|
-
|
|
42
|
+
**STEP 2: Create Project Documentation (REQUIRED)**
|
|
39
43
|
|
|
40
|
-
|
|
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
|
-
**
|
|
61
|
+
**STEP 3: Explain the Helper Documents**
|
|
60
62
|
|
|
61
|
-
After calling setup_project_docs()
|
|
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
|
-
|
|
69
|
-
|
|
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
|
-
**
|
|
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
|
-
|
|
83
|
+
Wait for the child's response. Answer any questions patiently. Only proceed when they're ready.
|
|
86
84
|
|
|
87
|
-
**
|
|
88
|
-
- Keep
|
|
85
|
+
**Guidelines:**
|
|
86
|
+
- Keep explanations simple and enthusiastic
|
|
89
87
|
- Use the analogy of a "smart notebook" or "game's memory"
|
|
90
|
-
-
|
|
91
|
-
- Focus on WHY we have
|
|
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
|
-
|
|
101
|
+
**STEP 1: Gather Game Ideas**
|
|
104
102
|
|
|
105
|
-
|
|
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"
|
|
109
|
+
**STEP 2: Apply "Start Small, Dream Big" Principle**
|
|
114
110
|
|
|
115
|
-
|
|
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
|
|
116
|
+
**STEP 3: Document the Game Idea**
|
|
121
117
|
|
|
122
|
-
Update
|
|
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
|
-
**
|
|
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
|
-
|
|
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
|
-
|
|
148
|
+
**STEP 1: Understand Game Concept**
|
|
152
149
|
|
|
153
|
-
|
|
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
|
|
160
|
-
- **Browser**:
|
|
161
|
-
- **Python**: Desktop game,
|
|
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
|
-
**
|
|
162
|
+
**STEP 3: Update Architecture Documentation**
|
|
164
163
|
|
|
165
|
-
|
|
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
|
|
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
|
-
**
|
|
172
|
+
**STEP 4: Set Up Development Environment**
|
|
174
173
|
|
|
175
|
-
|
|
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
|
-
**
|
|
184
|
+
**STEP 5: Explain Platform Architecture to Child**
|
|
186
185
|
|
|
187
|
-
"I
|
|
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
|
-
|
|
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
|
-
|
|
215
|
+
**STEP 1: Review Requirements and Architecture**
|
|
215
216
|
|
|
216
|
-
Read
|
|
217
|
+
Read `$REQUIREMENTS_DOC` and `$ARCHITECTURE_DOC` to understand what we're building and the technical foundation.
|
|
217
218
|
|
|
218
|
-
**
|
|
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
|
-
|
|
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
|
-
|
|
223
|
+
Document in `$DESIGN_DOC`:
|
|
224
|
+
- Which libraries will be used
|
|
225
|
+
- Why each library was chosen
|
|
228
226
|
|
|
229
|
-
**
|
|
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
|
-
|
|
234
|
+
**IMPORTANT: Create file structures (single responsibility) without writing full code yet!**
|
|
232
235
|
|
|
233
|
-
|
|
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
|
-
|
|
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
|
-
|
|
260
|
+
**STEP 1: Follow Implementation Plan**
|
|
251
261
|
|
|
252
|
-
|
|
262
|
+
Use `$DESIGN_DOC` for implementation order and `$ARCHITECTURE_DOC` for code structure.
|
|
253
263
|
|
|
254
|
-
**
|
|
264
|
+
**STEP 2: Build One Feature at a Time**
|
|
255
265
|
|
|
256
|
-
|
|
266
|
+
Implement features incrementally, testing each one thoroughly before moving to the next.
|
|
257
267
|
|
|
258
|
-
|
|
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
|
-
|
|
276
|
-
|
|
277
|
-
**Step 1: Explain What Was Built**
|
|
287
|
+
**STEP 1: Summarize the Feature**
|
|
278
288
|
|
|
279
|
-
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
|
|
330
|
+
Wait for response and answer questions patiently.
|
|
320
331
|
|
|
321
|
-
**
|
|
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
|
-
|
|
326
|
-
If
|
|
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
|
-
|
|
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
|
|
384
|
+
Let them play and enjoy their creation.
|
|
375
385
|
|
|
376
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
|
412
|
+
Review the "Future Ideas" list from `$REQUIREMENTS_DOC`.
|
|
403
413
|
|
|
404
|
-
**
|
|
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
|
-
**
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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.
|
|
140
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
1.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
2.
|
|
161
|
-
3.
|
|
162
|
-
4.
|
|
163
|
-
5.
|
|
164
|
-
6.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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'
|