|
1
|
--- |
|
2
|
description: Implement technical plans from thoughts/shared/plans with verification |
|
3
|
--- |
|
4
|
|
|
5
|
# Implement Plan |
|
6
|
|
|
7
|
You are tasked with implementing an approved technical plan from `thoughts/shared/plans/`. These plans contain phases with specific changes and success criteria. |
|
8
|
|
|
9
|
## Getting Started |
|
10
|
|
|
11
|
When given a plan path: |
|
12
|
|
|
13
|
- Read the plan completely and check for any existing checkmarks (- [x]) |
|
14
|
- Read the original ticket and all files mentioned in the plan |
|
15
|
- **Read files fully** - never use limit/offset parameters, you need complete context |
|
16
|
- Think deeply about how the pieces fit together |
|
17
|
- Create a todo list to track your progress |
|
18
|
- Start implementing if you understand what needs to be done |
|
19
|
|
|
20
|
If no plan path provided, ask for one. |
|
21
|
|
|
22
|
## Implementation Philosophy |
|
23
|
|
|
24
|
Plans are carefully designed, but reality can be messy. Your job is to: |
|
25
|
|
|
26
|
- Follow the plan's intent while adapting to what you find |
|
27
|
- Implement each phase fully before moving to the next |
|
28
|
- Verify your work makes sense in the broader codebase context |
|
29
|
- Update checkboxes in the plan as you complete sections |
|
30
|
|
|
31
|
When things don't match the plan exactly, think about why and communicate clearly. The plan is your guide, but your judgment matters too. |
|
32
|
|
|
33
|
If you encounter a mismatch: |
|
34
|
|
|
35
|
- STOP and think deeply about why the plan can't be followed |
|
36
|
- Present the issue clearly: |
|
37
|
|
|
38
|
``` |
|
39
|
Issue in Phase [N]: |
|
40
|
Expected: [what the plan says] |
|
41
|
Found: [actual situation] |
|
42
|
Why this matters: [explanation] |
|
43
|
|
|
44
|
How should I proceed? |
|
45
|
``` |
|
46
|
|
|
47
|
## Verification Approach |
|
48
|
|
|
49
|
After implementing a phase: |
|
50
|
|
|
51
|
- Run the success criteria checks (usually `make check test` covers everything) |
|
52
|
- Fix any issues before proceeding |
|
53
|
- Update your progress in both the plan and your todos |
|
54
|
- Check off completed items in the plan file itself using Edit |
|
55
|
- **Pause for human verification**: After completing all automated verification for a phase, pause and inform the human that the phase is ready for manual testing. Use this format: |
|
56
|
|
|
57
|
``` |
|
58
|
Phase [N] Complete - Ready for Manual Verification |
|
59
|
|
|
60
|
Automated verification passed: |
|
61
|
- [List automated checks that passed] |
|
62
|
|
|
63
|
Please perform the manual verification steps listed in the plan: |
|
64
|
- [List manual verification items from the plan] |
|
65
|
|
|
66
|
Let me know when manual testing is complete so I can proceed to Phase [N+1]. |
|
67
|
``` |
|
68
|
|
|
69
|
If instructed to execute multiple phases consecutively, skip the pause until the last phase. Otherwise, assume you are just doing one phase. |
|
70
|
|
|
71
|
do not check off items in the manual testing steps until confirmed by the user. |
|
72
|
|
|
73
|
## If You Get Stuck |
|
74
|
|
|
75
|
When something isn't working as expected: |
|
76
|
|
|
77
|
- First, make sure you've read and understood all the relevant code |
|
78
|
- Consider if the codebase has evolved since the plan was written |
|
79
|
- Present the mismatch clearly and ask for guidance |
|
80
|
|
|
81
|
Use sub-tasks sparingly - mainly for targeted debugging or exploring unfamiliar territory. |
|
82
|
|
|
83
|
## Resuming Work |
|
84
|
|
|
85
|
If the plan has existing checkmarks: |
|
86
|
|
|
87
|
- Trust that completed work is done |
|
88
|
- Pick up from the first unchecked item |
|
89
|
- Verify previous work only if something seems off |
|
90
|
|
|
91
|
Remember: You're implementing a solution, not just checking boxes. Keep the end goal in mind and maintain forward momentum. |