@codemcp/workflows 6.0.4 → 6.2.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-NHYEKRXH.js → cli-UWGNSSFS.js} +3 -3
  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'
@@ -17,6 +17,9 @@ export const workflowList = [
17
17
  'sdd-feature-crowd',
18
18
  'sdd-greenfield',
19
19
  'sdd-greenfield-crowd',
20
+ 'skilled-bugfix',
21
+ 'skilled-epcc',
22
+ 'skilled-greenfield',
20
23
  'slides',
21
24
  'tdd',
22
25
  'waterfall',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-visualizer",
3
- "version": "6.0.4",
3
+ "version": "6.2.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.ts",
@@ -0,0 +1,182 @@
1
+ ---
2
+ name: 'skilled-bugfix'
3
+ description: 'A focused workflow for bug fixing: Reproduce, Analyze, Fix, Verify - optimized for debugging and fixing existing issues'
4
+ initial_state: 'reproduce'
5
+
6
+ # Enhanced metadata for better discoverability
7
+ metadata:
8
+ domain: 'skilled'
9
+ complexity: 'medium'
10
+ bestFor:
11
+ - 'Bug fixes'
12
+ - 'Issue resolution'
13
+ - 'Error debugging'
14
+ - 'Performance problems'
15
+ useCases:
16
+ - 'Fixing a crash or error'
17
+ - 'Resolving incorrect behavior'
18
+ - 'Performance optimization'
19
+ examples:
20
+ - 'Fix login authentication error'
21
+ - 'Resolve memory leak issue'
22
+ - 'Fix incorrect calculation in reports'
23
+
24
+ # States with default instructions and transitions
25
+ states:
26
+ reproduce:
27
+ description: 'Reproduce and understand the bug'
28
+ default_instructions: |
29
+ Gather specific information to reliably reproduce the reported bug:
30
+ - What are the exact OS, browser/runtime versions, and hardware specs?
31
+ - What is the precise sequence of actions that trigger the bug?
32
+ - What error messages, logs, or stack traces are available?
33
+ - Does this happen every time or intermittently?
34
+ - How many users are affected and what is the business impact?
35
+
36
+ Create test cases that demonstrate the problem. Document your findings and create tasks as needed.
37
+ transitions:
38
+ - trigger: 'bug_reproduced'
39
+ to: 'analyze'
40
+ transition_reason: 'Bug reproduced successfully, ready to analyze root cause'
41
+
42
+ - trigger: 'bug_not_reproducible'
43
+ to: 'reproduce'
44
+ instructions: >
45
+ Unable to reproduce the bug with current information. Gather more details about the environment,
46
+ conditions, or steps that might be missing. Contact the reporter for additional information if needed.
47
+ Continue attempting reproduction with new information.
48
+ transition_reason: 'Bug could not be reproduced, need more information'
49
+
50
+ analyze:
51
+ description: 'Analyze the bug and identify root cause'
52
+ default_instructions: |
53
+ Examine the code paths involved in the bug, identify the root cause, and understand why the issue occurs. Use debugging tools, add logging, and trace through the problematic code.
54
+
55
+ - Use the **architecture** skill to understand the architectural conventions of this project
56
+ - Use the **application-design** skill to understand authentication, routing, error handling, or form patterns that may be involved
57
+
58
+ Document your analysis and create tasks as needed.
59
+ transitions:
60
+ - trigger: 'need_more_reproduction'
61
+ to: 'reproduce'
62
+ additional_instructions: 'Analysis revealed need for additional reproduction scenarios. Focus on reproducing the specific conditions identified during analysis.'
63
+ transition_reason: 'Analysis revealed need for additional reproduction work'
64
+
65
+ - trigger: 'root_cause_identified'
66
+ to: 'fix'
67
+ additional_instructions: 'Document the root cause approach and update task progress.'
68
+ transition_reason: 'Root cause identified, ready to implement fix'
69
+ review_perspectives:
70
+ - perspective: 'architect'
71
+ prompt: "Review root cause analysis and ensure the proposed fix doesn't introduce architectural issues or technical debt. Consider the broader system impact of the proposed solution."
72
+ - perspective: 'security_expert'
73
+ prompt: "Evaluate if the bug has security implications and ensure the fix doesn't introduce new vulnerabilities. Review the security aspects of the proposed solution."
74
+
75
+ - trigger: 'abandon_bug'
76
+ to: 'reproduce'
77
+ additional_instructions: 'Bug analysis abandoned. Clean up any analysis work and prepare for new bug reports.'
78
+ transition_reason: 'Bug analysis abandoned'
79
+
80
+ fix:
81
+ description: 'Implement the bug fix'
82
+ default_instructions: |
83
+ Implement the solution based on your analysis:
84
+
85
+ - Check whether there is a design document in the project and follow it
86
+ - Use the **coding** skill to implement the fix. Apply this skill to all coding tasks of this phase!
87
+ - Use the **testing** skill to write targeted tests that cover the bug scenario. Apply this skill to all test tasks of this phase!
88
+
89
+ Before implementing, assess the approach:
90
+ - How critical is this system? What is the blast radius if the fix causes issues?
91
+ - Should this be a minimal fix or a more comprehensive solution?
92
+
93
+ Make targeted changes that address the root cause without introducing new issues. Be careful to maintain existing functionality while fixing the bug.
94
+ transitions:
95
+ - trigger: 'need_more_analysis'
96
+ to: 'analyze'
97
+ additional_instructions: 'Fix implementation revealed additional complexity or issues. Focus on analyzing the newly discovered aspects of the problem.'
98
+ transition_reason: 'Fix work revealed need for additional analysis'
99
+
100
+ - trigger: 'fix_implemented'
101
+ to: 'verify'
102
+ additional_instructions: 'Document the fix approach and update task progress.'
103
+ transition_reason: 'Fix implemented, ready for verification'
104
+ review_perspectives:
105
+ - perspective: 'senior_software_developer'
106
+ prompt: 'Review fix implementation, code quality, and ensure the solution properly addresses the root cause. Check for potential side effects and code maintainability.'
107
+ - perspective: 'performance_engineer'
108
+ prompt: "Verify that the fix doesn't introduce performance regressions or new bottlenecks. Assess the performance impact of the implemented solution."
109
+
110
+ - trigger: 'abandon_bug'
111
+ to: 'reproduce'
112
+ additional_instructions: 'Bug fix abandoned. Clean up any fix work and prepare for new bug reports.'
113
+ transition_reason: 'Bug fix abandoned'
114
+
115
+ verify:
116
+ description: 'Verify the fix and ensure no regressions'
117
+ default_instructions: |
118
+ Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced.
119
+
120
+ - Use the **testing** skill to run existing tests and write new ones covering the bug scenario
121
+ - Verify the solution is robust and handles edge cases
122
+ transitions:
123
+ - trigger: 'fix_needs_adjustment'
124
+ to: 'fix'
125
+ additional_instructions: 'Verification revealed issues with the current fix. Focus on addressing the specific problems identified during verification.'
126
+ transition_reason: 'Verification found issues requiring fix adjustments'
127
+
128
+ - trigger: 'need_more_analysis'
129
+ to: 'analyze'
130
+ additional_instructions: "Verification revealed the fix doesn't fully address the root cause. Focus on deeper analysis of the remaining issues."
131
+ transition_reason: 'Verification revealed need for additional analysis'
132
+
133
+ - trigger: 'bug_fixed'
134
+ to: 'finalize'
135
+ transition_reason: 'Bug fix complete and verified, ready for next issue'
136
+
137
+ - trigger: 'abandon_bug'
138
+ to: 'reproduce'
139
+ additional_instructions: 'Bug verification abandoned. Clean up any verification work and prepare for new bug reports.'
140
+ transition_reason: 'Bug verification abandoned'
141
+
142
+ finalize:
143
+ description: 'Code cleanup and documentation finalization'
144
+ default_instructions: |
145
+ Ensure code quality and documentation accuracy through systematic cleanup and review.
146
+
147
+ **STEP 1: Code Cleanup**
148
+ Systematically clean up development artifacts:
149
+ - Remove all temporary debug output statements used during bug investigation (console logging, print statements, debug output functions)
150
+ - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
151
+ - Remove completed TODOs and convert remaining ones to proper issue tracking if needed
152
+ - Remove temporary debugging code, test code blocks, and commented-out code
153
+ - Ensure proper error handling replaces temporary debug logging
154
+
155
+ **STEP 2: Documentation Review**
156
+ Review and update documentation to reflect the bug fix:
157
+ - Check whether there is a design document in the project and update it if the fix changed any design details
158
+ - Compare documentation against the actual bug fix implementation
159
+ - Update only the documentation sections that have functional changes
160
+ - Remove references to investigation iterations, progress notes, and temporary decisions
161
+ - Ensure documentation describes the final fixed state, not the debugging process
162
+ - Ask the user to review document updates
163
+
164
+ **STEP 3: Final Validation**
165
+ - Use the **testing** skill to run and verify all tests
166
+ - Verify documentation accuracy with a final review
167
+ - Ensure bug fix is ready for production
168
+ - Update task progress and mark completed work as you finalize the bug fix
169
+ transitions:
170
+ - trigger: 'need_fix_changes'
171
+ to: 'fix'
172
+ additional_instructions: 'Finalization revealed issues with the bug fix. Focus on addressing the specific problems identified during final review.'
173
+ transition_reason: 'Finalization revealed issues requiring fix changes'
174
+
175
+ - trigger: 'finalization_complete'
176
+ to: 'reproduce'
177
+ transition_reason: 'Bug fix complete and finalized, ready for next issue'
178
+
179
+ - trigger: 'abandon_bug'
180
+ to: 'reproduce'
181
+ additional_instructions: 'Bug finalization abandoned. Clean up any finalization work and prepare for new bug reports.'
182
+ transition_reason: 'Bug finalization abandoned'
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: 'skilled-epcc'
3
+ description: "A comprehensive development workflow based on Anthropic's best practices: Explore, Plan, Code, Commit - ideal for smaller features and iterative development"
4
+ initial_state: 'explore'
5
+
6
+ # Enhanced metadata for better discoverability
7
+ metadata:
8
+ domain: 'skilled'
9
+ complexity: 'medium'
10
+ bestFor:
11
+ - 'Medium-sized features'
12
+ - 'Iterative development'
13
+ - 'Research-heavy tasks'
14
+ - 'Exploratory coding'
15
+ useCases:
16
+ - 'Adding a new API endpoint'
17
+ - 'Implementing a new algorithm'
18
+ - 'Integrating a third-party service'
19
+ examples:
20
+ - 'Add user profile management'
21
+ - 'Implement search functionality'
22
+ - 'Create data export feature'
23
+
24
+ # States with default instructions and transitions
25
+ states:
26
+ explore:
27
+ description: 'Research and exploration phase - understanding the problem space'
28
+ default_instructions: |
29
+ Research the codebase to understand existing patterns and gather context about the problem space.
30
+
31
+ - If uncertain about conventions or rules, ask the user about them
32
+ - Read relevant files and documentation
33
+ - Check whether there is a requirements document in the project and if so, read it carefully
34
+ - If the project is still empty, use the **starting-project** skill to understand how to set it up correctly
35
+ - Use the **architecture** skill to understand the architectural conventions of this project
36
+
37
+ Focus on understanding without writing code yet. Document your findings and create tasks as needed.
38
+ transitions:
39
+ - trigger: 'exploration_complete'
40
+ to: 'plan'
41
+ additional_instructions: 'Present the plan to the user, describing the impact of the changes.'
42
+ transition_reason: 'Sufficient understanding gained, ready to create implementation plan'
43
+
44
+ plan:
45
+ description: 'Planning phase - creating a detailed implementation strategy'
46
+ default_instructions: |
47
+ Create a detailed implementation strategy based on your exploration:
48
+
49
+ - Check whether there is a requirements document in the project and base your strategy on it
50
+ - Check whether there is a design document in the project and adhere to it; if not, elaborate design options and present them to the user
51
+ - Use the **architecture** skill to ensure architectural decisions align with SAB conventions
52
+ - Use the **application-design** skill when planning authentication, routing, error handling, or forms
53
+
54
+ Break down the work into specific, actionable tasks. Consider edge cases, dependencies, and potential challenges. Document the planning work thoroughly and create implementation tasks as part of the code phase as needed.
55
+ transitions:
56
+ - trigger: 'need_more_exploration'
57
+ to: 'explore'
58
+ additional_instructions: 'Focus on the specific areas that need clarification and ask the user about needs and preferences.'
59
+ transition_reason: 'Planning work revealed need for more exploration'
60
+
61
+ - trigger: 'plan_complete'
62
+ to: 'code'
63
+ transition_reason: 'Implementation plan is complete and ready for coding'
64
+ review_perspectives:
65
+ - perspective: 'architect'
66
+ 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.'
67
+ - perspective: 'security_expert'
68
+ prompt: 'Assess security considerations and potential risks in the planned implementation approach. Review data handling, authentication, and potential vulnerabilities.'
69
+
70
+ - trigger: 'abandon_feature'
71
+ to: 'explore'
72
+ instructions: >
73
+ Feature development abandoned during planning. Return to exploration state for new tasks.
74
+ Task history will remain for future reference.
75
+ additional_instructions: 'Feature development abandoned during planning. Clean up any planning work and prepare for new tasks.'
76
+ transition_reason: 'User decided to abandon feature during planning phase'
77
+
78
+ code:
79
+ description: 'Implementation phase - writing and building the solution'
80
+ default_instructions: |
81
+ Follow your plan to build the solution:
82
+
83
+ - Check whether there is a design document in the project and follow it; if not, elaborate design options and present them to the user
84
+ - Check whether there is a requirements document in the project and ensure all requirements are met
85
+ - Use the **coding** skill to implement components, styling, and coding patterns. Apply this skill to all coding tasks of this phase!
86
+ - Use the **testing** skill to write and run tests. Apply this skill to all test tasks of this phase!
87
+
88
+ Write clean, well-structured code with proper error handling. Prevent regression by building, linting, and executing existing tests. Stay flexible and adapt the plan as you learn more during implementation. Update task progress and create new tasks as needed.
89
+ transitions:
90
+ - trigger: 'need_replanning'
91
+ to: 'plan'
92
+ additional_instructions: "Consider what you've learned during coding and adjust the plan accordingly. Document the changes and reasons."
93
+ transition_reason: 'Implementation work revealed need to revise the plan'
94
+
95
+ - trigger: 'need_more_exploration'
96
+ to: 'explore'
97
+ additional_instructions: 'Focus on the specific areas that are blocking implementation progress.'
98
+ transition_reason: 'Implementation work revealed need for more exploration'
99
+
100
+ - trigger: 'code_complete'
101
+ to: 'commit'
102
+ transition_reason: 'Core implementation is complete, ready for finalization'
103
+ review_perspectives:
104
+ - perspective: 'senior_software_developer'
105
+ prompt: 'Review code quality, best practices, testing coverage, and readiness for production deployment. Ensure the implementation follows coding standards and is maintainable.'
106
+ - perspective: 'performance_engineer'
107
+ prompt: 'Evaluate performance impact, resource efficiency, and scalability of the implemented solution. Check for potential bottlenecks or optimization opportunities.'
108
+
109
+ - trigger: 'abandon_feature'
110
+ to: 'explore'
111
+ instructions: >
112
+ Feature development abandoned during implementation. Clean up any incomplete code and return to exploration.
113
+ Task history and any completed work will remain for future reference.
114
+ additional_instructions: 'Clean up any incomplete code and prepare for new tasks.'
115
+ transition_reason: 'User decided to abandon feature during implementation'
116
+
117
+ commit:
118
+ description: 'Code cleanup and documentation finalization'
119
+ default_instructions: >
120
+ Ensure code quality and documentation accuracy through systematic cleanup and review.
121
+
122
+ **STEP 1: Code Cleanup**
123
+
124
+ Systematically clean up development artifacts:
125
+
126
+ 1. **Remove Debug Output**: Search for and remove all temporary debug output statements used during development.
127
+ Look for language-specific debug output methods (console logging, print statements, debug output functions).
128
+ Remove any debugging statements that were added for development purposes.
129
+
130
+ 2. **Review TODO/FIXME Comments**:
131
+ - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred
132
+ - Remove completed TODOs
133
+ - Convert remaining TODOs to proper issue tracking if needed
134
+
135
+ 3. **Remove Debugging Code Blocks**:
136
+ - Remove temporary debugging code, test code blocks, and commented-out code
137
+ - Clean up any experimental code that's no longer needed
138
+ - Ensure proper error handling replaces temporary debug logging
139
+
140
+ **STEP 2: Documentation Review**
141
+
142
+ Review and update documentation to reflect final implementation:
143
+
144
+ 1. Check whether there is a requirements, architecture, or design document in the project and update any that are affected by the implementation
145
+ 2. **Compare Against Implementation**: Review documentation against actual implemented functionality
146
+ 3. **Update Changed Sections**: Only modify documentation sections that have functional changes
147
+ 4. **Remove Development Progress**: Remove references to development iterations, progress notes, and temporary decisions
148
+ 5. **Focus on Final State**: Ensure documentation describes the final implemented state, not the development process
149
+ 6. **Ask User to Review Document Updates**
150
+
151
+ **STEP 3: Final Validation**
152
+
153
+ - Use the **testing** skill to run and verify all tests
154
+ - Verify documentation accuracy with a final review
155
+ - Ensure code is ready for production/delivery
156
+
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
+
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'