@codemcp/workflows 6.18.4 → 6.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/package.json +2 -2
  2. package/packages/cli/dist/{chunk-4TXLRBGW.js → chunk-4N42FFJE.js} +2 -228
  3. package/packages/cli/dist/{cli-MNJS4MGX.js → cli-MFHC7UWY.js} +3 -3
  4. package/packages/cli/dist/{dist-T6Q2II5X.js → dist-ISN3FRV4.js} +2 -1
  5. package/packages/cli/dist/{dist-WS5DFBKD.js → dist-TDV3DJ2J.js} +1 -13
  6. package/packages/cli/dist/index.js +2 -2
  7. package/packages/cli/package.json +1 -1
  8. package/packages/cli/resources/workflows/adr.yaml +2 -4
  9. package/packages/cli/resources/workflows/boundary-testing.yaml +2 -9
  10. package/packages/cli/resources/workflows/bugfix.yaml +2 -13
  11. package/packages/cli/resources/workflows/c4-analysis.yaml +3 -5
  12. package/packages/cli/resources/workflows/epcc.yaml +2 -13
  13. package/packages/cli/resources/workflows/greenfield.yaml +2 -13
  14. package/packages/cli/resources/workflows/minor.yaml +2 -13
  15. package/packages/cli/resources/workflows/posts.yaml +2 -17
  16. package/packages/cli/resources/workflows/pr-review.yaml +2 -4
  17. package/packages/cli/resources/workflows/qrspi.yaml +241 -0
  18. package/packages/cli/resources/workflows/skilled-bugfix.yaml +2 -13
  19. package/packages/cli/resources/workflows/skilled-epcc.yaml +2 -13
  20. package/packages/cli/resources/workflows/skilled-greenfield.yaml +2 -13
  21. package/packages/cli/resources/workflows/slides.yaml +2 -22
  22. package/packages/cli/resources/workflows/tdd.yaml +12 -2
  23. package/packages/cli/resources/workflows/waterfall.yaml +2 -8
  24. package/packages/core/dist/index.d.ts +0 -1
  25. package/packages/core/dist/index.js +0 -1
  26. package/packages/core/dist/index.js.map +1 -1
  27. package/packages/core/dist/project-docs-manager.js +1 -0
  28. package/packages/core/dist/project-docs-manager.js.map +1 -1
  29. package/packages/core/package.json +1 -1
  30. package/packages/core/resources/workflows/adr.yaml +2 -4
  31. package/packages/core/resources/workflows/boundary-testing.yaml +2 -9
  32. package/packages/core/resources/workflows/bugfix.yaml +2 -13
  33. package/packages/core/resources/workflows/c4-analysis.yaml +3 -5
  34. package/packages/core/resources/workflows/epcc.yaml +2 -13
  35. package/packages/core/resources/workflows/greenfield.yaml +2 -13
  36. package/packages/core/resources/workflows/minor.yaml +2 -13
  37. package/packages/core/resources/workflows/posts.yaml +2 -17
  38. package/packages/core/resources/workflows/pr-review.yaml +2 -4
  39. package/packages/core/resources/workflows/qrspi.yaml +241 -0
  40. package/packages/core/resources/workflows/skilled-bugfix.yaml +2 -13
  41. package/packages/core/resources/workflows/skilled-epcc.yaml +2 -13
  42. package/packages/core/resources/workflows/skilled-greenfield.yaml +2 -13
  43. package/packages/core/resources/workflows/slides.yaml +2 -22
  44. package/packages/core/resources/workflows/tdd.yaml +12 -2
  45. package/packages/core/resources/workflows/waterfall.yaml +2 -8
  46. package/packages/docs/.vitepress/dist/404.html +3 -3
  47. package/packages/docs/.vitepress/dist/assets/{app.CAEWYLPb.js → app.CMJFkZ5d.js} +1 -1
  48. package/packages/docs/.vitepress/dist/assets/chunks/{theme.CshoOl3e.js → theme.BarNEZau.js} +1 -1
  49. package/packages/docs/.vitepress/dist/assets/{style.DfNfC54K.css → style.CuNDUwrv.css} +1 -1
  50. package/packages/docs/.vitepress/dist/assets/workflows_qrspi.md.CPYiTyJ8.js +1 -0
  51. package/packages/docs/.vitepress/dist/assets/workflows_qrspi.md.CPYiTyJ8.lean.js +1 -0
  52. package/packages/docs/.vitepress/dist/dev/ARCHITECTURE.html +4 -4
  53. package/packages/docs/.vitepress/dist/dev/DEVELOPMENT.html +4 -4
  54. package/packages/docs/.vitepress/dist/dev/LOGGING.html +4 -4
  55. package/packages/docs/.vitepress/dist/dev/PUBLISHING.html +4 -4
  56. package/packages/docs/.vitepress/dist/hashmap.json +1 -1
  57. package/packages/docs/.vitepress/dist/index.html +4 -4
  58. package/packages/docs/.vitepress/dist/user/advanced-engineering.html +4 -4
  59. package/packages/docs/.vitepress/dist/user/agent-setup.html +4 -4
  60. package/packages/docs/.vitepress/dist/user/beads-integration.html +4 -4
  61. package/packages/docs/.vitepress/dist/user/crowd-mcp-integration.html +4 -4
  62. package/packages/docs/.vitepress/dist/user/custom-workflows.html +4 -4
  63. package/packages/docs/.vitepress/dist/user/git-commit-feature.html +4 -4
  64. package/packages/docs/.vitepress/dist/user/how-it-works.html +4 -4
  65. package/packages/docs/.vitepress/dist/user/long-term-memory.html +4 -4
  66. package/packages/docs/.vitepress/dist/user/packaged-workflows.html +4 -4
  67. package/packages/docs/.vitepress/dist/user/tutorial.html +4 -4
  68. package/packages/docs/.vitepress/dist/user/workflow-selection.html +4 -4
  69. package/packages/docs/.vitepress/dist/workflows/adr.html +4 -4
  70. package/packages/docs/.vitepress/dist/workflows/adr.yaml +2 -4
  71. package/packages/docs/.vitepress/dist/workflows/big-bang-conversion.html +4 -4
  72. package/packages/docs/.vitepress/dist/workflows/boundary-testing.html +4 -4
  73. package/packages/docs/.vitepress/dist/workflows/boundary-testing.yaml +2 -9
  74. package/packages/docs/.vitepress/dist/workflows/bugfix.html +4 -4
  75. package/packages/docs/.vitepress/dist/workflows/bugfix.yaml +2 -13
  76. package/packages/docs/.vitepress/dist/workflows/business-analysis.html +4 -4
  77. package/packages/docs/.vitepress/dist/workflows/c4-analysis.html +4 -4
  78. package/packages/docs/.vitepress/dist/workflows/c4-analysis.yaml +3 -5
  79. package/packages/docs/.vitepress/dist/workflows/epcc.html +4 -4
  80. package/packages/docs/.vitepress/dist/workflows/epcc.yaml +2 -13
  81. package/packages/docs/.vitepress/dist/workflows/game-beginner.html +4 -4
  82. package/packages/docs/.vitepress/dist/workflows/greenfield.html +4 -4
  83. package/packages/docs/.vitepress/dist/workflows/greenfield.yaml +2 -13
  84. package/packages/docs/.vitepress/dist/workflows/minor.html +4 -4
  85. package/packages/docs/.vitepress/dist/workflows/minor.yaml +2 -13
  86. package/packages/docs/.vitepress/dist/workflows/posts.html +4 -4
  87. package/packages/docs/.vitepress/dist/workflows/posts.yaml +2 -17
  88. package/packages/docs/.vitepress/dist/workflows/pr-review.html +4 -4
  89. package/packages/docs/.vitepress/dist/workflows/pr-review.yaml +2 -4
  90. package/packages/docs/.vitepress/dist/workflows/qrspi.html +26 -0
  91. package/packages/docs/.vitepress/dist/workflows/qrspi.yaml +241 -0
  92. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix-crowd.html +4 -4
  93. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix.html +4 -4
  94. package/packages/docs/.vitepress/dist/workflows/sdd-feature-crowd.html +4 -4
  95. package/packages/docs/.vitepress/dist/workflows/sdd-feature.html +4 -4
  96. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield-crowd.html +4 -4
  97. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield.html +4 -4
  98. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.html +4 -4
  99. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.yaml +2 -13
  100. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.html +4 -4
  101. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.yaml +2 -13
  102. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.html +4 -4
  103. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.yaml +2 -13
  104. package/packages/docs/.vitepress/dist/workflows/slides.html +4 -4
  105. package/packages/docs/.vitepress/dist/workflows/slides.yaml +2 -22
  106. package/packages/docs/.vitepress/dist/workflows/tdd.html +4 -4
  107. package/packages/docs/.vitepress/dist/workflows/tdd.yaml +12 -2
  108. package/packages/docs/.vitepress/dist/workflows/waterfall.html +4 -4
  109. package/packages/docs/.vitepress/dist/workflows/waterfall.yaml +2 -8
  110. package/packages/docs/.vitepress/dist/workflows.html +4 -4
  111. package/packages/docs/package.json +1 -1
  112. package/packages/mcp-server/dist/index.js +2 -1
  113. package/packages/mcp-server/package.json +1 -1
  114. package/packages/mcp-server/resources/workflows/adr.yaml +2 -4
  115. package/packages/mcp-server/resources/workflows/boundary-testing.yaml +2 -9
  116. package/packages/mcp-server/resources/workflows/bugfix.yaml +2 -13
  117. package/packages/mcp-server/resources/workflows/c4-analysis.yaml +3 -5
  118. package/packages/mcp-server/resources/workflows/epcc.yaml +2 -13
  119. package/packages/mcp-server/resources/workflows/greenfield.yaml +2 -13
  120. package/packages/mcp-server/resources/workflows/minor.yaml +2 -13
  121. package/packages/mcp-server/resources/workflows/posts.yaml +2 -17
  122. package/packages/mcp-server/resources/workflows/pr-review.yaml +2 -4
  123. package/packages/mcp-server/resources/workflows/qrspi.yaml +241 -0
  124. package/packages/mcp-server/resources/workflows/skilled-bugfix.yaml +2 -13
  125. package/packages/mcp-server/resources/workflows/skilled-epcc.yaml +2 -13
  126. package/packages/mcp-server/resources/workflows/skilled-greenfield.yaml +2 -13
  127. package/packages/mcp-server/resources/workflows/slides.yaml +2 -22
  128. package/packages/mcp-server/resources/workflows/tdd.yaml +12 -2
  129. package/packages/mcp-server/resources/workflows/waterfall.yaml +2 -8
  130. package/packages/opencode-plugin/dist/index.js +2 -1
  131. package/packages/opencode-plugin/package.json +1 -1
  132. package/packages/opencode-plugin/resources/workflows/adr.yaml +2 -4
  133. package/packages/opencode-plugin/resources/workflows/boundary-testing.yaml +2 -9
  134. package/packages/opencode-plugin/resources/workflows/bugfix.yaml +2 -13
  135. package/packages/opencode-plugin/resources/workflows/c4-analysis.yaml +3 -5
  136. package/packages/opencode-plugin/resources/workflows/epcc.yaml +2 -13
  137. package/packages/opencode-plugin/resources/workflows/greenfield.yaml +2 -13
  138. package/packages/opencode-plugin/resources/workflows/minor.yaml +2 -13
  139. package/packages/opencode-plugin/resources/workflows/posts.yaml +2 -17
  140. package/packages/opencode-plugin/resources/workflows/pr-review.yaml +2 -4
  141. package/packages/opencode-plugin/resources/workflows/qrspi.yaml +241 -0
  142. package/packages/opencode-plugin/resources/workflows/skilled-bugfix.yaml +2 -13
  143. package/packages/opencode-plugin/resources/workflows/skilled-epcc.yaml +2 -13
  144. package/packages/opencode-plugin/resources/workflows/skilled-greenfield.yaml +2 -13
  145. package/packages/opencode-plugin/resources/workflows/slides.yaml +2 -22
  146. package/packages/opencode-plugin/resources/workflows/tdd.yaml +12 -2
  147. package/packages/opencode-plugin/resources/workflows/waterfall.yaml +2 -8
  148. package/packages/opencode-tui-plugin/package.json +1 -1
  149. package/packages/visualizer/dist/WorkflowVisualizer.vue +8 -0
  150. package/packages/visualizer/dist/services/workflow-list.ts +1 -0
  151. package/packages/visualizer/package.json +1 -1
  152. package/resources/state-machine-schema.json +29 -0
  153. package/resources/workflows/adr.yaml +2 -4
  154. package/resources/workflows/boundary-testing.yaml +2 -9
  155. package/resources/workflows/bugfix.yaml +2 -13
  156. package/resources/workflows/c4-analysis.yaml +3 -5
  157. package/resources/workflows/epcc.yaml +2 -13
  158. package/resources/workflows/greenfield.yaml +2 -13
  159. package/resources/workflows/minor.yaml +2 -13
  160. package/resources/workflows/posts.yaml +2 -17
  161. package/resources/workflows/pr-review.yaml +2 -4
  162. package/resources/workflows/qrspi.yaml +241 -0
  163. package/resources/workflows/skilled-bugfix.yaml +2 -13
  164. package/resources/workflows/skilled-epcc.yaml +2 -13
  165. package/resources/workflows/skilled-greenfield.yaml +2 -13
  166. package/resources/workflows/slides.yaml +2 -22
  167. package/resources/workflows/tdd.yaml +12 -2
  168. package/resources/workflows/waterfall.yaml +2 -8
  169. package/packages/core/dist/state-machine.d.ts +0 -52
  170. package/packages/core/dist/state-machine.js +0 -256
  171. package/packages/core/dist/state-machine.js.map +0 -1
@@ -213,25 +213,5 @@ states:
213
213
 
214
214
  **Update** the plan file with delivery preparation progress to ensure successful delivery.
215
215
 
216
- transitions:
217
- - trigger: delivery_complete
218
- to: ideate
219
- additional_instructions: |
220
- **Delivery phase complete!** Your presentation has been successfully delivered.
221
-
222
- Mark all delivery tasks as complete in the plan file and prepare for new work.
223
- transition_reason: 'Presentation delivery completed successfully, ready for new projects'
224
-
225
- - trigger: need_final_review
226
- to: review
227
- additional_instructions: 'Final preparation revealed issues requiring additional review. Focus on addressing these concerns before delivery.'
228
- transition_reason: 'Delivery preparation identified issues requiring additional review'
229
-
230
- - trigger: abandon_presentation
231
- to: ideate
232
- instructions: |
233
- **Abandon delivery preparation** - Clean up delivery preparation and return to ideation.
234
-
235
- The plan file and completed work will remain for future reference.
236
- additional_instructions: 'Presentation abandoned before delivery. Clean up and prepare for new topics.'
237
- transition_reason: 'User decided to abandon presentation before delivery'
216
+ $DONE_DEFAULT
217
+ transitions: []
@@ -160,11 +160,21 @@ states:
160
160
  transition_reason: 'Refactoring revealed need to revise implementation'
161
161
 
162
162
  - trigger: 'feature_complete'
163
- to: 'explore'
163
+ to: 'done'
164
164
  additional_instructions: 'Update task progress to reflect feature completion.'
165
- transition_reason: 'Feature fully implemented and cleaned up, ready for new tasks'
165
+ transition_reason: 'Feature fully implemented and cleaned up, ready to exit TDD cycle'
166
166
 
167
167
  - trigger: 'abandon_feature'
168
168
  to: 'explore'
169
169
  additional_instructions: 'Clean up any refactoring work and prepare for new tasks.'
170
170
  transition_reason: 'User decided to abandon feature during refactoring'
171
+
172
+ done:
173
+ description: 'TDD cycle complete - feature fully implemented and cleaned up'
174
+ allowed_file_patterns:
175
+ - '**/*'
176
+ default_instructions: |
177
+ The TDD cycle is complete. All aspects of the feature have been implemented and refactored.
178
+
179
+ $DONE_DEFAULT
180
+ transitions: []
@@ -214,12 +214,6 @@ states:
214
214
  - Ensure code is ready for production/delivery
215
215
 
216
216
  Update task progress and mark completed work as you finalize the feature.
217
- transitions:
218
- - trigger: 'need_final_changes'
219
- to: 'implementation'
220
- additional_instructions: 'Finalization revealed issues that require code changes. Focus on the specific problems identified during final review.'
221
- transition_reason: 'Final review found issues requiring implementation changes'
222
217
 
223
- - trigger: 'finalization_complete'
224
- to: 'requirements'
225
- transition_reason: 'Feature delivery complete, beginning new development cycle'
218
+ $DONE_DEFAULT
219
+ transitions: []
@@ -19022,7 +19022,8 @@ var ProjectDocsManager = class {
19022
19022
  $DESIGN_DOC: paths.design,
19023
19023
  $VIBE_DIR: vibeDir,
19024
19024
  $BRANCH_NAME: branchDirName,
19025
- $VIBE_ROLE: agentRole
19025
+ $VIBE_ROLE: agentRole,
19026
+ $DONE_DEFAULT: "Feature work is complete. Do NOT transition to any other state \u2014 this is a terminal state. If this is a GitHub repository: create a PR. Always: present the final result to the user."
19026
19027
  };
19027
19028
  }
19028
19029
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-opencode",
3
- "version": "6.18.4",
3
+ "version": "6.20.0",
4
4
  "description": "OpenCode plugin for structured development workflows",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -151,7 +151,5 @@ states:
151
151
 
152
152
  Complete final validation and cleanup before the ADR is finalized.
153
153
 
154
- transitions:
155
- - trigger: need_decision_changes
156
- to: decide
157
- transition_reason: 'Final review found problems with the decision documentation'
154
+ $DONE_DEFAULT
155
+ transitions: []
@@ -364,13 +364,6 @@ states:
364
364
  - Ensure test suite is ready for ongoing use and maintenance
365
365
 
366
366
  Update the plan file with finalization progress and mark completed tasks.
367
- transitions:
368
- - trigger: 'need_test_changes'
369
- to: 'test_suite_implementation'
370
- additional_instructions: 'Finalization revealed issues with the test suite. Focus on addressing the specific problems identified during final review.'
371
- transition_reason: 'Finalization revealed issues requiring test implementation changes'
372
367
 
373
- - trigger: 'finalization_complete'
374
- to: 'architecture_analysis'
375
- additional_instructions: 'Boundary testing workflow complete! Test suite is ready for ongoing use and maintenance. Prepare for next boundary testing project.'
376
- transition_reason: 'Test suite finalization complete, ready for production use'
368
+ $DONE_DEFAULT
369
+ transitions: []
@@ -162,17 +162,6 @@ states:
162
162
  - Verify documentation accuracy with a final review
163
163
  - Ensure bug fix is ready for production
164
164
  - Update task progress and mark completed work as you finalize the bug fix
165
- transitions:
166
- - trigger: 'need_fix_changes'
167
- to: 'fix'
168
- additional_instructions: 'Finalization revealed issues with the bug fix. Focus on addressing the specific problems identified during final review.'
169
- transition_reason: 'Finalization revealed issues requiring fix changes'
170
-
171
- - trigger: 'finalization_complete'
172
- to: 'reproduce'
173
- transition_reason: 'Bug fix complete and finalized, ready for next issue'
174
165
 
175
- - trigger: 'abandon_bug'
176
- to: 'reproduce'
177
- additional_instructions: 'Bug finalization abandoned. Clean up any finalization work and prepare for new bug reports.'
178
- transition_reason: 'Bug finalization abandoned'
166
+ $DONE_DEFAULT
167
+ transitions: []
@@ -464,8 +464,6 @@ states:
464
464
  - Modernization roadmap
465
465
 
466
466
  The analysis provides a foundation for future development. Consider using other workflows (waterfall, epcc, etc.) with the comprehensive understanding gained.
467
- transitions:
468
- - trigger: 'refine_analysis'
469
- to: 'component_analysis'
470
- additional_instructions: 'Refine specific aspects of analysis. Focus on areas that need additional investigation.'
471
- transition_reason: 'Analysis review revealed need for additional component analysis'
467
+
468
+ $DONE_DEFAULT
469
+ transitions: []
@@ -180,17 +180,6 @@ states:
180
180
  - Ensure code is ready for production/delivery
181
181
 
182
182
  Update task progress and mark completed work as you finalize the feature.
183
- transitions:
184
- - trigger: 'need_code_changes'
185
- to: 'code'
186
- additional_instructions: 'Focus on the problems identified during final review.'
187
- transition_reason: 'Final review found issues requiring code changes'
188
-
189
- - trigger: 'commit_complete'
190
- to: 'explore'
191
- transition_reason: 'Feature delivery complete, ready for next task'
192
183
 
193
- - trigger: 'abandon_feature'
194
- to: 'explore'
195
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
196
- transition_reason: 'User decided to abandon feature during finalization'
184
+ $DONE_DEFAULT
185
+ transitions: []
@@ -201,17 +201,6 @@ states:
201
201
  - Verify documentation accuracy with a final review
202
202
  - Ensure project is ready for users and contributors
203
203
  - Update task progress and mark completed work as you finalize the project
204
- transitions:
205
- - trigger: 'need_code_changes'
206
- to: 'code'
207
- additional_instructions: 'Finalization revealed issues that require code changes. Focus on the problems identified during final review that affect usability or functionality.'
208
- transition_reason: 'Finalization revealed issues requiring code changes'
209
-
210
- - trigger: 'finalization_complete'
211
- to: 'ideation'
212
- transition_reason: 'Project delivery complete with finalized code and documentation, ready for next greenfield project'
213
204
 
214
- - trigger: 'abandon_project'
215
- to: 'ideation'
216
- additional_instructions: 'Project development abandoned during finalization. Clean up any finalization artifacts and prepare for new projects.'
217
- transition_reason: 'User decided to abandon project during finalization phase'
205
+ $DONE_DEFAULT
206
+ transitions: []
@@ -130,17 +130,6 @@ states:
130
130
  - Verify documentation accuracy with a final review
131
131
  - Ensure minor enhancement is ready for delivery
132
132
  - Update task progress and mark completed work as you finalize the minor enhancement
133
- transitions:
134
- - trigger: 'need_implementation_changes'
135
- to: 'implement'
136
- additional_instructions: 'Finalization revealed issues that require implementation changes. Focus on the specific problems identified during final review.'
137
- transition_reason: 'Finalization revealed issues requiring implementation changes'
138
-
139
- - trigger: 'finalization_complete'
140
- to: 'explore'
141
- transition_reason: 'Minor enhancement delivery complete, ready for next task'
142
133
 
143
- - trigger: 'abandon_feature'
144
- to: 'explore'
145
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
146
- transition_reason: 'User decided to abandon minor enhancement during finalization'
134
+ $DONE_DEFAULT
135
+ transitions: []
@@ -178,20 +178,5 @@ states:
178
178
  Maximize reach while maintaining content quality and consistency.
179
179
  Update `$PLAN_FILE` with distribution progress and publishing decisions.
180
180
 
181
- transitions:
182
- - trigger: distribution_complete
183
- to: discovery
184
- transition_reason: 'Post publishing completed successfully, ready for new projects'
185
-
186
- - trigger: need_final_review
187
- to: illustration
188
- additional_instructions: 'Refine visuals or content presentation based on issues identified during publishing preparation.'
189
- transition_reason: 'Publishing preparation identified issues requiring visual or content refinement'
190
-
191
- - trigger: abandon_post
192
- to: discovery
193
- instructions: |
194
- Abandon post development before distribution. Clean up distribution preparation and return to discovery.
195
- The `$PLAN_FILE` and completed work will remain for future reference.
196
- additional_instructions: 'Clean up and prepare for new topics.'
197
- transition_reason: 'User decided to abandon post before distribution'
181
+ $DONE_DEFAULT
182
+ transitions: []
@@ -171,7 +171,5 @@ states:
171
171
  Once confirmed, deliver accordingly. For inline comments, attach each finding to the
172
172
  specific file and line it refers to. For cross-cutting findings, use a top-level comment.
173
173
 
174
- transitions:
175
- - trigger: 'review_published'
176
- to: 'determine_intent'
177
- transition_reason: 'Review delivered, ready for next PR'
174
+ $DONE_DEFAULT
175
+ transitions: []
@@ -0,0 +1,241 @@
1
+ # yaml-language-server: $schema=../state-machine-schema.json
2
+ ---
3
+ name: 'qrspi'
4
+ description: 'Questions, Research, Design, Structure, Plan, Implement — for creative, complex challenges requiring deep alignment before execution'
5
+ initial_state: 'questions'
6
+
7
+ metadata:
8
+ domain: 'code'
9
+ complexity: 'high'
10
+ bestFor:
11
+ - 'Creative or complex challenges'
12
+ - 'Deep alignment before execution'
13
+ - 'Unconventional problems'
14
+ - 'Architecture-heavy features'
15
+ - 'High-stakes changes'
16
+ useCases:
17
+ - 'Designing a novel system architecture'
18
+ - 'Implementing complex multi-domain features'
19
+ - 'Solving problems with unclear requirements'
20
+ - 'Building features requiring extensive stakeholder alignment'
21
+ - 'Refactoring core infrastructure'
22
+ examples:
23
+ - 'Design and implement a new plugin architecture'
24
+ - 'Create a custom workflow engine with validation'
25
+ - 'Refactor monolith to modular services'
26
+ - 'Build a creative AI-powered feature with novel UX'
27
+
28
+ states:
29
+ questions:
30
+ description: 'Clarify intent, scope, and success criteria before any exploration'
31
+ allowed_file_patterns:
32
+ - '**/*.md'
33
+ - '**/*.txt'
34
+ - '**/*.adoc'
35
+ default_instructions: |
36
+ **Principle**: Clarify intent before exploring solutions.
37
+ This is the most important phase: You need to really deeply understand what makes the user want to introduce a change.
38
+ Ask questions about everything you can't determine straight from the existing codebase.
39
+ - Ask about the context
40
+ - follow up on explanations
41
+ - Ask about rejected alternatives or workarounds
42
+ Document in the development plan: the problem being solved, success criteria, constraints, and any clarifying questions asked. Use `$REQUIREMENTS_DOC` as context only — do not modify it.
43
+
44
+ Do not research, design, plan, or write code.
45
+ transitions:
46
+ - trigger: 'questions_answered'
47
+ to: 'research'
48
+ transition_reason: 'Intent clarified, ready to gather facts'
49
+
50
+ - trigger: 'abandon_feature'
51
+ to: 'questions'
52
+ instructions: 'Feature abandoned. Reset for new tasks.'
53
+ transition_reason: 'User abandoned feature during questions'
54
+
55
+ research:
56
+ description: 'Gather facts without forming conclusions or proposing solutions'
57
+ allowed_file_patterns:
58
+ - '**/*.md'
59
+ - '**/*.txt'
60
+ - '**/*.adoc'
61
+ default_instructions: |
62
+ **Principle**: Gather facts before forming opinions.
63
+
64
+ Explore the codebase, patterns, and relevant documentation. Document findings as facts (not opinions) in the development plan. Highlight what requires design decisions. Use `$REQUIREMENTS_DOC` as context only — do not modify it.
65
+
66
+ Do not propose solutions, make design decisions, or write code.
67
+ transitions:
68
+ - trigger: 'research_complete'
69
+ to: 'design'
70
+ transition_reason: 'Facts gathered, ready for design discussion'
71
+
72
+ - trigger: 'need_more_questions'
73
+ to: 'questions'
74
+ additional_instructions: 'Focus on the specific areas where intent is still unclear.'
75
+ transition_reason: 'Research revealed gaps in understanding'
76
+
77
+ - trigger: 'abandon_feature'
78
+ to: 'questions'
79
+ instructions: 'Feature abandoned. Reset for new tasks.'
80
+ transition_reason: 'User abandoned feature during research'
81
+
82
+ design:
83
+ description: 'Explore options and reach consensus on WHAT and high-level HOW'
84
+ allowed_file_patterns:
85
+ - '**/*.md'
86
+ - '**/*.txt'
87
+ - '**/*.adoc'
88
+ default_instructions: |
89
+ **Principle**: Align on WHAT and WHY before deciding detailed HOW.
90
+ This is the phase when the we imagening a suitable solution given the boundary conditions.
91
+ Propose 2-3 viable high-level approaches with trade-offs. Reference `$DESIGN_DOC` and `$ARCHITECTURE_DOC` if they exist. Reach consensus with the user on the direction. On loop-back from `need_design_changes`, update those docs if they exist.
92
+ It's crucial that the user gets actively involved to take an educated decision.
93
+
94
+ Document the agreed direction in the development plan.
95
+
96
+ Do not plan detailed implementation or write code.
97
+ transitions:
98
+ - trigger: 'design_approved'
99
+ to: 'structure'
100
+ transition_reason: 'Design direction approved, ready to decompose'
101
+ review_perspectives:
102
+ - perspective: 'product_owner'
103
+ prompt: 'Review whether the proposed design aligns with user goals, business value, and intended outcomes. Ensure the solution direction serves the actual need.'
104
+
105
+ - trigger: 'need_research'
106
+ to: 'research'
107
+ additional_instructions: 'Focus on the specific gaps that block design consensus.'
108
+ transition_reason: 'Design discussion revealed need for more research'
109
+
110
+ - trigger: 'abandon_feature'
111
+ to: 'questions'
112
+ instructions: 'Feature abandoned. Reset for new tasks.'
113
+ transition_reason: 'User abandoned feature during design'
114
+
115
+ structure:
116
+ description: 'Decompose the approved design into end-to-end vertical slices'
117
+ allowed_file_patterns:
118
+ - '**/*.md'
119
+ - '**/*.txt'
120
+ - '**/*.adoc'
121
+ default_instructions: |
122
+ **Principle**: Decompose into end-to-end, testable units before planning implementation details.
123
+
124
+ Define 1-5 vertical slices that each deliver user-visible behavior independently. Describe what each slice delivers, which components it touches, and how it will be tested end-to-end. Reference `$ARCHITECTURE_DOC` if it exists.
125
+
126
+ Document slice definitions in the development plan.
127
+
128
+ Do not plan implementation tasks or write code.
129
+ transitions:
130
+ - trigger: 'structure_defined'
131
+ to: 'plan'
132
+ transition_reason: 'Slices defined, ready for detailed planning'
133
+
134
+ - trigger: 'need_design_changes'
135
+ to: 'design'
136
+ additional_instructions: 'The design approach makes slicing difficult. Revisit the high-level approach with the user.'
137
+ transition_reason: 'Structure work revealed design gaps'
138
+
139
+ - trigger: 'abandon_feature'
140
+ to: 'questions'
141
+ instructions: 'Feature abandoned. Reset for new tasks.'
142
+ transition_reason: 'User abandoned feature during structure'
143
+
144
+ plan:
145
+ description: 'Create a detailed implementation plan per vertical slice'
146
+ allowed_file_patterns:
147
+ - '**/*.md'
148
+ - '**/*.txt'
149
+ - '**/*.adoc'
150
+ default_instructions: |
151
+ **Principle**: Define detailed HOW per slice without changing the design direction.
152
+
153
+ For each vertical slice, define actionable tasks, dependencies, and risks. If any existing document contradicts what is needed, document the contradiction in the development plan and use `need_design_changes`.
154
+
155
+ Document the plan in the development plan.
156
+
157
+ Do not change the design direction or write code.
158
+ transitions:
159
+ - trigger: 'plan_complete'
160
+ to: 'implement'
161
+ transition_reason: 'Plan complete, ready for coding'
162
+ review_perspectives:
163
+ - perspective: 'architect'
164
+ prompt: 'Review implementation strategy, design decisions, and integration approach for soundness and maintainability. Ensure the plan aligns with existing system architecture and follows best practices.'
165
+ - perspective: 'security_expert'
166
+ prompt: 'Assess security considerations and potential risks in the planned implementation approach. Review data handling, authentication, and potential vulnerabilities.'
167
+
168
+ - trigger: 'need_design_changes'
169
+ to: 'design'
170
+ additional_instructions: 'The approved design direction is unworkable for the planned slices. Revisit the high-level approach with the user.'
171
+ transition_reason: 'Planning revealed fundamental flaws in design direction'
172
+
173
+ - trigger: 'need_restructuring'
174
+ to: 'structure'
175
+ additional_instructions: 'The slice boundaries are wrong. Redefine the vertical slices.'
176
+ transition_reason: 'Planning revealed flaws in slice boundaries'
177
+
178
+ - trigger: 'abandon_feature'
179
+ to: 'questions'
180
+ instructions: 'Feature abandoned. Reset for new tasks.'
181
+ transition_reason: 'User abandoned feature during planning'
182
+
183
+ implement:
184
+ description: 'Build the solution slice by slice'
185
+ allowed_file_patterns:
186
+ - '**/*'
187
+ default_instructions: |
188
+ **Principle**: Execute the plan one slice at a time; delegate each slice to a fresh context.
189
+
190
+ Build each vertical slice end-to-end before moving to the next. Delegate each slice to a fresh agent session with focused context. Reference `$DESIGN_DOC`, `$ARCHITECTURE_DOC`, and `$REQUIREMENTS_DOC` if they exist. Prevent regressions via build, lint, and tests.
191
+
192
+ Adapt tactics within slices. Loop back via `need_design_changes` only if the high-level approach is fundamentally flawed.
193
+
194
+ Document progress in the development plan.
195
+ transitions:
196
+ - trigger: 'implementation_complete'
197
+ to: 'commit'
198
+ transition_reason: 'Implementation complete, ready for finalization'
199
+ review_perspectives:
200
+ - perspective: 'senior_software_developer'
201
+ prompt: 'Review code quality, best practices, testing coverage, and readiness for production deployment. Ensure the implementation follows coding standards and is maintainable.'
202
+ - perspective: 'performance_engineer'
203
+ prompt: 'Evaluate performance impact, resource efficiency, and scalability of the implemented solution. Check for potential bottlenecks or optimization opportunities.'
204
+
205
+ - trigger: 'need_replanning'
206
+ to: 'plan'
207
+ additional_instructions: 'Adjust the plan based on what you learned during coding. Document changes and reasons.'
208
+ transition_reason: 'Implementation revealed need to revise the plan'
209
+
210
+ - trigger: 'need_design_changes'
211
+ to: 'design'
212
+ additional_instructions: 'The high-level design approach is fundamentally flawed. Revisit design decisions with the user.'
213
+ transition_reason: 'Implementation revealed the approved design is unworkable'
214
+
215
+ - trigger: 'need_more_research'
216
+ to: 'research'
217
+ additional_instructions: 'Focus on the specific areas blocking implementation progress.'
218
+ transition_reason: 'Implementation revealed need for more research'
219
+
220
+ - trigger: 'abandon_feature'
221
+ to: 'questions'
222
+ instructions: 'Feature abandoned. Clean up incomplete code and reset for new tasks.'
223
+ transition_reason: 'User abandoned feature during implementation'
224
+
225
+ commit:
226
+ description: 'Cleanup, documentation finalization, and delivery'
227
+ allowed_file_patterns:
228
+ - '**/*'
229
+ default_instructions: |
230
+ **Principle**: Leave the codebase cleaner than you found it.
231
+
232
+ **Cleanup**: Remove debug output, temporary code, test code blocks, and completed TODOs. Address or document any remaining FIXMEs.
233
+
234
+ **Documentation**: Update `$REQUIREMENTS_DOC`, `$ARCHITECTURE_DOC`, and `$DESIGN_DOC` if they exist and changed during implementation. Otherwise, document changes in the development plan. Ensure docs reflect the final implemented state, not the development process.
235
+
236
+ **Validation**: Run tests to ensure no regressions. Verify the development plan is accurate.
237
+
238
+ Do not add new features.
239
+
240
+ $DONE_DEFAULT
241
+ transitions: []
@@ -158,17 +158,6 @@ states:
158
158
  - Verify documentation accuracy with a final review
159
159
  - Ensure bug fix is ready for production
160
160
  - Update task progress and mark completed work as you finalize the bug fix
161
- transitions:
162
- - trigger: 'need_fix_changes'
163
- to: 'fix'
164
- additional_instructions: 'Finalization revealed issues with the bug fix. Focus on addressing the specific problems identified during final review.'
165
- transition_reason: 'Finalization revealed issues requiring fix changes'
166
-
167
- - trigger: 'finalization_complete'
168
- to: 'reproduce'
169
- transition_reason: 'Bug fix complete and finalized, ready for next issue'
170
161
 
171
- - trigger: 'abandon_bug'
172
- to: 'reproduce'
173
- additional_instructions: 'Bug finalization abandoned. Clean up any finalization work and prepare for new bug reports.'
174
- transition_reason: 'Bug finalization abandoned'
162
+ $DONE_DEFAULT
163
+ transitions: []
@@ -155,17 +155,6 @@ states:
155
155
  - Ensure code is ready for production/delivery
156
156
 
157
157
  Update task progress and mark completed work as you finalize the feature.
158
- transitions:
159
- - trigger: 'need_code_changes'
160
- to: 'code'
161
- additional_instructions: 'Focus on the problems identified during final review.'
162
- transition_reason: 'Final review found issues requiring code changes'
163
-
164
- - trigger: 'commit_complete'
165
- to: 'explore'
166
- transition_reason: 'Feature delivery complete, ready for next task'
167
158
 
168
- - trigger: 'abandon_feature'
169
- to: 'explore'
170
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
171
- transition_reason: 'User decided to abandon feature during finalization'
159
+ $DONE_DEFAULT
160
+ transitions: []
@@ -191,17 +191,6 @@ states:
191
191
  - Verify documentation accuracy with a final review
192
192
  - Ensure project is ready for users and contributors
193
193
  - Update task progress and mark completed work as you finalize the project
194
- transitions:
195
- - trigger: 'need_code_changes'
196
- to: 'code'
197
- additional_instructions: 'Finalization revealed issues that require code changes. Focus on the problems identified during final review that affect usability or functionality.'
198
- transition_reason: 'Finalization revealed issues requiring code changes'
199
-
200
- - trigger: 'finalization_complete'
201
- to: 'ideation'
202
- transition_reason: 'Project delivery complete with finalized code and documentation, ready for next greenfield project'
203
194
 
204
- - trigger: 'abandon_project'
205
- to: 'ideation'
206
- additional_instructions: 'Project development abandoned during finalization. Clean up any finalization artifacts and prepare for new projects.'
207
- transition_reason: 'User decided to abandon project during finalization phase'
195
+ $DONE_DEFAULT
196
+ transitions: []
@@ -213,25 +213,5 @@ states:
213
213
 
214
214
  **Update** the plan file with delivery preparation progress to ensure successful delivery.
215
215
 
216
- transitions:
217
- - trigger: delivery_complete
218
- to: ideate
219
- additional_instructions: |
220
- **Delivery phase complete!** Your presentation has been successfully delivered.
221
-
222
- Mark all delivery tasks as complete in the plan file and prepare for new work.
223
- transition_reason: 'Presentation delivery completed successfully, ready for new projects'
224
-
225
- - trigger: need_final_review
226
- to: review
227
- additional_instructions: 'Final preparation revealed issues requiring additional review. Focus on addressing these concerns before delivery.'
228
- transition_reason: 'Delivery preparation identified issues requiring additional review'
229
-
230
- - trigger: abandon_presentation
231
- to: ideate
232
- instructions: |
233
- **Abandon delivery preparation** - Clean up delivery preparation and return to ideation.
234
-
235
- The plan file and completed work will remain for future reference.
236
- additional_instructions: 'Presentation abandoned before delivery. Clean up and prepare for new topics.'
237
- transition_reason: 'User decided to abandon presentation before delivery'
216
+ $DONE_DEFAULT
217
+ transitions: []
@@ -160,11 +160,21 @@ states:
160
160
  transition_reason: 'Refactoring revealed need to revise implementation'
161
161
 
162
162
  - trigger: 'feature_complete'
163
- to: 'explore'
163
+ to: 'done'
164
164
  additional_instructions: 'Update task progress to reflect feature completion.'
165
- transition_reason: 'Feature fully implemented and cleaned up, ready for new tasks'
165
+ transition_reason: 'Feature fully implemented and cleaned up, ready to exit TDD cycle'
166
166
 
167
167
  - trigger: 'abandon_feature'
168
168
  to: 'explore'
169
169
  additional_instructions: 'Clean up any refactoring work and prepare for new tasks.'
170
170
  transition_reason: 'User decided to abandon feature during refactoring'
171
+
172
+ done:
173
+ description: 'TDD cycle complete - feature fully implemented and cleaned up'
174
+ allowed_file_patterns:
175
+ - '**/*'
176
+ default_instructions: |
177
+ The TDD cycle is complete. All aspects of the feature have been implemented and refactored.
178
+
179
+ $DONE_DEFAULT
180
+ transitions: []
@@ -214,12 +214,6 @@ states:
214
214
  - Ensure code is ready for production/delivery
215
215
 
216
216
  Update task progress and mark completed work as you finalize the feature.
217
- transitions:
218
- - trigger: 'need_final_changes'
219
- to: 'implementation'
220
- additional_instructions: 'Finalization revealed issues that require code changes. Focus on the specific problems identified during final review.'
221
- transition_reason: 'Final review found issues requiring implementation changes'
222
217
 
223
- - trigger: 'finalization_complete'
224
- to: 'requirements'
225
- transition_reason: 'Feature delivery complete, beginning new development cycle'
218
+ $DONE_DEFAULT
219
+ transitions: []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-opencode-tui",
3
- "version": "6.18.4",
3
+ "version": "6.20.0",
4
4
  "description": "OpenCode TUI sidebar plugin that displays the current responsible-vibe workflow phase and name",
5
5
  "main": "workflows-phase.tsx",
6
6
  "exports": {
@@ -1011,6 +1011,14 @@ onUnmounted(() => {
1011
1011
  margin: var(--spacing-sm) 0;
1012
1012
  }
1013
1013
 
1014
+ #workflow-visualizer-app .code-block ul,
1015
+ #workflow-visualizer-app .code-block ol,
1016
+ #workflow-visualizer-app .code-block li {
1017
+ line-height: 1.25rem;
1018
+ padding: 0;
1019
+ margin: 0;
1020
+ }
1021
+
1014
1022
  /* Badges */
1015
1023
  #workflow-visualizer-app .badge {
1016
1024
  display: inline-flex;