@codemcp/workflows 6.0.3 → 6.1.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 (80) hide show
  1. package/package.json +2 -2
  2. package/packages/cli/dist/{chunk-RTDQR2KY.js → chunk-D2Q6Y3QQ.js} +5 -4
  3. package/packages/cli/dist/{cli-CZ4FMSWR.js → cli-UWGNSSFS.js} +50 -12
  4. package/packages/cli/dist/{dist-KZOA4GL5.js → dist-W7PPKVFG.js} +1 -1
  5. package/packages/cli/dist/{dist-6TO57O6M.js → dist-W7VMGB3G.js} +7 -5
  6. package/packages/cli/dist/index.js +2 -2
  7. package/packages/cli/package.json +1 -1
  8. package/packages/cli/resources/workflows/skilled-bugfix.yaml +182 -0
  9. package/packages/cli/resources/workflows/skilled-epcc.yaml +171 -0
  10. package/packages/cli/resources/workflows/skilled-greenfield.yaml +206 -0
  11. package/packages/core/dist/transition-engine.js +6 -4
  12. package/packages/core/dist/transition-engine.js.map +1 -1
  13. package/packages/core/package.json +1 -1
  14. package/packages/core/resources/workflows/skilled-bugfix.yaml +182 -0
  15. package/packages/core/resources/workflows/skilled-epcc.yaml +171 -0
  16. package/packages/core/resources/workflows/skilled-greenfield.yaml +206 -0
  17. package/packages/docs/.vitepress/dist/404.html +2 -2
  18. package/packages/docs/.vitepress/dist/assets/{app.Dz3lZH3M.js → app.BRB3NIl4.js} +1 -1
  19. package/packages/docs/.vitepress/dist/assets/chunks/{theme.q5Ewb3F1.js → theme.DMKMhwGo.js} +1 -1
  20. package/packages/docs/.vitepress/dist/assets/workflows_skilled-bugfix.md.YyOU6NjA.js +1 -0
  21. package/packages/docs/.vitepress/dist/assets/workflows_skilled-bugfix.md.YyOU6NjA.lean.js +1 -0
  22. package/packages/docs/.vitepress/dist/assets/workflows_skilled-epcc.md.BGeI6g1n.js +1 -0
  23. package/packages/docs/.vitepress/dist/assets/workflows_skilled-epcc.md.BGeI6g1n.lean.js +1 -0
  24. package/packages/docs/.vitepress/dist/assets/workflows_skilled-greenfield.md.CKxrbPQ-.js +1 -0
  25. package/packages/docs/.vitepress/dist/assets/workflows_skilled-greenfield.md.CKxrbPQ-.lean.js +1 -0
  26. package/packages/docs/.vitepress/dist/dev/ARCHITECTURE.html +3 -3
  27. package/packages/docs/.vitepress/dist/dev/DEVELOPMENT.html +3 -3
  28. package/packages/docs/.vitepress/dist/dev/LOGGING.html +3 -3
  29. package/packages/docs/.vitepress/dist/dev/PUBLISHING.html +3 -3
  30. package/packages/docs/.vitepress/dist/hashmap.json +1 -1
  31. package/packages/docs/.vitepress/dist/index.html +3 -3
  32. package/packages/docs/.vitepress/dist/user/advanced-engineering.html +3 -3
  33. package/packages/docs/.vitepress/dist/user/agent-setup.html +3 -3
  34. package/packages/docs/.vitepress/dist/user/beads-integration.html +3 -3
  35. package/packages/docs/.vitepress/dist/user/crowd-mcp-integration.html +3 -3
  36. package/packages/docs/.vitepress/dist/user/custom-workflows.html +3 -3
  37. package/packages/docs/.vitepress/dist/user/git-commit-feature.html +3 -3
  38. package/packages/docs/.vitepress/dist/user/how-it-works.html +3 -3
  39. package/packages/docs/.vitepress/dist/user/long-term-memory.html +3 -3
  40. package/packages/docs/.vitepress/dist/user/packaged-workflows.html +3 -3
  41. package/packages/docs/.vitepress/dist/user/tutorial.html +3 -3
  42. package/packages/docs/.vitepress/dist/user/workflow-selection.html +3 -3
  43. package/packages/docs/.vitepress/dist/workflows/adr.html +3 -3
  44. package/packages/docs/.vitepress/dist/workflows/big-bang-conversion.html +3 -3
  45. package/packages/docs/.vitepress/dist/workflows/boundary-testing.html +3 -3
  46. package/packages/docs/.vitepress/dist/workflows/bugfix.html +3 -3
  47. package/packages/docs/.vitepress/dist/workflows/business-analysis.html +3 -3
  48. package/packages/docs/.vitepress/dist/workflows/c4-analysis.html +3 -3
  49. package/packages/docs/.vitepress/dist/workflows/epcc.html +3 -3
  50. package/packages/docs/.vitepress/dist/workflows/game-beginner.html +3 -3
  51. package/packages/docs/.vitepress/dist/workflows/greenfield.html +3 -3
  52. package/packages/docs/.vitepress/dist/workflows/minor.html +3 -3
  53. package/packages/docs/.vitepress/dist/workflows/posts.html +3 -3
  54. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix-crowd.html +3 -3
  55. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix.html +3 -3
  56. package/packages/docs/.vitepress/dist/workflows/sdd-feature-crowd.html +3 -3
  57. package/packages/docs/.vitepress/dist/workflows/sdd-feature.html +3 -3
  58. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield-crowd.html +3 -3
  59. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield.html +3 -3
  60. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.html +26 -0
  61. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.yaml +182 -0
  62. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.html +26 -0
  63. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.yaml +171 -0
  64. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.html +26 -0
  65. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.yaml +206 -0
  66. package/packages/docs/.vitepress/dist/workflows/slides.html +3 -3
  67. package/packages/docs/.vitepress/dist/workflows/tdd.html +3 -3
  68. package/packages/docs/.vitepress/dist/workflows/waterfall.html +3 -3
  69. package/packages/docs/.vitepress/dist/workflows.html +3 -3
  70. package/packages/docs/package.json +1 -1
  71. package/packages/mcp-server/dist/index.js +7 -5
  72. package/packages/mcp-server/package.json +1 -1
  73. package/packages/mcp-server/resources/workflows/skilled-bugfix.yaml +182 -0
  74. package/packages/mcp-server/resources/workflows/skilled-epcc.yaml +171 -0
  75. package/packages/mcp-server/resources/workflows/skilled-greenfield.yaml +206 -0
  76. package/packages/visualizer/dist/services/workflow-list.ts +3 -0
  77. package/packages/visualizer/package.json +1 -1
  78. package/resources/workflows/skilled-bugfix.yaml +182 -0
  79. package/resources/workflows/skilled-epcc.yaml +171 -0
  80. package/resources/workflows/skilled-greenfield.yaml +206 -0
@@ -0,0 +1,206 @@
1
+ ---
2
+ name: 'skilled-greenfield'
3
+ description: 'A comprehensive workflow for starting new projects from scratch: Ideation, Architecture, Plan, Code, Document - ideal for greenfield projects requiring thorough upfront planning'
4
+ initial_state: 'ideation'
5
+
6
+ # Enhanced metadata for better discoverability
7
+ metadata:
8
+ domain: 'skilled'
9
+ complexity: 'high'
10
+ bestFor:
11
+ - 'New projects from scratch'
12
+ - 'Greenfield development'
13
+ - 'Complex system design'
14
+ - 'Comprehensive planning needed'
15
+ useCases:
16
+ - 'Starting a new application'
17
+ - 'Building a new service'
18
+ - 'Creating a new library'
19
+ examples:
20
+ - 'Build a new web application'
21
+ - 'Create a microservice architecture'
22
+ - 'Develop a new CLI tool'
23
+ requiresDocumentation: true
24
+
25
+ # States with default instructions and transitions
26
+ states:
27
+ ideation:
28
+ description: 'Deep requirements discovery and PRD creation phase'
29
+ default_instructions: |
30
+ Understand WHAT the system should do, WHO will use it, WHY it's needed, and WHAT'S in/out of scope by exploring:
31
+ - Are there existing solutions? What gaps do they have?
32
+ - What technologies must/cannot be used? Why?
33
+ - How will you measure product success?
34
+ - Have you validated this need with potential users?
35
+
36
+ Use the **starting-project** skill to understand how SAB projects are set up and what conventions and tooling to expect.
37
+
38
+ Don't discuss technical implementation yet - focus purely on understanding the problem space and requirements. Check whether there is a requirements document in the project and if so, read it carefully. Create tasks as needed.
39
+ transitions:
40
+ - trigger: 'ideation_complete'
41
+ to: 'architecture'
42
+ transition_reason: 'PRD is complete with clear requirements, ready for technical architecture design'
43
+ review_perspectives:
44
+ - perspective: 'business_analyst'
45
+ prompt: 'Review the Product Requirements Document for completeness, clarity, and business value. Ensure all stakeholder needs are captured, requirements are testable, and scope is well-defined.'
46
+ - perspective: 'ux_expert'
47
+ prompt: 'Evaluate user experience requirements and usability considerations. Ensure user personas, workflows, and interaction patterns are properly defined for the greenfield project.'
48
+
49
+ architecture:
50
+ description: 'Tech stack selection and architecture design phase'
51
+ default_instructions: |
52
+ Design the technical solution based on the requirements discovered during ideation.
53
+
54
+ - Ask about the user's technical preferences and experience
55
+ - Challenge their choices by presenting alternatives
56
+ - Evaluate pros and cons of different tech stacks, frameworks, and architectural patterns
57
+ - Consider non-functional requirements like scalability, performance, maintainability, and deployment
58
+ - Use the **architecture** skill to understand SAB architectural conventions and apply them to your design
59
+
60
+ Check whether there is an architecture document in the project and if so, read and build on it. Don't start coding yet - focus on technical design decisions.
61
+ transitions:
62
+ - trigger: 'need_more_ideation'
63
+ to: 'ideation'
64
+ additional_instructions: 'Architecture work revealed gaps in requirements understanding. Focus on the specific requirements areas that need clarification before continuing with technical design.'
65
+ transition_reason: 'Architecture work revealed need for more requirements clarification'
66
+
67
+ - trigger: 'architecture_complete'
68
+ to: 'plan'
69
+ additional_instructions: 'Present the implementation plan to the user and document it thoroughly.'
70
+ transition_reason: 'Technical architecture is complete, ready for implementation planning'
71
+ review_perspectives:
72
+ - perspective: 'architect'
73
+ prompt: 'Review the technical architecture for completeness, scalability, and maintainability. Ensure technology choices are appropriate and architectural patterns are sound for a greenfield project.'
74
+ - perspective: 'security_expert'
75
+ prompt: 'Evaluate security architecture, data protection strategies, and potential vulnerabilities. Ensure security is built into the foundation of the greenfield project from the start.'
76
+
77
+ - trigger: 'abandon_project'
78
+ to: 'ideation'
79
+ instructions: >
80
+ Project development abandoned during architecture phase. Return to ideation state for new projects.
81
+ Task history and PRD will remain for future reference.
82
+ additional_instructions: 'Project development abandoned during architecture phase. Clean up any architecture work and prepare for new projects.'
83
+ transition_reason: 'User decided to abandon project during architecture phase'
84
+
85
+ plan:
86
+ description: 'Implementation planning phase based on established architecture'
87
+ default_instructions: |
88
+ Create a detailed implementation strategy based on your completed architecture and requirements.
89
+
90
+ - Use the **application-design** skill when planning authentication, routing, error handling, or forms
91
+ - Check whether there is a design document in the project and adhere to it
92
+
93
+ **STEP 1: Break Down Work**
94
+ - Break down the work into specific, actionable tasks
95
+ - Consider the chosen tech stack and architectural decisions
96
+ - Plan the implementation order and identify dependencies
97
+
98
+ **STEP 2: Assess Risks**
99
+ - Consider potential risks and mitigation strategies
100
+ - Document the detailed design if needed
101
+
102
+ **STEP 3: Create Tasks**
103
+ - Create tasks thoroughly with clear milestones for implementation work
104
+ - Ensure each task is actionable and has clear acceptance criteria
105
+ transitions:
106
+ - trigger: 'need_architecture_changes'
107
+ to: 'architecture'
108
+ additional_instructions: "Planning revealed issues with the current architecture. Consider what you've learned during planning and adjust the technical design accordingly. Document the changes and reasons."
109
+ transition_reason: 'Planning work revealed need to revise the architecture'
110
+
111
+ - trigger: 'plan_complete'
112
+ to: 'code'
113
+ additional_instructions: "Implementation plan is complete! ✅ Now transition to coding phase. Read specific documentation before using the chosen libraries and frameworks. Follow the architectural patterns and tech stack decisions you've made. Modularize your code according to best practices. Stay focused on the current project scope defined in your PRD. Update task progress as you complete planning work."
114
+ transition_reason: 'Implementation plan is complete and ready for coding'
115
+
116
+ - trigger: 'abandon_project'
117
+ to: 'ideation'
118
+ instructions: >
119
+ Project development abandoned during planning. Return to ideation state for new projects.
120
+ Task history, PRD, and architecture documentation will remain for future reference.
121
+ additional_instructions: 'Project development abandoned during planning. Clean up any planning work and prepare for new projects.'
122
+ transition_reason: 'User decided to abandon project during planning phase'
123
+
124
+ code:
125
+ description: 'Implementation phase following the established plan and architecture'
126
+ default_instructions: |
127
+ Build the solution following your plan and architecture.
128
+
129
+ - Check whether there is a design document in the project and follow it
130
+ - Check whether there is a requirements document in the project and ensure all requirements you are currently working on are met
131
+ - Use the **coding** skill to implement components, styling, and coding patterns. Apply this skill to all coding tasks of this phase!
132
+ - Use the **testing** skill to write and run tests. Apply this skill to all test tasks of this phase!
133
+ - Write clean, well-structured code with proper error handling
134
+ - Prevent regression by building, linting, and executing existing tests
135
+ - Stay flexible and adapt the plan as you learn more during implementation, but maintain alignment with your architecture decisions
136
+ - Update task progress and create new tasks as needed for current phase work
137
+ transitions:
138
+ - trigger: 'need_replanning'
139
+ to: 'plan'
140
+ additional_instructions: "Implementation revealed issues with the current plan. Consider what you've learned during coding and adjust the implementation strategy accordingly while maintaining architectural consistency. Document the changes and reasons."
141
+ transition_reason: 'Implementation work revealed need to revise the plan'
142
+
143
+ - trigger: 'need_architecture_changes'
144
+ to: 'architecture'
145
+ additional_instructions: 'Implementation revealed fundamental issues with the architecture that require design changes. Focus on the specific architectural problems that are blocking implementation progress.'
146
+ transition_reason: 'Implementation work revealed need for architectural changes'
147
+
148
+ - trigger: 'code_complete'
149
+ to: 'finalize'
150
+ transition_reason: 'Core implementation is complete, ready for comprehensive documentation'
151
+
152
+ - trigger: 'abandon_project'
153
+ to: 'ideation'
154
+ instructions: >
155
+ Project development abandoned during implementation. Clean up any incomplete code and return to ideation.
156
+ Task history, PRD, architecture documentation, and any completed work will remain for future reference.
157
+ additional_instructions: 'Project development abandoned during implementation. Clean up any incomplete code and prepare for new projects.'
158
+ transition_reason: 'User decided to abandon project during implementation'
159
+
160
+ finalize:
161
+ description: 'Code cleanup and documentation finalization'
162
+ default_instructions: |
163
+ This phase ensures code quality and documentation accuracy through systematic cleanup and review.
164
+
165
+ **STEP 1: Code Cleanup**
166
+ Systematically clean up development artifacts:
167
+
168
+ 1. Remove all temporary debug output statements used during development (console logging, print statements, debug functions)
169
+ 2. Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
170
+ - Remove completed TODOs
171
+ - Convert remaining TODOs to proper issue tracking if needed
172
+ 3. Remove debugging code blocks, temporary test code, and commented-out code
173
+ - Ensure proper error handling replaces temporary debug logging
174
+
175
+ **STEP 2: Documentation Review**
176
+ Update documentation to reflect final implementation:
177
+
178
+ 1. Check whether there is a requirements, architecture, or design document in the project and update any that are affected by the implementation
179
+ 2. Review documentation against actual implemented functionality
180
+ 3. Only modify documentation sections that have functional changes
181
+ 4. Remove references to development iterations, progress notes, and temporary decisions
182
+ 5. Ensure documentation describes the final implemented state, not the development process
183
+ 6. Ask user to review document updates
184
+
185
+ **STEP 3: Comprehensive Documentation**
186
+ Ensure project has complete documentation for newcomers including setup, usage, architecture overview, and contribution guidelines.
187
+
188
+ **STEP 4: Final Validation**
189
+ - Use the **testing** skill to run and verify all tests
190
+ - Verify documentation accuracy with a final review
191
+ - Ensure project is ready for users and contributors
192
+ - Update task progress and mark completed work as you finalize the project
193
+ transitions:
194
+ - trigger: 'need_code_changes'
195
+ to: 'code'
196
+ additional_instructions: 'Finalization revealed issues that require code changes. Focus on the problems identified during final review that affect usability or functionality.'
197
+ transition_reason: 'Finalization revealed issues requiring code changes'
198
+
199
+ - trigger: 'finalization_complete'
200
+ to: 'ideation'
201
+ transition_reason: 'Project delivery complete with finalized code and documentation, ready for next greenfield project'
202
+
203
+ - trigger: 'abandon_project'
204
+ to: 'ideation'
205
+ additional_instructions: 'Project development abandoned during finalization. Clean up any finalization artifacts and prepare for new projects.'
206
+ transition_reason: 'User decided to abandon project during finalization phase'