feat(plan): wire existing skills into /plan

Step 2 grills with grilling plus domain-modeling (no GLOSSARY.md or ADR
edits; candidates go to step 7) and exits early on the wayfinder track
with a copyable /wayfinder command. Step 5 uses codebase-design only on
module or interface changes and lists the docs needed downstream. Step 7
hands out /write-docs and /research-docs commands for the docs PR. Steps
8-10 show /to-spec and /to-tickets as code blocks, strip Ready for Agent
via gitea-labels-milestones, and group tickets under a Spec: milestone.
The outline moves these items into "What ships today".

Refs: #255

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-29 17:09:32 +00:00
1 parent bc04eaaed5
commit 6638385a51
2 files changed
+63 -35

No files matched your search

+50 -17
View File
@@ -8,7 +8,8 @@ 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.
to me only to ask, to present, or to report. Every hand-invoked command you ask me to run goes in a
code block I can copy.
## 0. Entry
@@ -25,41 +26,73 @@ Dispatch `plan-gate`. `verdict: stop` → tell me why and stop.
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`.
2. **Grill** with `grilling`, only if the intent is unclear, and load `domain-modeling` to challenge
terms. Override: make no `GLOSSARY.md` or ADR edits during grilling; collect candidate terms and
ADRs for step 7 instead. This equals `grill-with-docs` minus the writing during grilling. Then
recommend a track with `plan-track`. `track: wayfinder` → ask me with AskUserQuestion to
confirm. On yes, give me this, filled in, and stop:
```
/wayfinder <intent> — <grilling answers>
```
3. **Research**: dispatch `plan-researcher` twice in parallel, scope `repo` and scope `web`. They
flag when lasting reference docs for an external tool or library are needed. Nothing is written.
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.
track. Use `codebase-design` only when the options change module or interface shape. List the
repo docs downstream agents need: `write-docs` targets and `research-docs` topics.
6. **Agreement**: ask me with AskUserQuestion to agree and confirm the track, or send it back to
grilling or research. Say in the question that agreeing also approves step 7's docs branch,
push and PR.
## 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.
Dispatch `plan-recorder` with the agreed plan, its decisions, and the candidate terms and ADRs from
step 2. My agreement in step 6 authorizes its branch, commit, push and docs PR. Keep the PR link.
If step 5 listed docs: ask me for the `research-docs` output path, then tell me to run these on the
docs branch and push to the same PR:
```
/write-docs <target>
/research-docs <topic> <path>
```
Wait for me.
## 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.
```
/to-spec <agreed plan summary> — link the docs PR <link>
```
My running it is my approval of the spec. Wait for it.
My running it is my approval of the spec. Wait for it. `to-spec` sets `Status/Ready for Agent` on
the spec issue; remove it with `gitea-issues` if present.
## 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.
`to-tickets` is hand-invoked, so you cannot call it. Tell me to run it on the spec (or on this
conversation, on the tickets-only track):
After it files them, read each filed ticket with `gitea-issues`. Remove `Status/Ready for Agent`
from any ticket with no acceptance criteria, and list those tickets for me.
```
/to-tickets <spec issue link | this conversation> — docs PR <link>
```
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.
After it files them, read each filed ticket with `gitea-issues`. Resolve the label IDs with
`gitea-labels-milestones`, remove `Status/Ready for Agent` from any ticket with no acceptance
criteria, and list those tickets for me.
Spec track: create one milestone `Spec: <spec issue title>` with `gitea-labels-milestones`, and
assign every filed ticket to it with `gitea-issues`.
## Report
Links to the docs PR, the spec and the tickets.
Links to the docs PR, the spec, the milestone and the tickets.