Skip to content

Commit c638114

Browse files
committed
feat: update update-plan prompt draft
1 parent 63ec2a3 commit c638114

3 files changed

Lines changed: 48 additions & 55 deletions

File tree

docs/SKILL.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ This Skill helps you automatically plan and execute requirements. It creates a s
1111

1212
When you need to work through a multi-step request:
1313

14-
1. Understand the requirements
15-
2. Read referenced files only when they are needed for context
16-
3. Create a markdown task list by calling the UpdatePlan tool
17-
4. Execute tasks one by one, updating the tool plan in real time
14+
1. Analyze the requirements and explore enough project context
15+
2. Create a markdown task list by calling the UpdatePlan tool
16+
3. Execute tasks one by one, updating the tool plan in real time
17+
4. Revise the remaining plan as new context appears
1818

1919
## Instructions
2020

21-
### Step 1: Gather the requirements
21+
### Step 1: Analyze the requirements
2222

23-
Identify the requirements from the available context. Do not require the requirements to be moved into a separate document.
23+
Identify the requirements from the available context. Explore the project enough to make the plan concrete and accurate.
2424

2525
If a required referenced file path is missing, ask for it:
2626

@@ -30,16 +30,13 @@ What is the path to the referenced file?
3030

3131
Referenced files can be in any text format (.md, .txt, etc.) that contains task requirements or feature descriptions. If no additional file is needed, continue from the available requirements.
3232

33-
### Step 2: Read and analyze the requirements
34-
35-
Analyze the requirements and read any referenced files needed for context:
36-
3733
- What are the main requirements?
3834
- What tasks need to be completed?
3935
- Are there dependencies between tasks?
4036
- What is the complexity level?
37+
- Which files, modules, commands, or tests are relevant?
4138

42-
### Step 3: Create the task list
39+
### Step 2: Create the task list
4340

4441
Create a structured markdown task list and pass it to the UpdatePlan tool as the `plan` string. The tool input must use this shape:
4542

@@ -59,25 +56,28 @@ Use this markdown format for the `plan` content:
5956
- [ ] Task 3 description
6057
```
6158

62-
Do not append the task list to a source file. Break down complex requirements into specific, actionable tasks and call UpdatePlan with the full markdown task list.
59+
Break down complex requirements into specific, actionable tasks and call UpdatePlan with the full markdown task list.
6360

64-
### Step 4: Execute tasks systematically
61+
### Step 3: Execute tasks systematically
6562

6663
For each task in the list:
6764

68-
1. **Mark as in progress**: Call UpdatePlan with the task changed from `[ ]` to `[>]`
69-
2. **Execute the task**: Use appropriate tools to complete the work
70-
3. **Mark as completed**: Call UpdatePlan with the task changed from `[>]` to `[x]` when finished
71-
4. **Move to next task**: Only ONE task should be in progress at a time
65+
1. **Refresh the plan**: Before starting the first task and after completing each task, re-evaluate the latest conversation and project context. Update the remaining tasks when scope, order, blockers, or follow-up work changes.
66+
2. **Mark as in progress**: Call UpdatePlan with the task changed from `[ ]` to `[>]`
67+
3. **Execute the task**: Use appropriate tools to complete the work
68+
4. **Mark as completed**: Call UpdatePlan with the task changed from `[>]` to `[x]` when finished
69+
5. **Move to next task**: Only ONE task should be in progress at a time
7270

7371
Important rules:
72+
- Always keep the plan aligned with the latest context before executing the next task
7473
- Always call UpdatePlan BEFORE starting work on a task
7574
- Always call UpdatePlan IMMEDIATELY after completing a task
7675
- Always pass the complete current markdown task list, not a partial diff
7776
- Never work on multiple tasks simultaneously
77+
- Remove tasks that are no longer relevant, and add newly discovered tasks before working on them
7878
- If you encounter errors, keep the task as `[>]` and create new tasks to resolve blockers
7979

80-
### Step 5: Handle task breakdown
80+
### Step 4: Handle task breakdown
8181

8282
If during execution you discover a task is more complex than expected:
8383

@@ -90,7 +90,7 @@ If during execution you discover a task is more complex than expected:
9090
```
9191
3. Complete sub-tasks first, then mark the main task as complete with UpdatePlan
9292

93-
### Step 6: Final verification
93+
### Step 5: Final verification
9494

9595
After all tasks are completed (`[x]`):
9696

@@ -230,7 +230,7 @@ Add implementation notes or findings:
230230

231231
This Skill uses standard tools:
232232

233-
- **Read**: To inspect referenced files when needed
233+
- **Read**: To inspect relevant files and explore project context
234234
- **UpdatePlan**: To create and update the markdown task list
235235
- **Bash**: To run tests, builds, or other commands
236236
- **Write**: To create new files if needed
@@ -239,13 +239,14 @@ No additional dependencies required.
239239

240240
## Workflow Summary
241241

242-
1. Analyze the requirements
243-
2. Read referenced files when needed
244-
3. Call UpdatePlan with the structured markdown task list
242+
1. Analyze the requirements and relevant project context
243+
2. Call UpdatePlan with the structured markdown task list
244+
3. Refresh the remaining plan before the first task
245245
4. For each task:
246246
- Update to `[>]` with UpdatePlan
247247
- Execute the task
248248
- Update to `[x]` with UpdatePlan
249+
- Re-evaluate and revise remaining tasks before moving on
249250
5. Call UpdatePlan with all tasks completed and summarize the result
250251

251252
This approach keeps planning and progress tracking in the UpdatePlan display, leaving source materials unchanged unless the actual task requires editing them.

docs/SKILL_new.md

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ This Skill helps you automatically plan and execute requirements. It creates a s
1111

1212
When you need to work through a multi-step request:
1313

14-
1. Understand the requirements
15-
2. Read referenced files when they are needed for context
16-
3. Create a markdown task list by calling the UpdatePlan tool
17-
4. Execute tasks one by one, updating the tool plan in real time
14+
1. Analyze the requirements and explore enough project context
15+
2. Create a markdown task list by calling the UpdatePlan tool
16+
3. Execute tasks one by one, updating the tool plan in real time
17+
4. Revise the remaining plan as new context appears
1818

1919
## Instructions
2020

21-
### Step 1: Gather the requirements
21+
### Step 1: Analyze the requirements
2222

23-
Identify the requirements from the available context. Do not require the requirements to be moved into a separate document.
23+
Identify the requirements from the available context. Explore the project enough to make the plan concrete and accurate.
2424

2525
If a required referenced file path is missing, ask for it:
2626

@@ -30,16 +30,13 @@ What is the path to the referenced file?
3030

3131
Referenced files can be in any text format (.md, .txt, etc.) that contains task requirements or feature descriptions. If no additional file is needed, continue from the available requirements.
3232

33-
### Step 2: Read and analyze the requirements
34-
35-
Analyze the requirements and read any referenced files needed for context:
36-
3733
- What are the main requirements?
3834
- What tasks need to be completed?
3935
- Are there dependencies between tasks?
4036
- What is the complexity level?
37+
- Which files, modules, commands, or tests are relevant?
4138

42-
### Step 3: Create the task list
39+
### Step 2: Create the task list
4340

4441
Create a structured markdown task list and pass it to the UpdatePlan tool as the `plan` string. The tool input must use this shape:
4542

@@ -61,23 +58,26 @@ Use this markdown format for the `plan` content:
6158

6259
Break down complex requirements into specific, actionable tasks and call UpdatePlan with the full markdown task list.
6360

64-
### Step 4: Execute tasks systematically
61+
### Step 3: Execute tasks systematically
6562

6663
For each task in the list:
6764

68-
1. **Mark as in progress**: Call UpdatePlan with the task changed from `[ ]` to `[>]`
69-
2. **Execute the task**: Use appropriate tools to complete the work
70-
3. **Mark as completed**: Call UpdatePlan with the task changed from `[>]` to `[x]` when finished
71-
4. **Move to next task**: Only ONE task should be in progress at a time
65+
1. **Refresh the plan**: Before starting the first task and after completing each task, re-evaluate the latest conversation and project context. Update the remaining tasks when scope, order, blockers, or follow-up work changes.
66+
2. **Mark as in progress**: Call UpdatePlan with the task changed from `[ ]` to `[>]`
67+
3. **Execute the task**: Use appropriate tools to complete the work
68+
4. **Mark as completed**: Call UpdatePlan with the task changed from `[>]` to `[x]` when finished
69+
5. **Move to next task**: Only ONE task should be in progress at a time
7270

7371
Important rules:
72+
- Always keep the plan aligned with the latest context before executing the next task
7473
- Always call UpdatePlan BEFORE starting work on a task
7574
- Always call UpdatePlan IMMEDIATELY after completing a task
7675
- Always pass the complete current markdown task list, not a partial diff
7776
- Never work on multiple tasks simultaneously
77+
- Remove tasks that are no longer relevant, and add newly discovered tasks before working on them
7878
- If you encounter errors, keep the task as `[>]` and create new tasks to resolve blockers
7979

80-
### Step 5: Handle task breakdown
80+
### Step 4: Handle task breakdown
8181

8282
If during execution you discover a task is more complex than expected:
8383

@@ -90,7 +90,7 @@ If during execution you discover a task is more complex than expected:
9090
```
9191
3. Complete sub-tasks first, then mark the main task as complete with UpdatePlan
9292

93-
### Step 6: Final verification
93+
### Step 5: Final verification
9494

9595
After all tasks are completed (`[x]`):
9696

@@ -226,26 +226,16 @@ Add implementation notes or findings:
226226
- Solution: Added dataloader batching
227227
```
228228

229-
## Requirements
230-
231-
This Skill uses standard tools:
232-
233-
- **Read**: To inspect referenced files when needed
234-
- **UpdatePlan**: To create and update the markdown task list
235-
- **Bash**: To run tests, builds, or other commands
236-
- **Write**: To create new files if needed
237-
238-
No additional dependencies required.
239-
240229
## Workflow Summary
241230

242-
1. Analyze the requirements
243-
2. Read referenced files when needed
244-
3. Call UpdatePlan with the structured markdown task list
231+
1. Analyze the requirements and relevant project context
232+
2. Call UpdatePlan with the structured markdown task list
233+
3. Refresh the remaining plan before the first task
245234
4. For each task:
246235
- Update to `[>]` with UpdatePlan
247236
- Execute the task
248237
- Update to `[x]` with UpdatePlan
238+
- Re-evaluate and revise remaining tasks before moving on
249239
5. Call UpdatePlan with all tasks completed and summarize the result
250240

251241
This approach keeps planning and progress tracking in the UpdatePlan display, leaving source materials unchanged unless the actual task requires editing them.

templates/tools/update-plan.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Usage:
88
- The `plan` argument is a markdown string, not an array of step objects.
99
- Keep exactly one task marked `[>]` while work is in progress.
1010
- Update the plan before starting a task, immediately after completing a task, and whenever tasks are split, merged, reordered, blocked, or changed.
11+
- Before executing the first task and after completing each task, re-evaluate the latest conversation and project context, then revise the remaining plan if needed.
12+
- Remove tasks that are no longer relevant, and add newly discovered follow-up tasks before working on them.
1113

1214
```json
1315
{

0 commit comments

Comments
 (0)