Skip to content

Commit e17fcfd

Browse files
committed
feat: optimize skill prominence in workflows
- Move skill instructions to top of each phase block - Make skill instructions concise: 'Apply your X skill. If unavailable, ask user about X practices.' - Reduce verbosity while maintaining clear directive language - Skills now lead each phase with fallback to user consultation
1 parent dd15309 commit e17fcfd

3 files changed

Lines changed: 22 additions & 21 deletions

File tree

resources/workflows/skilled-bugfix.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ states:
4444
default_instructions: |
4545
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.
4646
47-
- Use your **architecture** skill if available, or ask the user about their architectural conventions
48-
- Use your **application-design** skill if available, or ask the user about their application design practices
47+
- **Apply your architecture skill.** If unavailable, ask user about architectural conventions.
48+
- **Apply your application-design skill.** If unavailable, ask user about application design practices.
4949
5050
Document your analysis and create tasks as needed.
5151
transitions:
@@ -74,9 +74,9 @@ states:
7474
default_instructions: |
7575
Implement the solution based on your analysis:
7676
77+
- **Apply your coding skill.** If unavailable, ask user about coding practices.
78+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
7779
- Check whether there is a design document in the project and follow it
78-
- Use your **coding** skill if available, or ask the user about their coding practices and patterns
79-
- Use your **testing** skill if available, or ask the user about their testing practices
8080
8181
Before implementing, assess the approach:
8282
- How critical is this system? What is the blast radius if the fix causes issues?
@@ -109,7 +109,7 @@ states:
109109
default_instructions: |
110110
Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced.
111111
112-
- Use your **testing** skill if available, or ask the user about their testing practices
112+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
113113
- Verify the solution is robust and handles edge cases
114114
transitions:
115115
- trigger: 'fix_needs_adjustment'
@@ -154,7 +154,7 @@ states:
154154
- Ask the user to review document updates
155155
156156
**STEP 3: Final Validation**
157-
- Use your **testing** skill if available, or ask the user about their testing practices
157+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
158158
- Verify documentation accuracy with a final review
159159
- Ensure bug fix is ready for production
160160
- Update task progress and mark completed work as you finalize the bug fix

resources/workflows/skilled-epcc.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ states:
2828
default_instructions: |
2929
Research the codebase to understand existing patterns and gather context about the problem space.
3030
31+
- **Apply your starting-project skill.** If unavailable, ask user about project setup practices.
32+
- **Apply your architecture skill.** If unavailable, ask user about architectural conventions.
3133
- If uncertain about conventions or rules, ask the user about them
3234
- 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 your **starting-project** skill if available, or ask the user about their project setup practices
35-
- Use your **architecture** skill if available, or ask the user about their architectural conventions
35+
- Check whether there is a requirements document in the project and if so, read it carefully)
3636
3737
Focus on understanding without writing code yet. Document your findings and create tasks as needed.
3838
transitions:
@@ -46,10 +46,10 @@ states:
4646
default_instructions: |
4747
Create a detailed implementation strategy based on your exploration:
4848
49+
- **Apply your architecture skill.** If unavailable, ask user about architectural conventions.
50+
- **Apply your application-design skill.** If unavailable, ask user about application design practices.
4951
- Check whether there is a requirements document in the project and base your strategy on it
5052
- 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 your **architecture** skill if available, or ask the user about their architectural conventions
52-
- Use your **application-design** skill if available, or ask the user about their application design practices
5353
5454
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.
5555
transitions:
@@ -80,10 +80,10 @@ states:
8080
default_instructions: |
8181
Follow your plan to build the solution:
8282
83+
- **Apply your coding skill.** If unavailable, ask user about coding practices.
84+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
8385
- Check whether there is a design document in the project and follow it; if not, elaborate design options and present them to the user
8486
- Check whether there is a requirements document in the project and ensure all requirements are met
85-
- Use your **coding** skill if available, or ask the user about their coding practices and patterns
86-
- Use your **testing** skill if available, or ask the user about their testing practices
8787
8888
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.
8989
transitions:
@@ -150,7 +150,7 @@ states:
150150
151151
**STEP 3: Final Validation**
152152
153-
- Use your **testing** skill if available, or ask the user about their testing practices
153+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
154154
- Verify documentation accuracy with a final review
155155
- Ensure code is ready for production/delivery
156156

resources/workflows/skilled-greenfield.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ states:
2828
description: 'Deep requirements discovery and PRD creation phase'
2929
default_instructions: |
3030
Understand WHAT the system should do, WHO will use it, WHY it's needed, and WHAT'S in/out of scope by exploring:
31+
32+
**Apply your starting-project skill.** If unavailable, ask user about project setup practices.
33+
3134
- Are there existing solutions? What gaps do they have?
3235
- What technologies must/cannot be used? Why?
3336
- How will you measure product success?
3437
- Have you validated this need with potential users?
3538
36-
Use your **starting-project** skill if available, or ask the user about their project setup practices and conventions.
37-
3839
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.
3940
transitions:
4041
- trigger: 'ideation_complete'
@@ -51,11 +52,11 @@ states:
5152
default_instructions: |
5253
Design the technical solution based on the requirements discovered during ideation.
5354
55+
- **Apply your architecture skill.** If unavailable, ask user about architectural conventions.
5456
- Ask about the user's technical preferences and experience
5557
- Challenge their choices by presenting alternatives
5658
- Evaluate pros and cons of different tech stacks, frameworks, and architectural patterns
5759
- Consider non-functional requirements like scalability, performance, maintainability, and deployment
58-
- Use your **architecture** skill if available, or ask the user about their architectural conventions
5960
6061
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.
6162
transitions:
@@ -87,7 +88,7 @@ states:
8788
default_instructions: |
8889
Create a detailed implementation strategy based on your completed architecture and requirements.
8990
90-
- Use your **application-design** skill if available, or ask the user about their application design practices
91+
- **Apply your application-design skill.** If unavailable, ask user about application design practices.
9192
- Check whether there is a design document in the project and adhere to it
9293
9394
**STEP 1: Break Down Work**
@@ -126,10 +127,10 @@ states:
126127
default_instructions: |
127128
Build the solution following your plan and architecture.
128129
130+
- **Apply your coding skill.** If unavailable, ask user about coding practices.
131+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
129132
- Check whether there is a design document in the project and follow it
130133
- Check whether there is a requirements document in the project and ensure all requirements you are currently working on are met
131-
- Use your **coding** skill if available, or ask the user about their coding practices and patterns
132-
- Use your **testing** skill if available, or ask the user about their testing practices
133134
- Write clean, well-structured code with proper error handling
134135
- Prevent regression by building, linting, and executing existing tests
135136
- Stay flexible and adapt the plan as you learn more during implementation, but maintain alignment with your architecture decisions
@@ -186,7 +187,7 @@ states:
186187
Ensure project has complete documentation for newcomers including setup, usage, architecture overview, and contribution guidelines.
187188
188189
**STEP 4: Final Validation**
189-
- Use your **testing** skill if available, or ask the user about their testing practices
190+
- **Apply your testing skill.** If unavailable, ask user about testing practices.
190191
- Verify documentation accuracy with a final review
191192
- Ensure project is ready for users and contributors
192193
- Update task progress and mark completed work as you finalize the project

0 commit comments

Comments
 (0)