Full Research-Plan-Implement workflow with explicit user approvals between stages
You are orchestrating the Research-Plan-Implement (RPI) workflow.
Arguments: $ARGUMENTS
Parse arguments:
Create work document at:
Notes/Work/<ticketID>/<TIMESTAMP>-<slug>.mdNotes/Work/<TIMESTAMP>-<slug>.mdWhere:
Initialize with:
# <Title from problem description>
**Date**: <today's date>
**TicketID**: <ticketID or "N/A">
**Status**: Research
---
## Research Stage
*In progress...*
---
## Plan Stage
*Pending research completion*
---
## Implementation Stage
*Pending plan approval*
---
## Summary
*To be completed*
Invoke the research skill:
Use Skill tool with:
- skill: "research"
- args: "<problem description>"
After research completes:
AskUserQuestion:
- question: "Research complete. Ready to proceed to planning?"
- options:
- "Yes, proceed to planning"
- "Need more research" (describe what)
- "Stop here for now"
After research approval, invoke the plan skill:
Use Skill tool with:
- skill: "plan"
- args: "<requirements summary from research>"
After planning completes:
AskUserQuestion:
- question: "Plan complete. Ready to proceed to implementation?"
- options:
- "Yes, start implementing"
- "Modify the plan" (describe changes)
- "Stop here for now"
After plan approval, invoke the implement skill:
Use Skill tool with:
- skill: "implement"
After implementation completes:
Each stage transition requires explicit user approval:
Research ──[approval]──> Plan ──[approval]──> Implement ──> Complete
│ │ │
└── [need more] ───────┴── [modify] ──────────┘
Users can:
/rpi again to continue)If /rpi is called with a ticketID that has an existing work document:
AskUserQuestion:
- question: "Found existing work for <ticketID> at status: <status>. Continue or start fresh?"
- options:
- "Continue from <status>"
- "Start fresh"