feat(plan): add bare-bones /plan MVP with gate, research, validate and record agents
Add the /plan orchestrator prompt for outline steps 0-10, four stub agents (plan-gate, plan-researcher, plan-validator, plan-recorder) and the plan-track skill. Steps 8-10 hand off to the hand-invoked /to-spec and /to-tickets, which the user runs as their approval. /next now offers /plan as a handoff. Bump plan to 0.4.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
b98340d432
commit
b7747d27b6
10 files changed
+208
-6
No files matched your search
@@ -206,5 +206,5 @@ decisions instead.
|
||||
issue, pushing tags, or setting up infrastructure).
|
||||
7. Open decisions that need me. Do not decide these yourself.
|
||||
|
||||
End with: "Run `/ship` to build this." If I reply go, tell me to run `/ship`: it cannot be
|
||||
End with: "Run `/ship` to build this, or `/plan` to spec it first." If I reply go, tell me to run `/ship`: it cannot be
|
||||
invoked for me. Do not build inline.
|
||||
@@ -0,0 +1,60 @@
|
||||
---
|
||||
description: Turn a ticket or idea into a validated plan, a spec and agent-ready tickets, with me in the loop
|
||||
argument-hint: "[#N | idea as free text] (empty: the issue picked by /next in this conversation)"
|
||||
---
|
||||
|
||||
Input (raw, verbatim):
|
||||
$ARGUMENTS
|
||||
|
||||
You are the orchestrator. Delegate the reading to subagents and keep only their conclusions. Speak
|
||||
to me only to ask, to present, or to report.
|
||||
|
||||
## 0. Entry
|
||||
|
||||
- `#N`: read the issue and its comments with `gitea-issues`.
|
||||
- Free text: that is the idea.
|
||||
- Empty: use the issue picked by `/next` earlier in this conversation. None → ask me for one.
|
||||
|
||||
## 1. Gate
|
||||
|
||||
Dispatch `plan-gate`. `verdict: stop` → tell me why and stop.
|
||||
|
||||
## 2–6. Discovery loop
|
||||
|
||||
Repeat until I agree. Count loops per point; after two loops on the same point, ask me whether to
|
||||
park the idea instead.
|
||||
|
||||
2. **Grill** with `grilling`, only if the intent is unclear. Then recommend a track with
|
||||
`plan-track`.
|
||||
3. **Research**: dispatch `plan-researcher` twice in parallel, scope `repo` and scope `web`.
|
||||
4. **Validate**: dispatch `plan-validator` with the findings. `regrill` → back to 2. `stop` → tell
|
||||
me why and stop.
|
||||
5. **Offer a plan**: options, considerations, recommendation, impact, expected results, and the
|
||||
track.
|
||||
6. **Agreement**: ask me with AskUserQuestion to agree and confirm the track, or send it back to
|
||||
grilling or research.
|
||||
|
||||
## 7. Record decisions
|
||||
|
||||
Dispatch `plan-recorder` with the agreed plan and its decisions. My agreement in step 6 authorizes
|
||||
its branch, commit, push and docs PR. Keep the PR link.
|
||||
|
||||
## 8. Spec (spec and tickets track only)
|
||||
|
||||
`to-spec` is hand-invoked, so you cannot call it. Tell me to run:
|
||||
|
||||
`/to-spec` — and to link the docs PR <link> in the spec.
|
||||
|
||||
My running it is my approval of the spec. Wait for it.
|
||||
|
||||
## 9–10. Tickets
|
||||
|
||||
`to-tickets` is hand-invoked, so you cannot call it. Tell me to run `/to-tickets` on the spec (or on
|
||||
this conversation, on the tickets-only track). It proposes the breakdown, and my approval inside it
|
||||
covers the whole batch. It files the tickets and sets `Status/Ready for Agent`; a ticket without
|
||||
acceptance criteria must not carry it. If the breakdown shows a gap in the spec, tell me to rerun
|
||||
`/to-spec` first.
|
||||
|
||||
## Report
|
||||
|
||||
Links to the docs PR, the spec and the tickets.
|
||||
Reference in new issue
Block a user