Skip to content

Commit 32aa1b0

Browse files
committed
feat(plan): improve task linking workflow
1 parent 25ac35a commit 32aa1b0

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.opencode/agents/plan.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ Follow these phases strictly:
3636

3737
### Phase 4: Task Synchronization (tasks.yaml)
3838
1. Read the current `tasks.yaml` file to understand the project roadmap.
39-
2. Use `ask_user` to ask the user if they want to link this plan to `tasks.yaml`. Provide options if they are relevant:
40-
- "Add as a new task"
39+
2. Use `ask_user` to ask the user if they want to link this plan to a task. Provide options:
40+
- "Add as a new task" (recommended)
4141
- "Update an existing task"
4242
- "Skip"
43-
3. If they choose to add/update, use the `task` tool to attach the plan to the relevant task.
43+
3. If they choose to add as new task:
44+
- Ask for label and category
45+
- Use `task add --label "X" --category "Y" --plan-path plans/my-plan.md` to create task AND attach plan in one step
46+
4. If they choose to update existing task:
47+
- Use `task attach-plan --task-id X.X --plan-path plans/my-plan.md` to attach plan to existing task
4448

4549
### Phase 5: Finalization
4650
1. Advise the user that they can now use the `/issues` command to synchronize this plan with their issue tracker.

0 commit comments

Comments
 (0)