jie-xu/demopublicFive-stage dev cycle: plan → execute → verify → review → QA. Ships with the dev-workflow plugin.
jie-xu/demopublicFive-stage dev cycle: plan → execute → verify → review → QA. Ships with the dev-workflow plugin.
/stagent:start --flow=cloud://jie-xu/demo <task_description>Paste in Claude Code and replace <task_description>
Click any stage above to view its instructions below.
planninginline· interruptible · transitions: approved → executing
Runtime config (canonical): workflow.json → stages.planning
Purpose: produce an agreed implementation plan and record user approval.
Output artifact: write to the absolute path provided in your prompt
Valid results this stage writes: pending (plan drafted, awaiting user approval), approved (user has explicitly confirmed)
This is an interruptible stage — the stop hook allows natural pauses for Q&A.
Note: picking the topic name and activating the workflow (
setup-workflow.sh) happen in SKILL.md's protocol (Step 1 — Bootstrap), before any stage runs. By the time you read this file,state.mdalready exists withstatus: planningandepochis set.
Understand the project state (files, conventions, tech stack). New project → note it. Existing codebase → respect patterns before proposing anything.
Inline Q&A — the stop hook allows natural pauses.
2-3 options with trade-offs; lead with your recommendation. Let the user pick or modify.
Architecture, components, data flow, tech stack, error handling. Iterate until agreed.
Read epoch from state.md. Write the output artifact:
---
epoch: <epoch>
result: pending
---
# Planning Report: <Topic>
## Design Summary
<agreed architecture, tech stack, key decisions>
## Implementation Steps
1. ...
## File Structure
<files / directories to create or modify>
## Acceptance Criteria
- [ ] ...
## Testing Strategy
### Quick Tests
- Framework: <e.g. pytest / jest / flutter test / go test — or "none">
- Coverage target: <e.g. 80%>
- Key test cases:
- [ ] ...
### Journey Tests
- Framework: <e.g. playwright / XcodeBuildMCP / none>
- Key user paths:
- [ ] ...result: pending signals "plan written but not approved yet."
"Plan saved to the session's planning-report.md. Please review and confirm to start execution, or request changes."
If the user requests changes, iterate on the plan body — keep result: pending.
Once the user explicitly approves, edit the output artifact: change result: pending → result: approved.
That is the only action needed here. The SKILL.md main loop's step (e) reads the artifact's result: and calls update-status.sh to advance the state machine — do NOT call it yourself from this stage file.
drives the state machine above