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:
1 parent
bc04eaaed5
commit
6638385a51
2 files changed
+63
-35
No files matched your search
@@ -8,7 +8,8 @@ Input (raw, verbatim):
|
|||||||
$ARGUMENTS
|
$ARGUMENTS
|
||||||
|
|
||||||
You are the orchestrator. Delegate the reading to subagents and keep only their conclusions. Speak
|
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
|
## 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
|
Repeat until I agree. Count loops per point; after two loops on the same point, ask me whether to
|
||||||
park the idea instead.
|
park the idea instead.
|
||||||
|
|
||||||
2. **Grill** with `grilling`, only if the intent is unclear. Then recommend a track with
|
2. **Grill** with `grilling`, only if the intent is unclear, and load `domain-modeling` to challenge
|
||||||
`plan-track`.
|
terms. Override: make no `GLOSSARY.md` or ADR edits during grilling; collect candidate terms and
|
||||||
3. **Research**: dispatch `plan-researcher` twice in parallel, scope `repo` and scope `web`.
|
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
|
4. **Validate**: dispatch `plan-validator` with the findings. `regrill` → back to 2. `stop` → tell
|
||||||
me why and stop.
|
me why and stop.
|
||||||
5. **Offer a plan**: options, considerations, recommendation, impact, expected results, and the
|
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
|
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,
|
grilling or research. Say in the question that agreeing also approves step 7's docs branch,
|
||||||
push and PR.
|
push and PR.
|
||||||
|
|
||||||
## 7. Record decisions
|
## 7. Record decisions
|
||||||
|
|
||||||
Dispatch `plan-recorder` with the agreed plan and its decisions. My agreement in step 6 authorizes
|
Dispatch `plan-recorder` with the agreed plan, its decisions, and the candidate terms and ADRs from
|
||||||
its branch, commit, push and docs PR. Keep the PR link.
|
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)
|
## 8. Spec (spec and tickets track only)
|
||||||
|
|
||||||
`to-spec` is hand-invoked, so you cannot call it. Tell me to run:
|
`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
|
## 9–10. Tickets
|
||||||
|
|
||||||
`to-tickets` is hand-invoked, so you cannot call it. Tell me to run `/to-tickets` on the spec (or on
|
`to-tickets` is hand-invoked, so you cannot call it. Tell me to run it on the spec (or on this
|
||||||
this conversation, on the tickets-only track). It proposes the breakdown, and my approval inside it
|
conversation, on the tickets-only track):
|
||||||
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`. 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
|
## Report
|
||||||
|
|
||||||
Links to the docs PR, the spec and the tickets.
|
Links to the docs PR, the spec, the milestone and the tickets.
|
||||||
@@ -193,27 +193,22 @@ sequenceDiagram
|
|||||||
has a working handoff until implementation has a home.
|
has a working handoff until implementation has a home.
|
||||||
|
|
||||||
- `.apm/prompts/plan.prompt.md`: the `/plan` command, the MVP orchestrator for steps 0–10. It
|
- `.apm/prompts/plan.prompt.md`: the `/plan` command, the MVP orchestrator for steps 0–10. It
|
||||||
dispatches the agents below, grills with `grilling`, and picks the track with `plan-track`.
|
dispatches the agents below and wires in existing skills at the step where each fits: `grilling`
|
||||||
Steps 8–10 run upstream's hand-invoked `/to-spec` and `/to-tickets`: `/plan` tells the user to
|
with `domain-modeling` (no edits during grilling) and `plan-track` in step 2, including the
|
||||||
type them, and the user running them is the approval.
|
wayfinder early exit; `codebase-design` in step 5; and `gitea-labels-milestones` and
|
||||||
|
`gitea-issues` in steps 8–10 for the Ready-for-Agent strip and the `Spec:` milestone with ticket
|
||||||
|
assignment. Hand-invoked commands (`/wayfinder`, `/write-docs`, `/research-docs`, `/to-spec`,
|
||||||
|
`/to-tickets`) are given to the user as copyable code blocks, and the user running them is the
|
||||||
|
approval.
|
||||||
- `.apm/agents/`: `plan-gate` (step 1), `plan-researcher` (step 3), `plan-validator` (step 4),
|
- `.apm/agents/`: `plan-gate` (step 1), `plan-researcher` (step 3), `plan-validator` (step 4),
|
||||||
read-only (the researcher may write only to the scratchpad), and `plan-recorder` (step 7, the docs PR).
|
read-only (the researcher may write only to the scratchpad), and `plan-recorder` (step 7, the docs PR).
|
||||||
- `.apm/skills/plan-track/`: the track criteria.
|
- `.apm/skills/plan-track/`: the track criteria for all three tracks, `wayfinder` included.
|
||||||
|
|
||||||
All of these are minimal stubs, to be built out. The prompt and agents route to `gitea-issues`, `gitea-labels-milestones`, `gitea-prs`,
|
All of these are minimal stubs, to be built out. The prompt and agents route to `gitea-issues`,
|
||||||
`git-commits` and `agentsmd-author`, which `plan` does not declare as dependencies: it assumes the
|
`gitea-labels-milestones`, `gitea-prs`, `git-commits` and `agentsmd-author`, which `plan` does not
|
||||||
`gitea`, `git` and `core` packages are installed. `research-docs` lives in `plan`, and `write-docs`
|
declare as dependencies: it assumes the `gitea`, `git` and `core` packages are installed.
|
||||||
will too (see below).
|
`research-docs` lives in `plan`. `write-docs` still lives in `bin`; its move to `plan` (`bin`
|
||||||
|
4.0.0 to 5.0.0, `plan` 0.4.0 to 0.5.0) is agreed and ticketed separately.
|
||||||
### Agreed, not yet built
|
|
||||||
|
|
||||||
Agreed in the design above and ticketed separately; none of it is in the prompt yet:
|
|
||||||
|
|
||||||
- `write-docs` moves from `bin` to `plan` (`bin` 4.0.0 to 5.0.0, `plan` 0.4.0 to 0.5.0).
|
|
||||||
- `plan-track` gains the third, `wayfinder` track.
|
|
||||||
- `plan.prompt.md` is rewired: the wayfinder early exit, grilling with `domain-modeling`, the
|
|
||||||
step-7 hand-run `/write-docs` and `/research-docs` commands, and the `Spec:` milestone with
|
|
||||||
ticket assignment.
|
|
||||||
|
|
||||||
## Open for later
|
## Open for later
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user