@programinglive/dev-workflow-mcp-server 1.5.1 → 1.5.2
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/.agent/workflows/dev-workflow-bugfix.md +250 -250
- package/.agent/workflows/dev-workflow-feature.md +201 -201
- package/.agent/workflows/dev-workflow-full-cycle.md +400 -400
- package/.agent/workflows/dev-workflow-refactor.md +238 -238
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -34
- package/.github/ISSUE_TEMPLATE/feature_request.md +25 -25
- package/.github/pull_request_template.md +22 -22
- package/.github/workflows/npm-publish.yml +50 -50
- package/.husky/commit-msg +0 -0
- package/CHANGELOG.md +749 -739
- package/CODE_OF_CONDUCT.md +79 -79
- package/CONTRIBUTING.md +60 -60
- package/LICENSE +21 -21
- package/README.md +632 -632
- package/SECURITY.md +20 -20
- package/db/index.js +204 -204
- package/docs/NETLIFY_DEPLOYMENT.md +125 -125
- package/docs/PLESK_DEPLOYMENT.md +170 -170
- package/docs/WORKFLOW-BEST-PRACTICES.md +58 -58
- package/docs/antigravity/EXAMPLES.md +535 -535
- package/docs/antigravity/GETTING-STARTED.md +292 -292
- package/docs/antigravity/TROUBLESHOOTING.md +742 -742
- package/docs/antigravity/WALKTHROUGH.md +25 -25
- package/docs/antigravity/WORKFLOW-TEMPLATES.md +670 -670
- package/docs/product/PRD.md +67 -67
- package/docs/release-notes/RELEASE_NOTES.md +226 -226
- package/docs/web-dashboard.md +175 -175
- package/exec.js +49 -49
- package/index.js +279 -279
- package/install.js +73 -73
- package/package.json +4 -4
- package/release-wrapper.js +192 -192
- package/scripts/build-docs.js +63 -63
- package/scripts/hello-world.js +1 -1
- package/scripts/release.cjs +252 -252
- package/scripts/update-release-notes.cjs +178 -178
- package/server.json +23 -23
- package/tailwind.config.js +8 -8
- package/tests/build.test.js +83 -91
- package/tests/exec.test.js +35 -35
- package/tests/handlers.test.js +1058 -1058
- package/tests/hello-world.test.js +13 -13
- package/tests/mcpRegistry.test.js +65 -65
- package/tests/release-wrapper.test.js +107 -107
- package/tests/workflowState.test.js +505 -505
- package/tools/definitions.js +332 -332
- package/tools/handlers.js +1019 -1019
- package/vite.config.js +43 -43
- package/vite.web.config.js +23 -23
- package/web/README.md +36 -36
- package/web/app/docs/page.tsx +202 -202
- package/web/app/globals.css +90 -90
- package/web/app/layout.tsx +36 -36
- package/web/app/page.tsx +15 -15
- package/web/components/ApiReference.tsx +20 -20
- package/web/components/Features.tsx +61 -61
- package/web/components/Footer.tsx +9 -9
- package/web/components/Hero.tsx +96 -97
- package/web/components/History.tsx +143 -143
- package/web/components/Navbar.tsx +64 -64
- package/web/components/Terminal.tsx +114 -114
- package/web/eslint.config.mjs +18 -18
- package/web/lib/db.js +131 -131
- package/web/lib/docs.js +73 -73
- package/web/netlify.toml +3 -6
- package/web/next.config.ts +12 -7
- package/web/package-lock.json +6560 -6560
- package/web/package.json +28 -28
- package/web/postcss.config.mjs +9 -9
- package/web/server.js +31 -31
- package/web/tailwind.config.ts +19 -19
- package/web/tsconfig.json +42 -42
- package/workflow-state.js +612 -612
- package/web/app/api/docs/route.ts +0 -32
- package/web/app/api/history/route.ts +0 -12
- package/web/app/api/npm-downloads/route.ts +0 -21
- package/web/app/api/summary/route.ts +0 -13
- package/web/app/api/version/route.ts +0 -8
|
@@ -1,400 +1,400 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Complete workflow demonstration showing all dev-workflow MCP server phases
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Full Cycle Workflow Demonstration
|
|
6
|
-
|
|
7
|
-
This workflow demonstrates a complete dev-workflow cycle from start to finish, showing all phases and tools.
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
This is a reference workflow showing:
|
|
12
|
-
- All workflow phases
|
|
13
|
-
- All MCP tools in action
|
|
14
|
-
- Complete development cycle
|
|
15
|
-
- Best practices
|
|
16
|
-
|
|
17
|
-
## Scenario
|
|
18
|
-
|
|
19
|
-
**Task:** Add user profile page with avatar upload
|
|
20
|
-
|
|
21
|
-
## Complete Workflow
|
|
22
|
-
|
|
23
|
-
### Phase 1: Task Start
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
Use start_task tool:
|
|
27
|
-
- description: "Add user profile page with avatar upload and bio"
|
|
28
|
-
- type: "feature"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Response:**
|
|
32
|
-
```
|
|
33
|
-
✅ Task started
|
|
34
|
-
📝 Task ID: task-20231122-001
|
|
35
|
-
🔄 Phase: implementation
|
|
36
|
-
Next: Implement the feature, then mark as fixed
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
### Phase 2: Implementation
|
|
42
|
-
|
|
43
|
-
Code the feature:
|
|
44
|
-
|
|
45
|
-
**Files created/modified:**
|
|
46
|
-
- `components/ProfilePage.jsx`
|
|
47
|
-
- `components/AvatarUpload.jsx`
|
|
48
|
-
- `api/profile.js`
|
|
49
|
-
- `styles/profile.css`
|
|
50
|
-
|
|
51
|
-
**Implementation includes:**
|
|
52
|
-
- Avatar upload with preview
|
|
53
|
-
- Bio text editor
|
|
54
|
-
- Form validation
|
|
55
|
-
- API integration
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
### Phase 3: Mark as Fixed
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
Use mark_bug_fixed tool:
|
|
63
|
-
- summary: "User profile page with avatar upload, bio editor, and form validation"
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Response:**
|
|
67
|
-
```
|
|
68
|
-
✅ Feature marked as fixed
|
|
69
|
-
⚠️ Reminder: Create tests now!
|
|
70
|
-
🔄 Phase: testing
|
|
71
|
-
Next: Create tests covering your changes
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
### Phase 4: Create Tests
|
|
77
|
-
|
|
78
|
-
Write comprehensive tests:
|
|
79
|
-
|
|
80
|
-
**Test files:**
|
|
81
|
-
- `components/ProfilePage.test.jsx`
|
|
82
|
-
- `components/AvatarUpload.test.jsx`
|
|
83
|
-
- `api/profile.test.js`
|
|
84
|
-
|
|
85
|
-
**Test coverage:**
|
|
86
|
-
- Avatar upload flow
|
|
87
|
-
- Image preview
|
|
88
|
-
- Form validation
|
|
89
|
-
- API calls
|
|
90
|
-
- Error handling
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
Use create_tests tool
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Response:**
|
|
97
|
-
```
|
|
98
|
-
✅ Tests created
|
|
99
|
-
📝 Phase: testing
|
|
100
|
-
Next: Run tests and record results
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
### Phase 5: Run Tests
|
|
106
|
-
|
|
107
|
-
// turbo
|
|
108
|
-
Execute test suite:
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
npm test
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**Output:**
|
|
115
|
-
```
|
|
116
|
-
PASS components/ProfilePage.test.jsx
|
|
117
|
-
PASS components/AvatarUpload.test.jsx
|
|
118
|
-
PASS api/profile.test.js
|
|
119
|
-
|
|
120
|
-
Tests: 18 passed, 18 total
|
|
121
|
-
Coverage: 94.2%
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Record results:
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
Use run_tests tool:
|
|
128
|
-
- passed: true
|
|
129
|
-
- testCommand: "npm test"
|
|
130
|
-
- details: "18 new profile tests added. All tests pass. Coverage: 94.2%"
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Response:**
|
|
134
|
-
```
|
|
135
|
-
✅ Tests passed!
|
|
136
|
-
🔄 Phase: documentation
|
|
137
|
-
Next: Create or update documentation
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
### Phase 6: Create Documentation
|
|
143
|
-
|
|
144
|
-
Update documentation:
|
|
145
|
-
|
|
146
|
-
**Updated files:**
|
|
147
|
-
- `README.md` - Added profile page usage section
|
|
148
|
-
- `docs/API.md` - Documented profile endpoints
|
|
149
|
-
- `CHANGELOG.md` - Added feature entry
|
|
150
|
-
|
|
151
|
-
**Documentation includes:**
|
|
152
|
-
- Component API reference
|
|
153
|
-
- Usage examples
|
|
154
|
-
- Screenshot of profile page
|
|
155
|
-
- Migration notes if needed
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
Use create_documentation tool:
|
|
159
|
-
- documentationType: "README"
|
|
160
|
-
- summary: "Added profile page documentation with API reference, usage examples, and screenshots"
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
**Response:**
|
|
164
|
-
```
|
|
165
|
-
✅ Documentation created
|
|
166
|
-
🔄 Phase: ready_to_commit
|
|
167
|
-
Next: Check if ready to commit
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
### Phase 7: Ready Check
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
Use check_ready_to_commit tool
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
**Response:**
|
|
179
|
-
```
|
|
180
|
-
✅ All required steps completed
|
|
181
|
-
✅ Fixed: Yes
|
|
182
|
-
✅ Tests created: Yes
|
|
183
|
-
✅ Tests passed: Yes
|
|
184
|
-
✅ Documentation: Yes
|
|
185
|
-
🎉 Ready to commit and push!
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
### Phase 8: Commit and Push
|
|
191
|
-
|
|
192
|
-
```
|
|
193
|
-
Use commit_and_push tool:
|
|
194
|
-
- commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
**Execution:**
|
|
198
|
-
```bash
|
|
199
|
-
git add .
|
|
200
|
-
git commit -m "feat(profile): add user profile page with avatar upload"
|
|
201
|
-
git push origin main
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**Response:**
|
|
205
|
-
```
|
|
206
|
-
✅ Changes committed and pushed
|
|
207
|
-
📦 Commit: feat(profile): add user profile page with avatar upload
|
|
208
|
-
🌿 Branch: main
|
|
209
|
-
🔄 Phase: release
|
|
210
|
-
Next: Perform release
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
---
|
|
214
|
-
|
|
215
|
-
### Phase 9: Perform Release
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
Use perform_release tool:
|
|
219
|
-
- command: "npm run release:minor"
|
|
220
|
-
- notes: "v1.5.0 - User profile page feature"
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Execution:**
|
|
224
|
-
```bash
|
|
225
|
-
npm run release:minor
|
|
226
|
-
# Creates tag v1.5.0
|
|
227
|
-
# Updates CHANGELOG
|
|
228
|
-
# Bumps version in package.json
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**Response:**
|
|
232
|
-
```
|
|
233
|
-
✅ Release recorded
|
|
234
|
-
📦 Release: npm run release:minor
|
|
235
|
-
📝 Notes: v1.5.0 - User profile page feature
|
|
236
|
-
🔄 Phase: complete
|
|
237
|
-
Next: Complete the task
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
### Phase 10: Complete Task
|
|
243
|
-
|
|
244
|
-
```
|
|
245
|
-
Use complete_task tool:
|
|
246
|
-
- commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**Response:**
|
|
250
|
-
```
|
|
251
|
-
✅ Task completed successfully!
|
|
252
|
-
📋 Summary:
|
|
253
|
-
- Type: feature
|
|
254
|
-
- Description: Add user profile page with avatar upload and bio
|
|
255
|
-
- Tests: Passed (18 tests)
|
|
256
|
-
- Documentation: README
|
|
257
|
-
- Commit: feat(profile): add user profile page with avatar upload
|
|
258
|
-
- Release: npm run release:minor
|
|
259
|
-
|
|
260
|
-
🎉 Workflow reset - ready for next task!
|
|
261
|
-
📊 Task added to history
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
---
|
|
265
|
-
|
|
266
|
-
## View History
|
|
267
|
-
|
|
268
|
-
Check completed tasks:
|
|
269
|
-
|
|
270
|
-
```
|
|
271
|
-
Use view_history tool:
|
|
272
|
-
- limit: 5
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
**Response:**
|
|
276
|
-
```
|
|
277
|
-
📜 Recent Workflow History (5 tasks)
|
|
278
|
-
|
|
279
|
-
1. feat(profile): add user profile page with avatar upload
|
|
280
|
-
Type: feature
|
|
281
|
-
Completed: 2023-11-22 14:30
|
|
282
|
-
Tests: Passed
|
|
283
|
-
Release: npm run release:minor
|
|
284
|
-
|
|
285
|
-
2. fix(auth): correct token expiration handling
|
|
286
|
-
Type: bugfix
|
|
287
|
-
Completed: 2023-11-21 10:15
|
|
288
|
-
Tests: Passed
|
|
289
|
-
Release: npm run release:patch
|
|
290
|
-
|
|
291
|
-
[... more history ...]
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
---
|
|
295
|
-
|
|
296
|
-
## Alternative: Quick Workflow with run_full_workflow
|
|
297
|
-
|
|
298
|
-
For simple, well-defined tasks, use `run_full_workflow` to execute all steps at once:
|
|
299
|
-
|
|
300
|
-
```
|
|
301
|
-
Use run_full_workflow tool:
|
|
302
|
-
summary: "User profile page with avatar upload and bio editor"
|
|
303
|
-
testCommand: "npm test"
|
|
304
|
-
testsPassed: true
|
|
305
|
-
testDetails: "18 profile tests added, all pass, coverage 94.2%"
|
|
306
|
-
documentationType: "README"
|
|
307
|
-
documentationSummary: "Added profile page docs with API reference and examples"
|
|
308
|
-
commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
309
|
-
releaseCommand: "npm run release:minor"
|
|
310
|
-
releaseNotes: "v1.5.0 - User profile page feature"
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
This executes all 9 steps in one call!
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
|
|
317
|
-
## Workflow State Tracking
|
|
318
|
-
|
|
319
|
-
Check status at any time:
|
|
320
|
-
|
|
321
|
-
```
|
|
322
|
-
Use get_workflow_status tool
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
**Example response (mid-workflow):**
|
|
326
|
-
```
|
|
327
|
-
📋 Current Workflow Status
|
|
328
|
-
|
|
329
|
-
Task: Add user profile page with avatar upload and bio
|
|
330
|
-
Type: feature
|
|
331
|
-
Phase: documentation
|
|
332
|
-
|
|
333
|
-
✅ Completed:
|
|
334
|
-
✓ Task started
|
|
335
|
-
✓ Feature fixed
|
|
336
|
-
✓ Tests created
|
|
337
|
-
✓ Tests passed
|
|
338
|
-
|
|
339
|
-
⏳ Pending:
|
|
340
|
-
○ Documentation
|
|
341
|
-
○ Commit & push
|
|
342
|
-
○ Release
|
|
343
|
-
○ Complete
|
|
344
|
-
|
|
345
|
-
Next step: Create documentation
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
---
|
|
349
|
-
|
|
350
|
-
## Complete Tool Summary
|
|
351
|
-
|
|
352
|
-
Tools used in this workflow:
|
|
353
|
-
|
|
354
|
-
1. **start_task** - Begin new task
|
|
355
|
-
2. **mark_bug_fixed** - Mark implementation complete
|
|
356
|
-
3. **create_tests** - Record test creation
|
|
357
|
-
4. **run_tests** - Record test execution (blocks if failed)
|
|
358
|
-
5. **create_documentation** - Record documentation
|
|
359
|
-
6. **check_ready_to_commit** - Verify all steps complete
|
|
360
|
-
7. **commit_and_push** - Automated git commit & push
|
|
361
|
-
8. **perform_release** - Record release details
|
|
362
|
-
9. **complete_task** - Finish and reset workflow
|
|
363
|
-
10. **view_history** - See completed tasks
|
|
364
|
-
11. **get_workflow_status** - Check current phase
|
|
365
|
-
|
|
366
|
-
Optional tools:
|
|
367
|
-
- **skip_tests** - Skip with justification (manual testing)
|
|
368
|
-
- **drop_task** - Abandon task without completing
|
|
369
|
-
- **force_complete_task** - Force complete (emergency use)
|
|
370
|
-
- **rerun_workflow** - Restart current task
|
|
371
|
-
- **run_full_workflow** - Execute all steps at once
|
|
372
|
-
|
|
373
|
-
---
|
|
374
|
-
|
|
375
|
-
## Workflow Benefits
|
|
376
|
-
|
|
377
|
-
This disciplined workflow ensures:
|
|
378
|
-
|
|
379
|
-
- ✅ **Clear intent** - Every task starts with description
|
|
380
|
-
- ✅ **Test coverage** - Tests are mandatory
|
|
381
|
-
- ✅ **Quality gates** - Failing tests block commits
|
|
382
|
-
- ✅ **Documentation** - Documentation is required
|
|
383
|
-
- ✅ **Conventional commits** - Consistent commit messages
|
|
384
|
-
- ✅ **Release tracking** - All releases are recorded
|
|
385
|
-
- ✅ **Audit trail** - Complete history of all tasks
|
|
386
|
-
|
|
387
|
-
---
|
|
388
|
-
|
|
389
|
-
## Next Steps
|
|
390
|
-
|
|
391
|
-
- Use this as a reference for your own workflows
|
|
392
|
-
- Customize for your project's needs
|
|
393
|
-
- See other workflow templates:
|
|
394
|
-
- [dev-workflow-feature.md](./dev-workflow-feature.md)
|
|
395
|
-
- [dev-workflow-bugfix.md](./dev-workflow-bugfix.md)
|
|
396
|
-
- [dev-workflow-refactor.md](./dev-workflow-refactor.md)
|
|
397
|
-
|
|
398
|
-
---
|
|
399
|
-
|
|
400
|
-
**Disciplined development leads to quality software!** 🚀
|
|
1
|
+
---
|
|
2
|
+
description: Complete workflow demonstration showing all dev-workflow MCP server phases
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Full Cycle Workflow Demonstration
|
|
6
|
+
|
|
7
|
+
This workflow demonstrates a complete dev-workflow cycle from start to finish, showing all phases and tools.
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
This is a reference workflow showing:
|
|
12
|
+
- All workflow phases
|
|
13
|
+
- All MCP tools in action
|
|
14
|
+
- Complete development cycle
|
|
15
|
+
- Best practices
|
|
16
|
+
|
|
17
|
+
## Scenario
|
|
18
|
+
|
|
19
|
+
**Task:** Add user profile page with avatar upload
|
|
20
|
+
|
|
21
|
+
## Complete Workflow
|
|
22
|
+
|
|
23
|
+
### Phase 1: Task Start
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Use start_task tool:
|
|
27
|
+
- description: "Add user profile page with avatar upload and bio"
|
|
28
|
+
- type: "feature"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Response:**
|
|
32
|
+
```
|
|
33
|
+
✅ Task started
|
|
34
|
+
📝 Task ID: task-20231122-001
|
|
35
|
+
🔄 Phase: implementation
|
|
36
|
+
Next: Implement the feature, then mark as fixed
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### Phase 2: Implementation
|
|
42
|
+
|
|
43
|
+
Code the feature:
|
|
44
|
+
|
|
45
|
+
**Files created/modified:**
|
|
46
|
+
- `components/ProfilePage.jsx`
|
|
47
|
+
- `components/AvatarUpload.jsx`
|
|
48
|
+
- `api/profile.js`
|
|
49
|
+
- `styles/profile.css`
|
|
50
|
+
|
|
51
|
+
**Implementation includes:**
|
|
52
|
+
- Avatar upload with preview
|
|
53
|
+
- Bio text editor
|
|
54
|
+
- Form validation
|
|
55
|
+
- API integration
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### Phase 3: Mark as Fixed
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Use mark_bug_fixed tool:
|
|
63
|
+
- summary: "User profile page with avatar upload, bio editor, and form validation"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Response:**
|
|
67
|
+
```
|
|
68
|
+
✅ Feature marked as fixed
|
|
69
|
+
⚠️ Reminder: Create tests now!
|
|
70
|
+
🔄 Phase: testing
|
|
71
|
+
Next: Create tests covering your changes
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### Phase 4: Create Tests
|
|
77
|
+
|
|
78
|
+
Write comprehensive tests:
|
|
79
|
+
|
|
80
|
+
**Test files:**
|
|
81
|
+
- `components/ProfilePage.test.jsx`
|
|
82
|
+
- `components/AvatarUpload.test.jsx`
|
|
83
|
+
- `api/profile.test.js`
|
|
84
|
+
|
|
85
|
+
**Test coverage:**
|
|
86
|
+
- Avatar upload flow
|
|
87
|
+
- Image preview
|
|
88
|
+
- Form validation
|
|
89
|
+
- API calls
|
|
90
|
+
- Error handling
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Use create_tests tool
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Response:**
|
|
97
|
+
```
|
|
98
|
+
✅ Tests created
|
|
99
|
+
📝 Phase: testing
|
|
100
|
+
Next: Run tests and record results
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### Phase 5: Run Tests
|
|
106
|
+
|
|
107
|
+
// turbo
|
|
108
|
+
Execute test suite:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npm test
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Output:**
|
|
115
|
+
```
|
|
116
|
+
PASS components/ProfilePage.test.jsx
|
|
117
|
+
PASS components/AvatarUpload.test.jsx
|
|
118
|
+
PASS api/profile.test.js
|
|
119
|
+
|
|
120
|
+
Tests: 18 passed, 18 total
|
|
121
|
+
Coverage: 94.2%
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Record results:
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
Use run_tests tool:
|
|
128
|
+
- passed: true
|
|
129
|
+
- testCommand: "npm test"
|
|
130
|
+
- details: "18 new profile tests added. All tests pass. Coverage: 94.2%"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Response:**
|
|
134
|
+
```
|
|
135
|
+
✅ Tests passed!
|
|
136
|
+
🔄 Phase: documentation
|
|
137
|
+
Next: Create or update documentation
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### Phase 6: Create Documentation
|
|
143
|
+
|
|
144
|
+
Update documentation:
|
|
145
|
+
|
|
146
|
+
**Updated files:**
|
|
147
|
+
- `README.md` - Added profile page usage section
|
|
148
|
+
- `docs/API.md` - Documented profile endpoints
|
|
149
|
+
- `CHANGELOG.md` - Added feature entry
|
|
150
|
+
|
|
151
|
+
**Documentation includes:**
|
|
152
|
+
- Component API reference
|
|
153
|
+
- Usage examples
|
|
154
|
+
- Screenshot of profile page
|
|
155
|
+
- Migration notes if needed
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
Use create_documentation tool:
|
|
159
|
+
- documentationType: "README"
|
|
160
|
+
- summary: "Added profile page documentation with API reference, usage examples, and screenshots"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Response:**
|
|
164
|
+
```
|
|
165
|
+
✅ Documentation created
|
|
166
|
+
🔄 Phase: ready_to_commit
|
|
167
|
+
Next: Check if ready to commit
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### Phase 7: Ready Check
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
Use check_ready_to_commit tool
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**Response:**
|
|
179
|
+
```
|
|
180
|
+
✅ All required steps completed
|
|
181
|
+
✅ Fixed: Yes
|
|
182
|
+
✅ Tests created: Yes
|
|
183
|
+
✅ Tests passed: Yes
|
|
184
|
+
✅ Documentation: Yes
|
|
185
|
+
🎉 Ready to commit and push!
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### Phase 8: Commit and Push
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
Use commit_and_push tool:
|
|
194
|
+
- commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Execution:**
|
|
198
|
+
```bash
|
|
199
|
+
git add .
|
|
200
|
+
git commit -m "feat(profile): add user profile page with avatar upload"
|
|
201
|
+
git push origin main
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Response:**
|
|
205
|
+
```
|
|
206
|
+
✅ Changes committed and pushed
|
|
207
|
+
📦 Commit: feat(profile): add user profile page with avatar upload
|
|
208
|
+
🌿 Branch: main
|
|
209
|
+
🔄 Phase: release
|
|
210
|
+
Next: Perform release
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
### Phase 9: Perform Release
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
Use perform_release tool:
|
|
219
|
+
- command: "npm run release:minor"
|
|
220
|
+
- notes: "v1.5.0 - User profile page feature"
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
**Execution:**
|
|
224
|
+
```bash
|
|
225
|
+
npm run release:minor
|
|
226
|
+
# Creates tag v1.5.0
|
|
227
|
+
# Updates CHANGELOG
|
|
228
|
+
# Bumps version in package.json
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Response:**
|
|
232
|
+
```
|
|
233
|
+
✅ Release recorded
|
|
234
|
+
📦 Release: npm run release:minor
|
|
235
|
+
📝 Notes: v1.5.0 - User profile page feature
|
|
236
|
+
🔄 Phase: complete
|
|
237
|
+
Next: Complete the task
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
### Phase 10: Complete Task
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
Use complete_task tool:
|
|
246
|
+
- commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Response:**
|
|
250
|
+
```
|
|
251
|
+
✅ Task completed successfully!
|
|
252
|
+
📋 Summary:
|
|
253
|
+
- Type: feature
|
|
254
|
+
- Description: Add user profile page with avatar upload and bio
|
|
255
|
+
- Tests: Passed (18 tests)
|
|
256
|
+
- Documentation: README
|
|
257
|
+
- Commit: feat(profile): add user profile page with avatar upload
|
|
258
|
+
- Release: npm run release:minor
|
|
259
|
+
|
|
260
|
+
🎉 Workflow reset - ready for next task!
|
|
261
|
+
📊 Task added to history
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## View History
|
|
267
|
+
|
|
268
|
+
Check completed tasks:
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
Use view_history tool:
|
|
272
|
+
- limit: 5
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**Response:**
|
|
276
|
+
```
|
|
277
|
+
📜 Recent Workflow History (5 tasks)
|
|
278
|
+
|
|
279
|
+
1. feat(profile): add user profile page with avatar upload
|
|
280
|
+
Type: feature
|
|
281
|
+
Completed: 2023-11-22 14:30
|
|
282
|
+
Tests: Passed
|
|
283
|
+
Release: npm run release:minor
|
|
284
|
+
|
|
285
|
+
2. fix(auth): correct token expiration handling
|
|
286
|
+
Type: bugfix
|
|
287
|
+
Completed: 2023-11-21 10:15
|
|
288
|
+
Tests: Passed
|
|
289
|
+
Release: npm run release:patch
|
|
290
|
+
|
|
291
|
+
[... more history ...]
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Alternative: Quick Workflow with run_full_workflow
|
|
297
|
+
|
|
298
|
+
For simple, well-defined tasks, use `run_full_workflow` to execute all steps at once:
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
Use run_full_workflow tool:
|
|
302
|
+
summary: "User profile page with avatar upload and bio editor"
|
|
303
|
+
testCommand: "npm test"
|
|
304
|
+
testsPassed: true
|
|
305
|
+
testDetails: "18 profile tests added, all pass, coverage 94.2%"
|
|
306
|
+
documentationType: "README"
|
|
307
|
+
documentationSummary: "Added profile page docs with API reference and examples"
|
|
308
|
+
commitMessage: "feat(profile): add user profile page with avatar upload"
|
|
309
|
+
releaseCommand: "npm run release:minor"
|
|
310
|
+
releaseNotes: "v1.5.0 - User profile page feature"
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
This executes all 9 steps in one call!
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Workflow State Tracking
|
|
318
|
+
|
|
319
|
+
Check status at any time:
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
Use get_workflow_status tool
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**Example response (mid-workflow):**
|
|
326
|
+
```
|
|
327
|
+
📋 Current Workflow Status
|
|
328
|
+
|
|
329
|
+
Task: Add user profile page with avatar upload and bio
|
|
330
|
+
Type: feature
|
|
331
|
+
Phase: documentation
|
|
332
|
+
|
|
333
|
+
✅ Completed:
|
|
334
|
+
✓ Task started
|
|
335
|
+
✓ Feature fixed
|
|
336
|
+
✓ Tests created
|
|
337
|
+
✓ Tests passed
|
|
338
|
+
|
|
339
|
+
⏳ Pending:
|
|
340
|
+
○ Documentation
|
|
341
|
+
○ Commit & push
|
|
342
|
+
○ Release
|
|
343
|
+
○ Complete
|
|
344
|
+
|
|
345
|
+
Next step: Create documentation
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Complete Tool Summary
|
|
351
|
+
|
|
352
|
+
Tools used in this workflow:
|
|
353
|
+
|
|
354
|
+
1. **start_task** - Begin new task
|
|
355
|
+
2. **mark_bug_fixed** - Mark implementation complete
|
|
356
|
+
3. **create_tests** - Record test creation
|
|
357
|
+
4. **run_tests** - Record test execution (blocks if failed)
|
|
358
|
+
5. **create_documentation** - Record documentation
|
|
359
|
+
6. **check_ready_to_commit** - Verify all steps complete
|
|
360
|
+
7. **commit_and_push** - Automated git commit & push
|
|
361
|
+
8. **perform_release** - Record release details
|
|
362
|
+
9. **complete_task** - Finish and reset workflow
|
|
363
|
+
10. **view_history** - See completed tasks
|
|
364
|
+
11. **get_workflow_status** - Check current phase
|
|
365
|
+
|
|
366
|
+
Optional tools:
|
|
367
|
+
- **skip_tests** - Skip with justification (manual testing)
|
|
368
|
+
- **drop_task** - Abandon task without completing
|
|
369
|
+
- **force_complete_task** - Force complete (emergency use)
|
|
370
|
+
- **rerun_workflow** - Restart current task
|
|
371
|
+
- **run_full_workflow** - Execute all steps at once
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## Workflow Benefits
|
|
376
|
+
|
|
377
|
+
This disciplined workflow ensures:
|
|
378
|
+
|
|
379
|
+
- ✅ **Clear intent** - Every task starts with description
|
|
380
|
+
- ✅ **Test coverage** - Tests are mandatory
|
|
381
|
+
- ✅ **Quality gates** - Failing tests block commits
|
|
382
|
+
- ✅ **Documentation** - Documentation is required
|
|
383
|
+
- ✅ **Conventional commits** - Consistent commit messages
|
|
384
|
+
- ✅ **Release tracking** - All releases are recorded
|
|
385
|
+
- ✅ **Audit trail** - Complete history of all tasks
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## Next Steps
|
|
390
|
+
|
|
391
|
+
- Use this as a reference for your own workflows
|
|
392
|
+
- Customize for your project's needs
|
|
393
|
+
- See other workflow templates:
|
|
394
|
+
- [dev-workflow-feature.md](./dev-workflow-feature.md)
|
|
395
|
+
- [dev-workflow-bugfix.md](./dev-workflow-bugfix.md)
|
|
396
|
+
- [dev-workflow-refactor.md](./dev-workflow-refactor.md)
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
**Disciplined development leads to quality software!** 🚀
|