Merge pull request 'feat(plan)!: wire existing skills into /plan and move write-docs into plan' (#256) from feat/plan-skill-wiring into main

Reviewed-on: #256
Reviewed-by: Defame1297 <[email protected]>
This commit is contained in:
Defame1297 committed 2026-11-29 18:05:55 +00:00
commit b69ab454f0
8 files changed
+95 -51

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@
{
"name": "bin",
"description": "Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.",
"version": "4.0.0",
"version": "5.0.0",
"category": "Utilities",
"source": "./plugins/bin"
},
@@ -87,7 +87,7 @@
{
"name": "plan",
"description": "Turning a ticket or idea into a validated, researched spec and agent-ready tickets, with the user in the loop; temporarily also ships /ship to execute a plan.",
"version": "0.4.0",
"version": "0.5.0",
"category": "Productivity",
"source": "./plugins/plan"
}
+2 -2
View File
@@ -27,8 +27,8 @@ The plugins:
- **ansible** — authoring, testing and dry-running Ansible playbooks, roles and collections
- **gitops** — authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it
- **k8s** — read-only diagnosis of workloads on a Kubernetes cluster
- **plan** — turning a ticket or idea into a validated, researched spec and agent-ready tickets; ships the `/plan`, `/next` and `/ship` prompts, the `plan-*` agents, `plan-track`, `research-docs`, and Matt Pocock's planning skills (grilling, research, domain modelling, codebase design, wayfinder, spec, tickets, triage) at a pinned release
- **bin** — cross-cutting workflow skills not yet split into a focused plugin: documentation, diagnosis, compressed output (`caveman`), and re-orienting mid-task (`zoom-out`)
- **plan** — turning a ticket or idea into a validated, researched spec and agent-ready tickets; ships the `/plan`, `/next` and `/ship` prompts, the `plan-*` agents, `plan-track`, `research-docs` and `write-docs` (documentation), and Matt Pocock's planning skills (grilling, research, domain modelling, codebase design, wayfinder, spec, tickets, triage) at a pinned release
- **bin** — cross-cutting workflow skills not yet split into a focused plugin: diagnosis, compressed output (`caveman`), and re-orienting mid-task (`zoom-out`)
## Prerequisites
+1 -1
View File
@@ -1,5 +1,5 @@
name: bin
version: 4.0.0
version: 5.0.0
description: Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.
author:
name: Mortis
+55 -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 command you ask me to run goes in a code block
I can copy.
## 0. Entry
@@ -25,41 +26,78 @@ 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>
```
On no, ask me which of the other two tracks to take, then continue to step 3.
3. **Research**: dispatch `plan-researcher` twice in parallel, scope `repo` and scope `web`. Ask
each to 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: if it listed `research-docs` topics, ask me for the `research-docs` output
path. Then tell me the docs branch name (from the PR) and to run these on it, only the lines that
apply, 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; if present, resolve its label ID with `gitea-labels-milestones` and remove it with
`gitea-issues`.
## 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 step 8's `/to-spec` block 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.
+13 -5
View File
@@ -1,10 +1,11 @@
---
name: plan-track
description: >-
Use when planning must recommend or confirm a track for a ticket or idea: spec and tickets, or
ticket(s) only. Not writing the spec -> `to-spec`. Not breaking work into tickets -> `to-tickets`.
Use when planning must recommend or confirm a track for a ticket or idea: spec and tickets,
ticket(s) only, or wayfinder. Not writing the spec -> `to-spec`. Not breaking work into
tickets -> `to-tickets`.
metadata:
version: "0.1.0"
version: "0.2.0"
category: planning
---
@@ -16,8 +17,15 @@ Recommend one track, with a one-sentence reason.
- **Spec and tickets**: a spec issue in the tracker, broken down into tickets.
- **Ticket(s) only**: one or more tickets with no spec.
- **Wayfinder**: a map of the work, explored ticket by ticket. The user runs `/wayfinder`
themselves; never invoke it.
## Pick spec and tickets when any holds
## Pick wayfinder when any holds
- The work is too large for one agent session.
- It has decisions that cannot be settled yet.
## Otherwise, pick spec and tickets when any holds
- The work needs more than one ticket that depends on another.
- It makes a decision that downstream tickets must share.
@@ -27,4 +35,4 @@ Otherwise pick ticket(s) only.
## Output
`track: <spec-and-tickets|tickets-only> | reason: <one sentence>`
`track: <spec-and-tickets|tickets-only|wayfinder> | reason: <one sentence>`
+2 -1
View File
@@ -1,5 +1,5 @@
name: plan
version: 0.4.0
version: 0.5.0
description: Turning a ticket or idea into a validated, researched spec and agent-ready tickets, with the user in the loop; temporarily also ships /ship to execute a plan.
author:
name: Mortis
@@ -13,6 +13,7 @@ keywords:
- tickets
- research
- grilling
- documentation
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
type: hybrid
+20 -23
View File
@@ -68,11 +68,13 @@ stops. Steps 3-10 are skipped.
7. **Record decisions.** Open a docs PR that updates AGENTS.md, GLOSSARY.md, the ADRs and any
other relevant docs with what was decided. The spec links to it, so tickets point at decisions
that are already written down rather than pending. After `plan-recorder` opens the docs PR,
`/plan` gives copyable `/write-docs` and `/research-docs` commands for the user to run on the
docs branch and push to the same PR. `/plan` first asks the user for the `research-docs` output
path. Both need the user in the loop, so they cannot run inside a subagent.
if step 5 listed docs, `/plan` gives copyable `/write-docs` and `/research-docs` commands,
only the ones that apply, for the user to run on the docs branch and push to the same PR. When
`research-docs` topics were listed, `/plan` first asks the user for its output path. Both need
the user in the loop, so they cannot run inside a subagent.
8. **Write the spec** as an issue in the tracker (Gitea included). This step runs on the spec and
tickets track only.
tickets track only. The spec issue never carries `Status/Ready for Agent`; `/plan` strips the
one `/to-spec` sets.
9. **Propose a breakdown** into tickets. If the breakdown shows a gap in the spec, go back to
step 8.
10. **Approval and filing.** One explicit approval covers the whole batch. The plugin files the
@@ -81,7 +83,7 @@ stops. Steps 3-10 are skipped.
label IDs for the Ready-for-Agent strip. On the spec track it also creates the
`Spec: <title>` milestone, and `gitea-issues` assigns the filed tickets to it.
Every hand-invoked command `/plan` asks the user to run is presented as a copyable code block.
Every command `/plan` asks the user to run is presented as a copyable code block.
### Loops
@@ -193,27 +195,22 @@ sequenceDiagram
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
dispatches the agents below, grills with `grilling`, and picks the track with `plan-track`.
Steps 8–10 run upstream's hand-invoked `/to-spec` and `/to-tickets`: `/plan` tells the user to
type them, and the user running them is the approval.
dispatches the agents below and wires in existing skills at the step where each fits: `grilling`
with `domain-modeling` (no edits during grilling) and `plan-track` in step 2, including the
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`, `/to-spec`, `/to-tickets`) and user-run ones
(`/write-docs`, `/research-docs`) 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),
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`,
`git-commits` and `agentsmd-author`, which `plan` does not declare as dependencies: it assumes the
`gitea`, `git` and `core` packages are installed. `research-docs` lives in `plan`, and `write-docs`
will too (see below).
### 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.
All of these are minimal stubs, to be built out. The prompt and agents route to `gitea-issues`,
`gitea-labels-milestones`, `gitea-prs`, `git-commits` and `agentsmd-author`, which `plan` does not
declare as dependencies: it assumes the `gitea`, `git` and `core` packages are installed.
`research-docs` and `write-docs` both ship in `plan`. `write-docs` moved from `bin` in `plan`
0.5.0 (`bin` 4.0.0 to 5.0.0).
## Open for later