@programinglive/dev-workflow-mcp-server 1.3.6 → 1.3.8

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.
@@ -0,0 +1,591 @@
1
+ <h1>Workflow Templates for Dev-Workflow MCP Server</h1>
2
+ <p>Ready-to-use workflow templates for common development scenarios in Antigravity.</p>
3
+ <h2>Table of Contents</h2>
4
+ <ul>
5
+ <li><a href="#feature-development-template">Feature Development Template</a></li>
6
+ <li><a href="#bug-fix-template">Bug Fix Template</a></li>
7
+ <li><a href="#refactoring-template">Refactoring Template</a></li>
8
+ <li><a href="#hotfix-template">Hotfix Template</a></li>
9
+ <li><a href="#documentation-update-template">Documentation Update Template</a></li>
10
+ <li><a href="#release-preparation-template">Release Preparation Template</a></li>
11
+ </ul>
12
+ <hr>
13
+ <h2>Feature Development Template</h2>
14
+ <p>Use this template when adding new functionality to your application.</p>
15
+ <h3>Checklist</h3>
16
+ <pre><code class="language-markdown">## Feature: [Feature Name]
17
+
18
+ ### Planning
19
+ - [ ] Define feature requirements
20
+ - [ ] Design API/component interface
21
+ - [ ] Identify affected files
22
+ - [ ] Plan test cases
23
+
24
+ ### Implementation
25
+ - [ ] Start workflow task
26
+ - [ ] Implement feature code
27
+ - [ ] Mark as fixed
28
+
29
+ ### Testing
30
+ - [ ] Write unit tests
31
+ - [ ] Write integration tests
32
+ - [ ] Create tests in workflow
33
+ - [ ] Run test suite
34
+ - [ ] Record passing tests
35
+
36
+ ### Documentation
37
+ - [ ] Update README
38
+ - [ ] Add inline comments
39
+ - [ ] Update API documentation
40
+ - [ ] Create documentation in workflow
41
+
42
+ ### Release
43
+ - [ ] Commit and push changes
44
+ - [ ] Perform release (minor version)
45
+ - [ ] Complete task
46
+ </code></pre>
47
+ <h3>Workflow Commands</h3>
48
+ <pre><code># 1. Start
49
+ start_task:
50
+ description: &quot;Add [feature name] to [component/module]&quot;
51
+ type: &quot;feature&quot;
52
+
53
+ # 2. Code the feature
54
+ # ... your implementation ...
55
+
56
+ # 3. Mark as fixed
57
+ mark_bug_fixed:
58
+ summary: &quot;[Brief description of what was implemented]&quot;
59
+
60
+ # 4. Create tests
61
+ # ... write your test files ...
62
+ create_tests
63
+
64
+ # 5. Run tests
65
+ run_tests:
66
+ passed: true
67
+ testCommand: &quot;npm test&quot;
68
+ details: &quot;[X tests passed, coverage Y%]&quot;
69
+
70
+ # 6. Document
71
+ # ... update documentation ...
72
+ create_documentation:
73
+ documentationType: &quot;README&quot;
74
+ summary: &quot;[What you documented]&quot;
75
+
76
+ # 7. Commit
77
+ commit_and_push:
78
+ commitMessage: &quot;feat([scope]): [description]&quot;
79
+
80
+ # 8. Release
81
+ perform_release:
82
+ command: &quot;npm run release:minor&quot;
83
+ notes: &quot;v[X.Y.Z] - [Feature name]&quot;
84
+
85
+ # 9. Complete
86
+ complete_task:
87
+ commitMessage: &quot;feat([scope]): [description]&quot;
88
+ </code></pre>
89
+ <h3>Example</h3>
90
+ <p><strong>Feature:</strong> Add shopping cart functionality</p>
91
+ <pre><code>start_task:
92
+ description: &quot;Add shopping cart with add/remove items and checkout&quot;
93
+ type: &quot;feature&quot;
94
+
95
+ mark_bug_fixed:
96
+ summary: &quot;Shopping cart with localStorage persistence and quantity controls&quot;
97
+
98
+ create_tests
99
+
100
+ run_tests:
101
+ passed: true
102
+ testCommand: &quot;npm test -- cart&quot;
103
+ details: &quot;12 cart tests passed: add, remove, update quantity, persist&quot;
104
+
105
+ create_documentation:
106
+ documentationType: &quot;README&quot;
107
+ summary: &quot;Added shopping cart API reference and integration guide&quot;
108
+
109
+ commit_and_push:
110
+ commitMessage: &quot;feat(cart): add shopping cart with persistence&quot;
111
+
112
+ perform_release:
113
+ command: &quot;npm run release:minor&quot;
114
+ notes: &quot;v1.5.0 - Shopping cart feature&quot;
115
+
116
+ complete_task:
117
+ commitMessage: &quot;feat(cart): add shopping cart with persistence&quot;
118
+ </code></pre>
119
+ <hr>
120
+ <h2>Bug Fix Template</h2>
121
+ <p>Use this template when fixing defects or unexpected behavior.</p>
122
+ <h3>Checklist</h3>
123
+ <pre><code class="language-markdown">## Bug Fix: [Bug Description]
124
+
125
+ ### Investigation
126
+ - [ ] Reproduce the bug
127
+ - [ ] Identify root cause
128
+ - [ ] Document expected vs actual behavior
129
+
130
+ ### Implementation
131
+ - [ ] Start workflow task
132
+ - [ ] Fix the bug
133
+ - [ ] Verify fix locally
134
+ - [ ] Mark as fixed
135
+
136
+ ### Testing
137
+ - [ ] Write regression test
138
+ - [ ] Update existing tests if needed
139
+ - [ ] Create tests in workflow
140
+ - [ ] Run full test suite
141
+ - [ ] Record passing tests
142
+
143
+ ### Documentation
144
+ - [ ] Update CHANGELOG
145
+ - [ ] Add code comments explaining the fix
146
+ - [ ] Create documentation in workflow
147
+
148
+ ### Release
149
+ - [ ] Commit and push changes
150
+ - [ ] Perform release (patch version)
151
+ - [ ] Complete task
152
+ </code></pre>
153
+ <h3>Workflow Commands</h3>
154
+ <pre><code># 1. Start
155
+ start_task:
156
+ description: &quot;Fix [bug description]&quot;
157
+ type: &quot;bugfix&quot;
158
+
159
+ # 2. Fix the bug
160
+ # ... your fix ...
161
+
162
+ # 3. Mark as fixed
163
+ mark_bug_fixed:
164
+ summary: &quot;[Brief description of the fix]&quot;
165
+
166
+ # 4. Create regression tests
167
+ # ... write test to prevent recurrence ...
168
+ create_tests
169
+
170
+ # 5. Run tests
171
+ run_tests:
172
+ passed: true
173
+ testCommand: &quot;npm test&quot;
174
+ details: &quot;[Include regression test results]&quot;
175
+
176
+ # 6. Document
177
+ # ... update CHANGELOG ...
178
+ create_documentation:
179
+ documentationType: &quot;changelog&quot;
180
+ summary: &quot;[What you documented]&quot;
181
+
182
+ # 7. Commit
183
+ commit_and_push:
184
+ commitMessage: &quot;fix([scope]): [description]&quot;
185
+
186
+ # 8. Release
187
+ perform_release:
188
+ command: &quot;npm run release:patch&quot;
189
+ notes: &quot;v[X.Y.Z] - Bugfix for [issue]&quot;
190
+
191
+ # 9. Complete
192
+ complete_task:
193
+ commitMessage: &quot;fix([scope]): [description]&quot;
194
+ </code></pre>
195
+ <h3>Example</h3>
196
+ <p><strong>Bug:</strong> Date picker shows wrong month on mobile</p>
197
+ <pre><code>start_task:
198
+ description: &quot;Fix date picker showing incorrect month on iOS Safari&quot;
199
+ type: &quot;bugfix&quot;
200
+
201
+ mark_bug_fixed:
202
+ summary: &quot;Fixed timezone offset calculation in date picker for iOS Safari&quot;
203
+
204
+ create_tests
205
+
206
+ run_tests:
207
+ passed: true
208
+ testCommand: &quot;npm test -- datepicker&quot;
209
+ details: &quot;Added timezone regression test, all 8 tests pass&quot;
210
+
211
+ create_documentation:
212
+ documentationType: &quot;changelog&quot;
213
+ summary: &quot;Added bug fix entry for date picker iOS issue&quot;
214
+
215
+ commit_and_push:
216
+ commitMessage: &quot;fix(ui): correct date picker timezone handling on iOS&quot;
217
+
218
+ perform_release:
219
+ command: &quot;npm run release:patch&quot;
220
+ notes: &quot;v1.4.1 - iOS date picker fix&quot;
221
+
222
+ complete_task:
223
+ commitMessage: &quot;fix(ui): correct date picker timezone handling on iOS&quot;
224
+ </code></pre>
225
+ <hr>
226
+ <h2>Refactoring Template</h2>
227
+ <p>Use this template when improving code structure without changing behavior.</p>
228
+ <h3>Checklist</h3>
229
+ <pre><code class="language-markdown">## Refactoring: [What You&#39;re Refactoring]
230
+
231
+ ### Planning
232
+ - [ ] Identify code smell or improvement opportunity
233
+ - [ ] Define refactoring goal
234
+ - [ ] Ensure test coverage exists
235
+ - [ ] Plan incremental changes
236
+
237
+ ### Implementation
238
+ - [ ] Start workflow task
239
+ - [ ] Refactor code
240
+ - [ ] Verify behavior unchanged
241
+ - [ ] Mark as fixed
242
+
243
+ ### Testing
244
+ - [ ] Update tests for new structure
245
+ - [ ] Ensure all existing tests still pass
246
+ - [ ] Create tests in workflow
247
+ - [ ] Run full test suite
248
+ - [ ] Record passing tests
249
+
250
+ ### Documentation
251
+ - [ ] Update inline documentation
252
+ - [ ] Update architecture docs if needed
253
+ - [ ] Create documentation in workflow
254
+
255
+ ### Release
256
+ - [ ] Commit and push changes
257
+ - [ ] Perform release (minor/patch)
258
+ - [ ] Complete task
259
+ </code></pre>
260
+ <h3>Workflow Commands</h3>
261
+ <pre><code># 1. Start
262
+ start_task:
263
+ description: &quot;Refactor [component/module] to [improvement goal]&quot;
264
+ type: &quot;refactor&quot;
265
+
266
+ # 2. Refactor
267
+ # ... your refactoring ...
268
+
269
+ # 3. Mark as fixed
270
+ mark_bug_fixed:
271
+ summary: &quot;[Brief description of refactoring]&quot;
272
+
273
+ # 4. Update tests
274
+ # ... update test structure ...
275
+ create_tests
276
+
277
+ # 5. Run tests
278
+ run_tests:
279
+ passed: true
280
+ testCommand: &quot;npm test -- --coverage&quot;
281
+ details: &quot;[All tests pass, coverage maintained/improved]&quot;
282
+
283
+ # 6. Document
284
+ create_documentation:
285
+ documentationType: &quot;inline-comments&quot;
286
+ summary: &quot;[Updated documentation]&quot;
287
+
288
+ # 7. Commit
289
+ commit_and_push:
290
+ commitMessage: &quot;refactor([scope]): [description]&quot;
291
+
292
+ # 8. Release
293
+ perform_release:
294
+ command: &quot;npm run release:minor&quot;
295
+ notes: &quot;v[X.Y.Z] - Internal improvements&quot;
296
+
297
+ # 9. Complete
298
+ complete_task:
299
+ commitMessage: &quot;refactor([scope]): [description]&quot;
300
+ </code></pre>
301
+ <h3>Example</h3>
302
+ <p><strong>Refactoring:</strong> Extract authentication logic to custom hooks</p>
303
+ <pre><code>start_task:
304
+ description: &quot;Refactor authentication logic into reusable custom hooks&quot;
305
+ type: &quot;refactor&quot;
306
+
307
+ mark_bug_fixed:
308
+ summary: &quot;Extracted useAuth and usePermissions hooks from component logic&quot;
309
+
310
+ create_tests
311
+
312
+ run_tests:
313
+ passed: true
314
+ testCommand: &quot;npm test -- --coverage&quot;
315
+ details: &quot;All 145 tests pass, coverage improved from 89% to 92%&quot;
316
+
317
+ create_documentation:
318
+ documentationType: &quot;inline-comments&quot;
319
+ summary: &quot;Added JSDoc for custom hooks and usage examples&quot;
320
+
321
+ commit_and_push:
322
+ commitMessage: &quot;refactor(auth): extract authentication logic to custom hooks&quot;
323
+
324
+ perform_release:
325
+ command: &quot;npm run release:minor&quot;
326
+ notes: &quot;v1.6.0 - Authentication refactoring (improved maintainability)&quot;
327
+
328
+ complete_task:
329
+ commitMessage: &quot;refactor(auth): extract authentication logic to custom hooks&quot;
330
+ </code></pre>
331
+ <hr>
332
+ <h2>Hotfix Template</h2>
333
+ <p>Use this for urgent production fixes that need immediate deployment.</p>
334
+ <h3>Checklist</h3>
335
+ <pre><code class="language-markdown">## Hotfix: [Critical Issue]
336
+
337
+ ### Urgent Actions
338
+ - [ ] Identify production issue
339
+ - [ ] Create hotfix branch if using git-flow
340
+ - [ ] Start workflow task
341
+
342
+ ### Fix
343
+ - [ ] Implement minimal fix
344
+ - [ ] Test fix locally
345
+ - [ ] Mark as fixed
346
+
347
+ ### Testing
348
+ - [ ] Create focused regression test
349
+ - [ ] Run relevant test suite
350
+ - [ ] Manual verification in staging
351
+ - [ ] Record passing tests
352
+
353
+ ### Documentation
354
+ - [ ] Update CHANGELOG with hotfix note
355
+ - [ ] Document in workflow
356
+
357
+ ### Release
358
+ - [ ] Commit and push
359
+ - [ ] Perform PATCH release
360
+ - [ ] Deploy to production immediately
361
+ - [ ] Complete task
362
+ - [ ] Notify team
363
+ </code></pre>
364
+ <h3>Workflow Commands</h3>
365
+ <pre><code># 1. Start immediately
366
+ start_task:
367
+ description: &quot;HOTFIX: [critical issue description]&quot;
368
+ type: &quot;bugfix&quot;
369
+
370
+ # 2. Minimal fix
371
+ # ... implement fix ...
372
+
373
+ # 3. Mark as fixed
374
+ mark_bug_fixed:
375
+ summary: &quot;[Brief description of hotfix]&quot;
376
+
377
+ # 4. Focused test
378
+ create_tests
379
+
380
+ # 5. Run tests
381
+ run_tests:
382
+ passed: true
383
+ testCommand: &quot;npm test -- [relevant-tests]&quot;
384
+ details: &quot;[Critical path tests pass]&quot;
385
+
386
+ # 6. Document urgency
387
+ create_documentation:
388
+ documentationType: &quot;changelog&quot;
389
+ summary: &quot;HOTFIX: [issue] - [fix description]&quot;
390
+
391
+ # 7. Commit
392
+ commit_and_push:
393
+ commitMessage: &quot;fix([scope])!: HOTFIX - [description]&quot;
394
+
395
+ # 8. Emergency release
396
+ perform_release:
397
+ command: &quot;npm run release:patch&quot;
398
+ notes: &quot;v[X.Y.Z] - HOTFIX: [issue]&quot;
399
+
400
+ # 9. Complete
401
+ complete_task:
402
+ commitMessage: &quot;fix([scope])!: HOTFIX - [description]&quot;
403
+ </code></pre>
404
+ <h3>Example</h3>
405
+ <p><strong>Hotfix:</strong> Payment processing fails on production</p>
406
+ <pre><code>start_task:
407
+ description: &quot;HOTFIX: Payment gateway timeout causing checkout failures&quot;
408
+ type: &quot;bugfix&quot;
409
+
410
+ mark_bug_fixed:
411
+ summary: &quot;Increased payment API timeout from 5s to 30s and added retry logic&quot;
412
+
413
+ create_tests
414
+
415
+ run_tests:
416
+ passed: true
417
+ testCommand: &quot;npm test -- payment&quot;
418
+ details: &quot;Payment flow tests pass with timeout scenarios&quot;
419
+
420
+ create_documentation:
421
+ documentationType: &quot;changelog&quot;
422
+ summary: &quot;HOTFIX: Resolved payment timeout failures with increased timeout and retry&quot;
423
+
424
+ commit_and_push:
425
+ commitMessage: &quot;fix(payment)!: HOTFIX - increase timeout and add retry logic&quot;
426
+
427
+ perform_release:
428
+ command: &quot;npm run release:patch&quot;
429
+ notes: &quot;v1.4.2 - HOTFIX: Payment processing timeout&quot;
430
+
431
+ complete_task:
432
+ commitMessage: &quot;fix(payment)!: HOTFIX - increase timeout and add retry logic&quot;
433
+ </code></pre>
434
+ <hr>
435
+ <h2>Documentation Update Template</h2>
436
+ <p>Use this when updating documentation without code changes.</p>
437
+ <h3>Workflow Commands</h3>
438
+ <pre><code># 1. Start
439
+ start_task:
440
+ description: &quot;Update documentation for [topic]&quot;
441
+ type: &quot;other&quot;
442
+
443
+ # 2. Update docs
444
+ # ... write documentation ...
445
+
446
+ # 3. Mark as complete
447
+ mark_bug_fixed:
448
+ summary: &quot;Updated [documentation type] with [additions]&quot;
449
+
450
+ # 4. Skip tests (documentation only)
451
+ skip_tests:
452
+ reason: &quot;Documentation-only change, no code modified&quot;
453
+
454
+ # 5. Document
455
+ create_documentation:
456
+ documentationType: &quot;README&quot;
457
+ summary: &quot;[What documentation was added/updated]&quot;
458
+
459
+ # 6. Commit
460
+ commit_and_push:
461
+ commitMessage: &quot;docs([scope]): [description]&quot;
462
+
463
+ # 7. Release
464
+ perform_release:
465
+ command: &quot;npm run release:patch&quot;
466
+ notes: &quot;v[X.Y.Z] - Documentation updates&quot;
467
+
468
+ # 8. Complete
469
+ complete_task:
470
+ commitMessage: &quot;docs([scope]): [description]&quot;
471
+ </code></pre>
472
+ <h3>Example</h3>
473
+ <pre><code>start_task:
474
+ description: &quot;Add migration guide for v2.0 breaking changes&quot;
475
+ type: &quot;other&quot;
476
+
477
+ mark_bug_fixed:
478
+ summary: &quot;Created comprehensive v2.0 migration guide with examples&quot;
479
+
480
+ skip_tests:
481
+ reason: &quot;Documentation-only update, no code changes&quot;
482
+
483
+ create_documentation:
484
+ documentationType: &quot;API-docs&quot;
485
+ summary: &quot;Added MIGRATION_V2.md with breaking changes and upgrade steps&quot;
486
+
487
+ commit_and_push:
488
+ commitMessage: &quot;docs(migration): add v2.0 migration guide&quot;
489
+
490
+ perform_release:
491
+ command: &quot;npm run release:patch&quot;
492
+ notes: &quot;v1.4.3 - v2.0 migration guide&quot;
493
+
494
+ complete_task:
495
+ commitMessage: &quot;docs(migration): add v2.0 migration guide&quot;
496
+ </code></pre>
497
+ <hr>
498
+ <h2>Release Preparation Template</h2>
499
+ <p>Use this when preparing a major/minor release with multiple features.</p>
500
+ <h3>Checklist</h3>
501
+ <pre><code class="language-markdown">## Release Preparation: v[X.Y.Z]
502
+
503
+ ### Pre-Release
504
+ - [ ] Review all merged features
505
+ - [ ] Update version numbers
506
+ - [ ] Update CHANGELOG
507
+ - [ ] Run full test suite
508
+ - [ ] Check documentation completeness
509
+
510
+ ### Workflow
511
+ - [ ] Start workflow task
512
+ - [ ] Mark preparation as complete
513
+ - [ ] Verify tests
514
+ - [ ] Create documentation
515
+ - [ ] Commit and push
516
+ - [ ] Perform release
517
+ - [ ] Complete task
518
+
519
+ ### Post-Release
520
+ - [ ] Tag release in git
521
+ - [ ] Create GitHub release notes
522
+ - [ ] Publish to npm/registry
523
+ - [ ] Notify users
524
+ </code></pre>
525
+ <h3>Workflow Commands</h3>
526
+ <pre><code>start_task:
527
+ description: &quot;Prepare release v[X.Y.Z] with [feature list]&quot;
528
+ type: &quot;other&quot;
529
+
530
+ mark_bug_fixed:
531
+ summary: &quot;Release preparation complete: CHANGELOG updated, version bumped to [X.Y.Z]&quot;
532
+
533
+ create_tests
534
+
535
+ run_tests:
536
+ passed: true
537
+ testCommand: &quot;npm test -- --coverage&quot;
538
+ details: &quot;Full test suite: [X tests pass], coverage [Y%]&quot;
539
+
540
+ create_documentation:
541
+ documentationType: &quot;changelog&quot;
542
+ summary: &quot;Updated CHANGELOG with all v[X.Y.Z] features and fixes&quot;
543
+
544
+ commit_and_push:
545
+ commitMessage: &quot;chore(release): prepare v[X.Y.Z]&quot;
546
+
547
+ perform_release:
548
+ command: &quot;npm run release:minor&quot;
549
+ notes: &quot;v[X.Y.Z] - [Release highlights]&quot;
550
+
551
+ complete_task:
552
+ commitMessage: &quot;chore(release): prepare v[X.Y.Z]&quot;
553
+ </code></pre>
554
+ <hr>
555
+ <h2>Using Templates in Antigravity</h2>
556
+ <h3>Quick Template Application</h3>
557
+ <ol>
558
+ <li><strong>Choose your template</strong> based on task type</li>
559
+ <li><strong>Copy the workflow commands</strong> section</li>
560
+ <li><strong>Customize</strong> brackets [...] with your specific details</li>
561
+ <li><strong>Execute</strong> commands in Antigravity</li>
562
+ </ol>
563
+ <h3>Template Variables</h3>
564
+ <p>Replace these placeholders in templates:</p>
565
+ <ul>
566
+ <li><code>[Feature Name]</code> - Your feature description</li>
567
+ <li><code>[Bug Description]</code> - Bug summary</li>
568
+ <li><code>[scope]</code> - Conventional commit scope (e.g., auth, ui, api)</li>
569
+ <li><code>[description]</code> - Commit description</li>
570
+ <li><code>[X.Y.Z]</code> - Version number</li>
571
+ <li><code>[X tests]</code> - Number of tests</li>
572
+ <li><code>[Y%]</code> - Coverage percentage</li>
573
+ </ul>
574
+ <h3>Automation with Workflows</h3>
575
+ <p>Save these as Antigravity workflow files in <code>.agent/workflows/</code>:</p>
576
+ <ul>
577
+ <li><code>dev-workflow-feature.md</code></li>
578
+ <li><code>dev-workflow-bugfix.md</code></li>
579
+ <li><code>dev-workflow-refactor.md</code></li>
580
+ <li><code>dev-workflow-hotfix.md</code></li>
581
+ </ul>
582
+ <p>Then use slash commands like <code>/dev-workflow-feature</code> to load templates!</p>
583
+ <hr>
584
+ <h2>Next Steps</h2>
585
+ <ul>
586
+ <li>See <a href="./EXAMPLES.md">EXAMPLES.md</a> for real-world usage scenarios</li>
587
+ <li>Check <a href="./TROUBLESHOOTING.md">TROUBLESHOOTING.md</a> for common issues</li>
588
+ <li>Return to <a href="./GETTING-STARTED.md">GETTING-STARTED.md</a> for setup</li>
589
+ </ul>
590
+ <hr>
591
+ <p><strong>Consistent workflows lead to consistent quality!</strong> ⚡</p>