Files
Holocron/plugins/plan/.apm/prompts/plan.prompt.md
T
Defame1297andClaude Opus 5.5 6638385a51 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
2026-11-29 17:09:32 +00:00

99 lines
3.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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)"
disable-model-invocation: true
---
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. Every hand-invoked command you ask me to run goes in a
code block I can copy.
## 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, 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. 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, 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 <agreed plan summary> — link the docs PR <link>
```
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 it on the spec (or on this
conversation, on the tickets-only track):
```
/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, the milestone and the tickets.