@codemcp/workflows 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/package.json +3 -2
  2. package/packages/cli/dist/{dist-UGVUJIDN.js → dist-6TO57O6M.js} +3 -2
  3. package/packages/cli/dist/index.js +4 -2
  4. package/packages/cli/package.json +1 -1
  5. package/packages/cli/resources/agents/architect.yaml +61 -0
  6. package/packages/cli/resources/agents/business-analyst.yaml +60 -0
  7. package/packages/cli/resources/agents/developer.yaml +61 -0
  8. package/packages/cli/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  9. package/packages/cli/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  10. package/packages/cli/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  11. package/packages/cli/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  12. package/packages/cli/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  13. package/packages/cli/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  14. package/packages/cli/resources/templates/architecture/c4.md +224 -0
  15. package/packages/cli/resources/templates/architecture/freestyle.md +53 -0
  16. package/packages/cli/resources/templates/architecture/game.md +250 -0
  17. package/packages/cli/resources/templates/architecture/none.md +17 -0
  18. package/packages/cli/resources/templates/design/comprehensive.md +207 -0
  19. package/packages/cli/resources/templates/design/freestyle.md +37 -0
  20. package/packages/cli/resources/templates/design/game.md +66 -0
  21. package/packages/cli/resources/templates/design/none.md +17 -0
  22. package/packages/cli/resources/templates/requirements/ears.md +90 -0
  23. package/packages/cli/resources/templates/requirements/freestyle.md +42 -0
  24. package/packages/cli/resources/templates/requirements/game.md +162 -0
  25. package/packages/cli/resources/templates/requirements/none.md +17 -0
  26. package/packages/cli/resources/templates/skills/POWER.md +23 -0
  27. package/packages/cli/resources/templates/skills/SKILL.md +19 -0
  28. package/packages/cli/resources/workflows/adr.yaml +157 -0
  29. package/packages/cli/resources/workflows/big-bang-conversion.yaml +592 -0
  30. package/packages/cli/resources/workflows/boundary-testing.yaml +376 -0
  31. package/packages/cli/resources/workflows/bugfix.yaml +177 -0
  32. package/packages/cli/resources/workflows/business-analysis.yaml +597 -0
  33. package/packages/cli/resources/workflows/c4-analysis.yaml +471 -0
  34. package/packages/cli/resources/workflows/epcc.yaml +183 -0
  35. package/packages/cli/resources/workflows/game-beginner.yaml +434 -0
  36. package/packages/cli/resources/workflows/greenfield.yaml +201 -0
  37. package/packages/cli/resources/workflows/minor.yaml +138 -0
  38. package/packages/cli/resources/workflows/posts.yaml +193 -0
  39. package/packages/cli/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  40. package/packages/cli/resources/workflows/sdd-bugfix.yaml +381 -0
  41. package/packages/cli/resources/workflows/sdd-feature-crowd.yaml +713 -0
  42. package/packages/cli/resources/workflows/sdd-feature.yaml +471 -0
  43. package/packages/cli/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  44. package/packages/cli/resources/workflows/sdd-greenfield.yaml +463 -0
  45. package/packages/cli/resources/workflows/slides.yaml +237 -0
  46. package/packages/cli/resources/workflows/tdd.yaml +160 -0
  47. package/packages/cli/resources/workflows/waterfall.yaml +209 -0
  48. package/packages/core/package.json +1 -1
  49. package/packages/core/resources/agents/architect.yaml +61 -0
  50. package/packages/core/resources/agents/business-analyst.yaml +60 -0
  51. package/packages/core/resources/agents/developer.yaml +61 -0
  52. package/packages/core/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  53. package/packages/core/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  54. package/packages/core/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  55. package/packages/core/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  56. package/packages/core/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  57. package/packages/core/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  58. package/packages/core/resources/templates/architecture/c4.md +224 -0
  59. package/packages/core/resources/templates/architecture/freestyle.md +53 -0
  60. package/packages/core/resources/templates/architecture/game.md +250 -0
  61. package/packages/core/resources/templates/architecture/none.md +17 -0
  62. package/packages/core/resources/templates/design/comprehensive.md +207 -0
  63. package/packages/core/resources/templates/design/freestyle.md +37 -0
  64. package/packages/core/resources/templates/design/game.md +66 -0
  65. package/packages/core/resources/templates/design/none.md +17 -0
  66. package/packages/core/resources/templates/requirements/ears.md +90 -0
  67. package/packages/core/resources/templates/requirements/freestyle.md +42 -0
  68. package/packages/core/resources/templates/requirements/game.md +162 -0
  69. package/packages/core/resources/templates/requirements/none.md +17 -0
  70. package/packages/core/resources/templates/skills/POWER.md +23 -0
  71. package/packages/core/resources/templates/skills/SKILL.md +19 -0
  72. package/packages/core/resources/workflows/adr.yaml +157 -0
  73. package/packages/core/resources/workflows/big-bang-conversion.yaml +592 -0
  74. package/packages/core/resources/workflows/boundary-testing.yaml +376 -0
  75. package/packages/core/resources/workflows/bugfix.yaml +177 -0
  76. package/packages/core/resources/workflows/business-analysis.yaml +597 -0
  77. package/packages/core/resources/workflows/c4-analysis.yaml +471 -0
  78. package/packages/core/resources/workflows/epcc.yaml +183 -0
  79. package/packages/core/resources/workflows/game-beginner.yaml +434 -0
  80. package/packages/core/resources/workflows/greenfield.yaml +201 -0
  81. package/packages/core/resources/workflows/minor.yaml +138 -0
  82. package/packages/core/resources/workflows/posts.yaml +193 -0
  83. package/packages/core/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  84. package/packages/core/resources/workflows/sdd-bugfix.yaml +381 -0
  85. package/packages/core/resources/workflows/sdd-feature-crowd.yaml +713 -0
  86. package/packages/core/resources/workflows/sdd-feature.yaml +471 -0
  87. package/packages/core/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  88. package/packages/core/resources/workflows/sdd-greenfield.yaml +463 -0
  89. package/packages/core/resources/workflows/slides.yaml +237 -0
  90. package/packages/core/resources/workflows/tdd.yaml +160 -0
  91. package/packages/core/resources/workflows/waterfall.yaml +209 -0
  92. package/packages/docs/package.json +1 -1
  93. package/packages/mcp-server/dist/index.js +3 -2
  94. package/packages/mcp-server/package.json +1 -1
  95. package/packages/mcp-server/resources/agents/architect.yaml +61 -0
  96. package/packages/mcp-server/resources/agents/business-analyst.yaml +60 -0
  97. package/packages/mcp-server/resources/agents/developer.yaml +61 -0
  98. package/packages/mcp-server/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  99. package/packages/mcp-server/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  100. package/packages/mcp-server/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  101. package/packages/mcp-server/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  102. package/packages/mcp-server/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  103. package/packages/mcp-server/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  104. package/packages/mcp-server/resources/templates/architecture/c4.md +224 -0
  105. package/packages/mcp-server/resources/templates/architecture/freestyle.md +53 -0
  106. package/packages/mcp-server/resources/templates/architecture/game.md +250 -0
  107. package/packages/mcp-server/resources/templates/architecture/none.md +17 -0
  108. package/packages/mcp-server/resources/templates/design/comprehensive.md +207 -0
  109. package/packages/mcp-server/resources/templates/design/freestyle.md +37 -0
  110. package/packages/mcp-server/resources/templates/design/game.md +66 -0
  111. package/packages/mcp-server/resources/templates/design/none.md +17 -0
  112. package/packages/mcp-server/resources/templates/requirements/ears.md +90 -0
  113. package/packages/mcp-server/resources/templates/requirements/freestyle.md +42 -0
  114. package/packages/mcp-server/resources/templates/requirements/game.md +162 -0
  115. package/packages/mcp-server/resources/templates/requirements/none.md +17 -0
  116. package/packages/mcp-server/resources/templates/skills/POWER.md +23 -0
  117. package/packages/mcp-server/resources/templates/skills/SKILL.md +19 -0
  118. package/packages/mcp-server/resources/workflows/adr.yaml +157 -0
  119. package/packages/mcp-server/resources/workflows/big-bang-conversion.yaml +592 -0
  120. package/packages/mcp-server/resources/workflows/boundary-testing.yaml +376 -0
  121. package/packages/mcp-server/resources/workflows/bugfix.yaml +177 -0
  122. package/packages/mcp-server/resources/workflows/business-analysis.yaml +597 -0
  123. package/packages/mcp-server/resources/workflows/c4-analysis.yaml +471 -0
  124. package/packages/mcp-server/resources/workflows/epcc.yaml +183 -0
  125. package/packages/mcp-server/resources/workflows/game-beginner.yaml +434 -0
  126. package/packages/mcp-server/resources/workflows/greenfield.yaml +201 -0
  127. package/packages/mcp-server/resources/workflows/minor.yaml +138 -0
  128. package/packages/mcp-server/resources/workflows/posts.yaml +193 -0
  129. package/packages/mcp-server/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  130. package/packages/mcp-server/resources/workflows/sdd-bugfix.yaml +381 -0
  131. package/packages/mcp-server/resources/workflows/sdd-feature-crowd.yaml +713 -0
  132. package/packages/mcp-server/resources/workflows/sdd-feature.yaml +471 -0
  133. package/packages/mcp-server/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  134. package/packages/mcp-server/resources/workflows/sdd-greenfield.yaml +463 -0
  135. package/packages/mcp-server/resources/workflows/slides.yaml +237 -0
  136. package/packages/mcp-server/resources/workflows/tdd.yaml +160 -0
  137. package/packages/mcp-server/resources/workflows/waterfall.yaml +209 -0
  138. package/packages/visualizer/package.json +1 -1
@@ -0,0 +1,237 @@
1
+ name: slides
2
+ description: 'A comprehensive workflow for creating presentations - tool-agnostic approach that works with Slidev, PowerPoint, Google Slides, or any presentation platform'
3
+ initial_state: ideate
4
+
5
+ # Enhanced metadata for better discoverability
6
+ metadata:
7
+ domain: 'office'
8
+ complexity: 'medium'
9
+ bestFor:
10
+ - 'Presentation creation'
11
+ - 'Slide deck development'
12
+ - 'Conference talks'
13
+ - 'Training materials'
14
+ useCases:
15
+ - 'Creating a technical presentation'
16
+ - 'Building training slides'
17
+ - 'Preparing a conference talk'
18
+ examples:
19
+ - 'Create a product demo presentation'
20
+ - 'Build onboarding slides'
21
+ - 'Develop a technical workshop'
22
+
23
+ states:
24
+ ideate:
25
+ description: 'Brainstorm presentation concept and define strategic foundation'
26
+ default_instructions: |
27
+ **Clarify the presentation foundation** with the user by gathering essential information:
28
+
29
+ - Brainstorm presentation topic and key messages
30
+ - Define target audience and their knowledge level
31
+ - Set presentation goals and success criteria
32
+ - Research topic and gather reference materials
33
+ - Define scope, time constraints, and context
34
+
35
+ **Update** the plan file with ideation progress and key decisions before proceeding to structure.
36
+
37
+ transitions:
38
+ - trigger: ideation_complete
39
+ to: structure
40
+ transition_reason: 'Presentation concept and goals clearly defined, ready for content structuring'
41
+
42
+ structure:
43
+ description: 'Organize content flow and logical progression'
44
+ default_instructions: |
45
+ **Create a detailed presentation structure** by organizing your content logically and effectively:
46
+
47
+ - Create detailed presentation outline with main sections
48
+ - Define slide sequence and narrative flow
49
+ - Plan smooth transitions between topics
50
+ - Identify key examples, case studies, or demonstrations needed
51
+ - Estimate timing for each section and overall presentation
52
+ - Consider audience engagement points and interaction opportunities
53
+
54
+ **Update** the plan file with structural decisions and progress before moving to content drafting.
55
+
56
+ transitions:
57
+ - trigger: structure_complete
58
+ to: draft
59
+ additional_instructions: |
60
+ **Structure phase complete!** You have a well-organized outline and clear content flow.
61
+
62
+ Update the plan file with drafting tasks and mark completed structural work.
63
+ transition_reason: 'Content structure and flow established, ready for content creation'
64
+
65
+ - trigger: need_more_ideation
66
+ to: ideate
67
+ additional_instructions: 'Structural work revealed gaps in the initial concept or goals. Focus on clarifying these fundamental aspects.'
68
+ transition_reason: 'Structure work revealed need for more ideation or concept refinement'
69
+
70
+ - trigger: abandon_presentation
71
+ to: ideate
72
+ instructions: |
73
+ **Abandon structural work** - Clean up structural work and return to ideation.
74
+
75
+ The plan file and any completed work will remain for future reference.
76
+ additional_instructions: 'Presentation abandoned during structure phase. Clean up and prepare for new topics.'
77
+ transition_reason: 'User decided to abandon presentation during structure phase'
78
+
79
+ draft:
80
+ description: 'Create content, speaker notes, and visual planning'
81
+ default_instructions: |
82
+ **Create content and speaker notes** to establish the presentation material and delivery guide:
83
+
84
+ - Write clear, engaging content for each slide/section
85
+ - Create comprehensive speaker notes as a main deliverable
86
+ - Make strategic decisions about visual vs. spoken content split
87
+ - Identify concepts that can be effectively visualized
88
+ - Define what each visualization should communicate
89
+ - Create placeholders and specifications for visual content
90
+ - Ensure content aligns with timing and audience needs
91
+
92
+ **Update** the plan file with drafting progress and content decisions before moving to styling.
93
+
94
+ transitions:
95
+ - trigger: draft_complete
96
+ to: style
97
+ additional_instructions: |
98
+ **Draft phase complete!** You have solid content, speaker notes, and visual planning.
99
+
100
+ Update the plan file with styling tasks and mark completed drafting work.
101
+ transition_reason: 'Content and speaker notes complete, ready for visual design and styling'
102
+
103
+ - trigger: need_more_structure
104
+ to: structure
105
+ additional_instructions: 'Drafting revealed issues with content organization or flow. Focus on refining the structural foundation.'
106
+ transition_reason: 'Content creation revealed need for better structure or organization'
107
+
108
+ - trigger: abandon_presentation
109
+ to: ideate
110
+ instructions: |
111
+ **Abandon drafting work** - Clean up content work and return to ideation.
112
+
113
+ The plan file and any completed work will remain for future reference.
114
+ additional_instructions: 'Presentation abandoned during draft phase. Clean up and prepare for new topics.'
115
+ transition_reason: 'User decided to abandon presentation during draft phase'
116
+
117
+ style:
118
+ description: 'Apply design, create visuals, and enhance presentation aesthetics'
119
+ default_instructions: |
120
+ **Apply visual design and create presentation aesthetics** to bring professional appeal and consistency:
121
+
122
+ - Evaluate presentation requirements and choose appropriate tool/platform
123
+ - Select themes, templates, and establish visual design approach
124
+ - Source existing visuals, images, and graphic elements
125
+ - Create detailed AI image generation prompts for missing visuals
126
+ - Generate or create required visual content using AI tools or other methods
127
+ - Apply consistent visual design, colors, and branding
128
+ - Ensure visual elements effectively support and enhance the content
129
+ - Test visual consistency across all slides/sections
130
+
131
+ **Update** the plan file with styling progress and design decisions before moving to review.
132
+
133
+ transitions:
134
+ - trigger: style_complete
135
+ to: review
136
+ additional_instructions: |
137
+ **Style phase complete!** You have a visually appealing presentation with consistent design.
138
+
139
+ Update the plan file with review tasks and mark completed styling work.
140
+ transition_reason: 'Visual design and styling complete, ready for content and delivery review'
141
+
142
+ - trigger: need_more_content
143
+ to: draft
144
+ additional_instructions: 'Styling work revealed gaps in content or speaker notes. Focus on completing the content foundation.'
145
+ transition_reason: 'Visual design revealed need for additional content or speaker note refinement'
146
+
147
+ - trigger: abandon_presentation
148
+ to: ideate
149
+ instructions: |
150
+ **Abandon styling work** - Clean up design work and return to ideation.
151
+
152
+ The plan file and any completed work will remain for future reference.
153
+ additional_instructions: 'Presentation abandoned during style phase. Clean up and prepare for new topics.'
154
+ transition_reason: 'User decided to abandon presentation during style phase'
155
+
156
+ review:
157
+ description: 'Validate content quality and presentation effectiveness'
158
+ default_instructions: |
159
+ **Validate presentation quality** by reviewing content, timing, visuals, and delivery readiness:
160
+
161
+ - Review content flow, narrative coherence, and logical progression
162
+ - Test presentation timing and pacing for your allocated time
163
+ - Verify visual quality, consistency, and professional appearance
164
+ - Practice delivery to identify potential issues or improvements
165
+ - Gather feedback from test audience, colleagues, or stakeholders
166
+ - Check technical setup, compatibility, and backup plans
167
+ - Ensure all interactive elements and visuals work correctly
168
+ - Refine speaker notes and delivery preparation
169
+
170
+ **Update** the plan file with review progress and refinements before moving to delivery preparation.
171
+
172
+ transitions:
173
+ - trigger: review_complete
174
+ to: deliver
175
+ additional_instructions: |
176
+ **Review phase complete!** Your presentation has been validated and refined for delivery.
177
+
178
+ Update the plan file with delivery preparation tasks and mark completed review work.
179
+ transition_reason: 'Presentation reviewed and validated, ready for final delivery preparation'
180
+
181
+ - trigger: need_style_changes
182
+ to: style
183
+ additional_instructions: 'Review revealed visual or design issues that need attention. Focus on addressing these styling concerns.'
184
+ transition_reason: 'Review process identified visual or design issues requiring style phase work'
185
+
186
+ - trigger: need_content_changes
187
+ to: draft
188
+ additional_instructions: 'Review revealed content gaps or issues that need addressing. Focus on refining the content and speaker notes.'
189
+ transition_reason: 'Review process identified content issues requiring draft phase work'
190
+
191
+ - trigger: abandon_presentation
192
+ to: ideate
193
+ instructions: |
194
+ **Abandon review work** - Clean up review work and return to ideation.
195
+
196
+ The plan file and any completed work will remain for future reference.
197
+ additional_instructions: 'Presentation abandoned during review phase. Clean up and prepare for new topics.'
198
+ transition_reason: 'User decided to abandon presentation during review phase'
199
+
200
+ deliver:
201
+ description: 'Prepare final presentation for delivery'
202
+ default_instructions: |
203
+ **Prepare final delivery** by exporting formats, testing setup, and ensuring flawless execution:
204
+
205
+ - Export presentation to all required formats (native, PDF, backup formats)
206
+ - Finalize speaker setup, notes, and delivery materials
207
+ - Configure and test presentation environment and technical setup
208
+ - Create comprehensive contingency plans for potential technical issues
209
+ - Conduct final rehearsal in actual delivery environment if possible
210
+ - Prepare handouts, follow-up materials, or additional resources
211
+ - Ensure all backup plans and alternatives are ready
212
+ - Final check of timing, flow, and delivery readiness
213
+
214
+ **Update** the plan file with delivery preparation progress to ensure successful delivery.
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'
@@ -0,0 +1,160 @@
1
+ # yaml-language-server: $schema=../state-machine-schema.json
2
+ ---
3
+ name: 'tdd'
4
+ description: 'Test-Driven Development workflow: Explore → Red → Green → Refactor cycle for quality-focused development'
5
+ initial_state: 'explore'
6
+
7
+ # Enhanced metadata for better discoverability
8
+ metadata:
9
+ domain: 'code'
10
+ complexity: 'medium'
11
+ bestFor:
12
+ - 'TDD development'
13
+ - 'Test-first coding'
14
+ - 'Quality-focused development'
15
+ - 'Refactoring existing code'
16
+ useCases:
17
+ - 'Adding new features with comprehensive tests'
18
+ - 'Refactoring legacy code safely'
19
+ - 'Building robust, well-tested components'
20
+ examples:
21
+ - 'Add new API endpoint with full test coverage'
22
+ - 'Refactor existing function with safety net of tests'
23
+ - 'Build new feature following TDD principles'
24
+
25
+ # States with default instructions and transitions
26
+ states:
27
+ explore:
28
+ description: 'Research and exploration phase - understanding the problem space and codebase'
29
+ default_instructions: |
30
+ **STEP 1:** Gather context about what needs to be developed. Focus on the WHY and WHAT, not the HOW.
31
+
32
+ **STEP 2:** Research the codebase and understand existing patterns.
33
+ - Ask the user about conventions or rules if uncertain
34
+ - Read relevant files and documentation
35
+ - If `$REQUIREMENTS_DOC` exists, understand and document requirements there, otherwise document in your task management system
36
+
37
+ **STEP 3:** Document your findings and create tasks as needed.
38
+ - Don't write code or tests yet
39
+ - Focus on understanding the problem space
40
+ - Prepare for the RED phase of the TDD cycle
41
+ transitions:
42
+ - trigger: 'exploration_complete'
43
+ to: 'red'
44
+ additional_instructions: 'Update task progress as you complete exploration work.'
45
+ transition_reason: 'Sufficient understanding gained, ready to start TDD cycle with failing test'
46
+
47
+ red:
48
+ description: 'RED phase - Write a failing test that defines the expected behavior'
49
+ default_instructions: |
50
+ Write a failing test that defines the expected behavior for the feature.
51
+
52
+ **STEP 1:** Validate test approach with the user before writing.
53
+ - Determine what type of test is appropriate (unit, integration, acceptance, etc.)
54
+ - Confirm your test will validate the actual requirements
55
+ - Ensure alignment with the feature specification
56
+
57
+ **STEP 2:** Write a focused, meaningful test.
58
+ - Clearly define the expected behavior
59
+ - Will fail initially since functionality doesn't exist yet
60
+ - Focus on one specific aspect of the functionality
61
+ - Use appropriate assertions (not meaningless checks like assert(true))
62
+
63
+ **STEP 3:** Validate test failure.
64
+ - Run the test to confirm it fails for the right reason
65
+ - Document the test and expected failure mode
66
+ - Update task progress
67
+ transitions:
68
+ - trigger: 'test_written_and_failing'
69
+ to: 'green'
70
+ additional_instructions: 'Update task progress as you complete test writing work.'
71
+ transition_reason: 'Failing test successfully written and validated, ready to implement'
72
+
73
+ - trigger: 'need_more_exploration'
74
+ to: 'explore'
75
+ transition_reason: 'Test writing revealed need for more exploration'
76
+
77
+ - trigger: 'abandon_feature'
78
+ to: 'explore'
79
+ additional_instructions: 'Clean up any test artifacts and prepare for new tasks.'
80
+ transition_reason: 'User decided to abandon feature during test phase'
81
+
82
+ green:
83
+ description: 'GREEN phase - Write only the necessary code to make the test pass'
84
+ default_instructions: |
85
+ Implement the necessary code to make the failing test pass with proper functionality.
86
+
87
+ **STEP 1:** Write real, working implementation.
88
+ - Make the test pass with actual logic, not shortcuts
89
+ - Write only what's necessary (no over-engineering)
90
+ - Avoid dirty hacks such as hardcoded return values or meaningless assertions
91
+ - Focus on solving the actual problem
92
+
93
+ **STEP 2:** Validate implementation quality.
94
+ - Run the test to confirm it passes
95
+ - Verify no shortcuts or copy-paste code without understanding
96
+ - Ensure the solution actually solves the problem
97
+ - Check that logic is proper, not a bypass
98
+
99
+ **STEP 3:** Document and track progress.
100
+ - Document your implementation approach
101
+ - Update task progress
102
+ transitions:
103
+ - trigger: 'test_passing'
104
+ to: 'refactor'
105
+ additional_instructions: 'Update task progress as you complete implementation work.'
106
+ transition_reason: 'Test passes with proper implementation, ready for refactoring'
107
+
108
+ - trigger: 'need_different_test'
109
+ to: 'red'
110
+ transition_reason: 'Implementation work revealed need to revise the test'
111
+
112
+ - trigger: 'need_more_exploration'
113
+ to: 'explore'
114
+ transition_reason: 'Implementation work revealed need for more exploration'
115
+
116
+ - trigger: 'abandon_feature'
117
+ to: 'explore'
118
+ additional_instructions: 'Clean up any incomplete code and prepare for new tasks.'
119
+ transition_reason: 'User decided to abandon feature during implementation'
120
+
121
+ refactor:
122
+ description: 'REFACTOR phase - Improve code quality while keeping tests green (cleanup phase)'
123
+ default_instructions: |
124
+ Improve code quality while keeping all tests green. This is the cleanup phase where you enhance readability and maintainability.
125
+
126
+ **STEP 1:** Identify improvement opportunities.
127
+ - Remove code duplication
128
+ - Improve variable and function names
129
+ - Extract methods for better organization
130
+ - Simplify complex logic
131
+ - Apply appropriate design patterns
132
+
133
+ **STEP 2:** Make incremental improvements safely.
134
+ - Run tests after each refactoring change
135
+ - Immediately revert any change that breaks tests
136
+ - Make small, focused improvements
137
+ - Stop when code is clean with no obvious improvements remaining
138
+
139
+ **STEP 3:** Document and complete.
140
+ - Document significant refactoring decisions
141
+ - Update task progress
142
+ transitions:
143
+ - trigger: 'refactoring_complete'
144
+ to: 'red'
145
+ additional_instructions: 'Update task progress as you complete refactoring work.'
146
+ transition_reason: 'Code cleanup complete, ready for next TDD cycle'
147
+
148
+ - trigger: 'need_different_approach'
149
+ to: 'green'
150
+ transition_reason: 'Refactoring revealed need to revise implementation'
151
+
152
+ - trigger: 'feature_complete'
153
+ to: 'explore'
154
+ additional_instructions: 'Update task progress to reflect feature completion.'
155
+ transition_reason: 'Feature fully implemented and cleaned up, ready for new tasks'
156
+
157
+ - trigger: 'abandon_feature'
158
+ to: 'explore'
159
+ additional_instructions: 'Clean up any refactoring work and prepare for new tasks.'
160
+ transition_reason: 'User decided to abandon feature during refactoring'
@@ -0,0 +1,209 @@
1
+ # yaml-language-server: $schema=../state-machine-schema.json
2
+ ---
3
+ name: 'waterfall'
4
+ description: 'V-Model: Specification down to test – the historical way. Ideal for larger, design-heavy tasks with well-defined requirements'
5
+ initial_state: 'requirements'
6
+
7
+ # Enhanced metadata for better discoverability
8
+ metadata:
9
+ domain: 'code'
10
+ complexity: 'high'
11
+ bestFor:
12
+ - 'Large feature development'
13
+ - 'Complex system changes'
14
+ - 'Well-defined requirements'
15
+ - 'Design-heavy projects'
16
+ useCases:
17
+ - 'Building a new module from scratch'
18
+ - 'Implementing complex business logic'
19
+ - 'Major architectural changes'
20
+ examples:
21
+ - 'Create a new authentication system'
22
+ - 'Build a reporting dashboard'
23
+ - 'Implement a payment processing workflow'
24
+ requiresDocumentation: true
25
+
26
+ # States with default instructions and transitions
27
+ states:
28
+ requirements:
29
+ description: 'Gathering and analyzing requirements'
30
+ default_instructions: |
31
+ Familiarize yourself with the code base and understand project goals, scope, constraints, and success criteria.
32
+
33
+ - Who are the key stakeholders? (end users, business owners, technical teams)
34
+ - Which requirements are must-have vs nice-to-have?
35
+ - How will you measure success? What are the acceptance criteria?
36
+ - What are your time, budget, technical, or regulatory constraints?
37
+ - What existing systems must this integrate with?
38
+
39
+ Document all requirements in `$REQUIREMENTS_DOC`. Create actionable tasks referencing those requirements.
40
+ transitions:
41
+ - trigger: 'requirements_complete'
42
+ to: 'design'
43
+ transition_reason: 'All requirements tasks completed, moving to technical design'
44
+ review_perspectives:
45
+ - perspective: 'business_analyst'
46
+ prompt: 'Review requirements completeness, clarity, and business value. Ensure all stakeholder needs are captured and requirements are testable. Check for missing edge cases or unclear acceptance criteria.'
47
+ - perspective: 'ux_expert'
48
+ prompt: 'Evaluate user experience implications and usability requirements. Ensure user needs and workflows are properly defined. Identify potential UX challenges or accessibility concerns.'
49
+
50
+ design:
51
+ description: 'Technical design and architecture planning'
52
+ default_instructions: |
53
+ Review requirements from `$REQUIREMENTS_DOC` and design the technical solution.
54
+
55
+ Focus on HOW to implement what's needed including architecture, technologies, data models, API design, and quality goals. Clarify performance expectations and technology preferences if not already obvious from the current analysis.
56
+
57
+ Document architectural decisions in `$ARCHITECTURE_DOC` and detailed design in `$DESIGN_DOC`. Create tasks and ensure the approach is solid before implementation.
58
+ transitions:
59
+ - trigger: 'need_more_requirements'
60
+ to: 'requirements'
61
+ additional_instructions: 'Design work revealed gaps in requirements understanding. Focus on clarifying the specific requirements that are blocking design decisions.'
62
+ transition_reason: 'Design work revealed need for additional requirements clarification'
63
+
64
+ - trigger: 'design_complete'
65
+ to: 'implementation'
66
+ transition_reason: 'Technical design is complete, ready for implementation'
67
+ review_perspectives:
68
+ - perspective: 'architect'
69
+ prompt: 'Review technical architecture, design patterns, and system integration. Ensure scalability, maintainability, and alignment with existing systems. Evaluate technology choices and architectural decisions.'
70
+ - perspective: 'security_expert'
71
+ prompt: 'Evaluate security considerations, data protection, and potential vulnerabilities in the proposed design. Review authentication, authorization, data handling, and potential attack vectors.'
72
+
73
+ implementation:
74
+ description: 'Building the solution according to design'
75
+ default_instructions: |
76
+ Follow the architecture from `$ARCHITECTURE_DOC` and detailed design from `$DESIGN_DOC` to build the solution.
77
+
78
+ Before starting, clarify the approach:
79
+ - Should this be implemented incrementally or all at once? Any specific order of implementation?
80
+ - Are there high-risk parts that need extra validation or careful implementation?
81
+
82
+ Ensure requirements from `$REQUIREMENTS_DOC` are met. Focus on code structure, error handling, security, and maintainability. Write clean, well-documented code and include basic testing. Update task progress during implementation work.
83
+ transitions:
84
+ - trigger: 'need_design_changes'
85
+ to: 'design'
86
+ additional_instructions: "Implementation revealed issues with the current design. Consider what you've learned during coding and adjust the design accordingly. Document the changes and reasons."
87
+ transition_reason: 'Implementation work revealed need to revise the design'
88
+
89
+ - trigger: 'need_more_requirements'
90
+ to: 'requirements'
91
+ additional_instructions: 'Implementation revealed gaps in requirements understanding. Focus on clarifying the specific requirements that are blocking implementation.'
92
+ transition_reason: 'Implementation work revealed need for additional requirements'
93
+
94
+ - trigger: 'implementation_complete'
95
+ to: 'qa'
96
+ transition_reason: 'Core implementation is complete, ready for quality assurance'
97
+ review_perspectives:
98
+ - perspective: 'senior_software_developer'
99
+ prompt: 'Review code quality, best practices, and implementation approach. Ensure clean, maintainable, and efficient code. Check for proper error handling, logging, and code organization.'
100
+ - perspective: 'performance_engineer'
101
+ prompt: 'Assess performance implications, resource usage, and potential bottlenecks in the implementation. Review algorithms, data structures, and system resource utilization.'
102
+
103
+ qa:
104
+ description: 'Quality assurance and code review'
105
+ default_instructions: |
106
+ Perform systematic quality checks and code review:
107
+
108
+ **STEP 1: Automated Quality Checks**
109
+ - Run syntax checking tools or validate syntax manually
110
+ - Build the project to verify it compiles without errors
111
+ - Execute linting tools to ensure code style consistency
112
+ - Run existing tests to verify functionality
113
+
114
+ **STEP 2: Multi-Perspective Code Review**
115
+ Conduct code review from security, performance, UX, maintainability, and requirement compliance perspectives. Verify implementation matches `$DESIGN_DOC` specifications and fulfills targeted requirements from `$REQUIREMENTS_DOC`.
116
+
117
+ Update task progress and mark completed work during QA review.
118
+ transitions:
119
+ - trigger: 'need_implementation_fixes'
120
+ to: 'implementation'
121
+ additional_instructions: 'Quality assurance revealed issues that require code changes. Focus on the specific problems identified during QA review.'
122
+ transition_reason: 'QA found issues requiring implementation fixes'
123
+
124
+ - trigger: 'need_design_changes'
125
+ to: 'design'
126
+ additional_instructions: 'Quality assurance revealed fundamental design issues. Consider the QA findings and adjust the design accordingly.'
127
+ transition_reason: 'QA found issues requiring design changes'
128
+
129
+ - trigger: 'qa_complete'
130
+ to: 'testing'
131
+ transition_reason: 'Quality assurance is complete, ready for comprehensive testing'
132
+
133
+ testing:
134
+ description: 'Comprehensive testing and validation'
135
+ default_instructions: |
136
+ Create and execute comprehensive test plans to validate feature completeness.
137
+
138
+ - Write and execute tests with focus on test coverage and edge cases
139
+ - Conduct integration testing to ensure all components work together
140
+ - Validate user acceptance and ensure everything works as expected
141
+ transitions:
142
+ - trigger: 'need_implementation_fixes'
143
+ to: 'implementation'
144
+ additional_instructions: 'Testing revealed bugs or issues that require code changes. Focus on the specific problems identified during testing.'
145
+ transition_reason: 'Testing found issues requiring implementation fixes'
146
+
147
+ - trigger: 'need_qa_review'
148
+ to: 'qa'
149
+ additional_instructions: 'Testing revealed quality issues that need additional QA review. Focus on the specific quality concerns identified.'
150
+ transition_reason: 'Testing found issues requiring additional QA review'
151
+
152
+ - trigger: 'testing_complete'
153
+ to: 'finalize'
154
+ transition_reason: 'All testing is complete, feature is ready for delivery'
155
+ review_perspectives:
156
+ - perspective: 'business_analyst'
157
+ prompt: 'Verify that all requirements have been met and business objectives are achieved. Ensure the solution delivers the expected business value and meets acceptance criteria.'
158
+ - perspective: 'ux_expert'
159
+ prompt: 'Confirm user experience goals are met and the solution is user-friendly and accessible. Validate that user workflows are intuitive and efficient.'
160
+
161
+ finalize:
162
+ description: 'Code cleanup and documentation finalization'
163
+ default_instructions: |
164
+ Complete the feature by cleaning up code and updating documentation.
165
+
166
+ **STEP 1: Code Cleanup**
167
+
168
+ Remove debug output and temporary code:
169
+ - Search for and remove all temporary debug output statements used during development
170
+ - Look for language-specific debug output methods (console logging, print statements, debug output functions)
171
+
172
+ Review and address TODO/FIXME comments:
173
+ - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
174
+ - Remove completed TODOs
175
+ - Convert remaining TODOs to proper issue tracking if needed
176
+
177
+ Remove debugging code blocks:
178
+ - Remove temporary debugging code, test code blocks, and commented-out code
179
+ - Clean up any experimental code that's no longer needed
180
+ - Ensure proper error handling replaces temporary debug logging
181
+
182
+ **STEP 2: Documentation Review**
183
+
184
+ Review and update documentation to reflect final implementation:
185
+ - Update `$REQUIREMENTS_DOC` if requirements changed during development
186
+ - Update `$ARCHITECTURE_DOC` if architectural decisions evolved
187
+ - Update `$DESIGN_DOC` if design details were refined or changed
188
+ - Compare documentation against actual implemented functionality
189
+ - Only modify documentation sections that have functional changes
190
+ - Remove references to development iterations, progress notes, and temporary decisions
191
+ - Ensure documentation describes the final implemented state, not the development process
192
+ - Ask user to review document updates
193
+
194
+ **STEP 3: Final Validation**
195
+
196
+ - Run existing tests to ensure cleanup didn't break functionality
197
+ - Verify documentation accuracy with a final review
198
+ - Ensure code is ready for production/delivery
199
+
200
+ Update task progress and mark completed work as you finalize the feature.
201
+ transitions:
202
+ - trigger: 'need_final_changes'
203
+ to: 'implementation'
204
+ additional_instructions: 'Finalization revealed issues that require code changes. Focus on the specific problems identified during final review.'
205
+ transition_reason: 'Final review found issues requiring implementation changes'
206
+
207
+ - trigger: 'finalization_complete'
208
+ to: 'requirements'
209
+ transition_reason: 'Feature delivery complete, beginning new development cycle'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-visualizer",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.ts",