Spec: wire existing skills into plan's /plan flow #252

Closed
opened 2026-11-29 15:54:55 +00:00 by Claude · 1 comment
Owner

Problem Statement

/plan (the plan plugin's MVP orchestrator) uses only grilling and plan-track, although the plan plugin already pins or ships many more planning skills. Work too big for one session has no track, durable reference docs and repo context docs have no place in the flow, and filed tickets are not grouped. The maintainer wants /plan to use the skills that already exist, while keeping it barebones: wire in existing functionality, build nothing new.

Solution

/plan calls each existing skill at the step where it fits. When a skill is hand-invoked, /plan hands the maintainer a command to copy and run. write-docs moves from bin into plan, so the doc skills the flow relies on live in one plugin. plan-track gains a third track, wayfinder, for work that one agent session cannot hold. On the spec-and-tickets track, the filed tickets are grouped under a Spec: <title> milestone.

User Stories

  1. As a maintainer, I want step 2 to grill with grilling plus domain-modeling, so that unclear terms are challenged while I explore the intent.
  2. As a maintainer, I want domain-modeling to only collect candidate glossary terms and ADRs during grilling, so that no docs change before I agree to the plan.
  3. As a maintainer, I want the step-2 prompt to state that this is grill-with-docs minus writing, so that a reader sees the relation to the hand-invoked wrapper.
  4. As a maintainer, I want plan-track to recommend a wayfinder track for work too large for one agent session, or with decisions that cannot be settled yet, so that big, foggy work is not forced into a spec.
  5. As a maintainer, I want /plan to ask me to confirm the wayfinder track right after step 2, so that no research or validation is wasted on work wayfinder will chart itself.
  6. As a maintainer, I want a copyable /wayfinder command carrying the intent and grilling answers once I confirm the wayfinder track, followed by /plan stopping, so that I can hand off in one paste.
  7. As a maintainer, I want step-3 researchers to flag when lasting reference docs for an external tool or library are needed, so that the need surfaces without anything being written before agreement.
  8. As a maintainer, I want step 5 to use codebase-design only when the options change module or interface shape, so that the vocabulary is applied where it helps and skipped for docs or config work.
  9. As a maintainer, I want step 5 to list the repo docs downstream agents will need for context, so that I agree to them along with the plan.
  10. As a maintainer, I want /plan to give me copyable /write-docs and /research-docs commands to run on the step-7 docs branch after plan-recorder opens the PR, so that interactive doc skills run where they can reach me and land in the same PR.
  11. As a maintainer, I want /plan to ask me for the research-docs output path before giving that command, so that the skill never has to guess where to write.
  12. As a maintainer, I want every hand-invoked command /plan asks me to run (/wayfinder, /to-spec, /to-tickets, /write-docs, /research-docs) shown as a copyable code block, so that handing off costs one paste.
  13. As a maintainer, I want steps 9–10 to resolve label IDs through gitea-labels-milestones when removing Status/Ready for Agent from tickets without acceptance criteria, so that label writes use correct IDs.
  14. As a maintainer, I want /plan to create one Spec: <spec title> milestone on the spec-and-tickets track and assign every filed ticket to it, so that an epic's tickets are grouped and their progress is visible.
  15. As a maintainer, I want write-docs to live in plan next to research-docs, so that the doc skills /plan relies on ship together.
  16. As a consumer of bin, I want the removal of write-docs signalled by a major bin version bump, so that I know to install plan to keep it.
  17. As a maintainer, I want a fresh apm install to deploy exactly one write-docs, so that no stale or duplicate copy survives the move.
  18. As a maintainer, I want /plan to stay a single prompt with four agents and its own small skills, so that the setup remains barebones.

Implementation Decisions

  • write-docs move. A pure rename from the bin plugin into the plan plugin, with no content edits: the skill is already at ADR-0020's body-size budget. Same shape as the #246 move of research-docs.
    • bin goes 4.0.0 → 5.0.0, breaking (feat! with a BREAKING CHANGE footer); plan goes 0.4.0 → 0.5.0.
    • The README plugin bullets move "documentation" from bin to plan.
    • marketplace.json is regenerated with apm pack and the lock with apm install; neither is hand-edited.
    • Nothing left in bin routes to write-docs, and its own routes (grill-with-docs, research-docs) resolve inside plan.
  • plan-track.
    • Adds the wayfinder track: work too large for one agent session, or with decisions that cannot be settled yet.
    • The output line's track values grow to spec-and-tickets | tickets-only | wayfinder.
    • The description is updated and keeps its Not … -> boundary clauses.
    • metadata.version goes 0.1.0 → 0.2.0.
    • /wayfinder is hand-invoked, so the skill only names it as a command for the user to run.
  • /plan prompt.
    • Step 2: load grilling and domain-modeling, with an explicit override that no GLOSSARY.md or ADR edits happen during grilling; candidates are collected for step 7. On the wayfinder track: confirm with the maintainer, give a copyable /wayfinder command, stop.
    • Step 3: unchanged dispatch; researchers flag a need for reference docs.
    • Step 5: codebase-design only when the options change module or interface shape; the plan also lists the docs needed.
    • Step 7: after plan-recorder opens the PR, give copyable /write-docs and /research-docs commands to run on the docs branch, asking for the research-docs output path first.
    • Steps 9–10: gitea-labels-milestones resolves label IDs. On the spec track it also creates the Spec: <title> milestone, and gitea-issues assigns every filed ticket to it.
    • Every hand-invoked command is shown in a code block.
  • Agents. plan-recorder is unchanged: write-docs and research-docs need the user in the loop and cannot run inside a subagent, so the user runs them.
  • Dependencies. gitea-labels-milestones and gitea-issues stay assumed rather than declared, the same as the existing gitea, git and core assumption.

Testing Decisions

  • Good tests check what someone outside can observe — what gets deployed, whether gates pass, the text the prompt shows — not how the prompt is worded internally.
  • Move.
    • apm install then apm audit --ci pass.
    • Exactly one write-docs is deployed under the skills directory.
    • tests/run-tests.sh --strict stays green, which proves ADR-0020/0029 routes still resolve.
    • apm pack check-clean passes.
    • Prior art: the #246 move.
  • plan-track.
    • The existing skill-size-check, check-skill-version-bump and ADR-0020 description tests pass.
    • A text check shows the output line offers wayfinder and the skill names /wayfinder.
  • /plan prompt. No automated seam exists, because the behaviour depends on the model.
    • Text checks show each step names its skill, every hand-invoked command sits in a code block, and step 2 carries the no-write override.
    • Post-merge assertion: running /plan on a small sample idea reaches the wayfinder exit and shows the copyable commands. The reason for an assertion rather than a test: an LLM flow can't be meaningfully unit-tested. This follows ADR-0031's acceptance checks.

Out of Scope

  • Steps 0 (Entry) and 1 (Gate) of /plan.
  • Owning first-party spec or ticket skills or templates; /to-spec and /to-tickets stay upstream and hand-invoked.
  • Changes to plan-recorder or the other agents.
  • codebase-design in step 4 (validation).
  • Release tags (bin-v5.0.0, plan-v0.5.0): cut after merge with scripts/tag-plugin-releases.sh, with separate maintainer approval.

Further Notes

  • Decisions recorded in docs PR !251 (#251):
    • the Spec: <title> milestone convention in the issue-tracker doc;
    • the plan outline rewrite;
    • the ADR-0031 amendment for the write-docs move.
  • The decisions live in that PR, so the tickets cite them instead of restating them.
  • write-docs may move again later; this move is deliberate for now.
  • This spec does not carry Status/Ready for Agent; only tickets with acceptance criteria do.
## Problem Statement `/plan` (the plan plugin's MVP orchestrator) uses only `grilling` and `plan-track`, although the plan plugin already pins or ships many more planning skills. Work too big for one session has no track, durable reference docs and repo context docs have no place in the flow, and filed tickets are not grouped. The maintainer wants `/plan` to use the skills that already exist, while keeping it barebones: wire in existing functionality, build nothing new. ## Solution `/plan` calls each existing skill at the step where it fits. When a skill is hand-invoked, `/plan` hands the maintainer a command to copy and run. `write-docs` moves from bin into plan, so the doc skills the flow relies on live in one plugin. `plan-track` gains a third track, wayfinder, for work that one agent session cannot hold. On the spec-and-tickets track, the filed tickets are grouped under a `Spec: <title>` milestone. ## User Stories 1. As a maintainer, I want step 2 to grill with `grilling` plus `domain-modeling`, so that unclear terms are challenged while I explore the intent. 2. As a maintainer, I want `domain-modeling` to only collect candidate glossary terms and ADRs during grilling, so that no docs change before I agree to the plan. 3. As a maintainer, I want the step-2 prompt to state that this is `grill-with-docs` minus writing, so that a reader sees the relation to the hand-invoked wrapper. 4. As a maintainer, I want `plan-track` to recommend a wayfinder track for work too large for one agent session, or with decisions that cannot be settled yet, so that big, foggy work is not forced into a spec. 5. As a maintainer, I want `/plan` to ask me to confirm the wayfinder track right after step 2, so that no research or validation is wasted on work wayfinder will chart itself. 6. As a maintainer, I want a copyable `/wayfinder` command carrying the intent and grilling answers once I confirm the wayfinder track, followed by `/plan` stopping, so that I can hand off in one paste. 7. As a maintainer, I want step-3 researchers to flag when lasting reference docs for an external tool or library are needed, so that the need surfaces without anything being written before agreement. 8. As a maintainer, I want step 5 to use `codebase-design` only when the options change module or interface shape, so that the vocabulary is applied where it helps and skipped for docs or config work. 9. As a maintainer, I want step 5 to list the repo docs downstream agents will need for context, so that I agree to them along with the plan. 10. As a maintainer, I want `/plan` to give me copyable `/write-docs` and `/research-docs` commands to run on the step-7 docs branch after `plan-recorder` opens the PR, so that interactive doc skills run where they can reach me and land in the same PR. 11. As a maintainer, I want `/plan` to ask me for the `research-docs` output path before giving that command, so that the skill never has to guess where to write. 12. As a maintainer, I want every hand-invoked command `/plan` asks me to run (`/wayfinder`, `/to-spec`, `/to-tickets`, `/write-docs`, `/research-docs`) shown as a copyable code block, so that handing off costs one paste. 13. As a maintainer, I want steps 9–10 to resolve label IDs through `gitea-labels-milestones` when removing `Status/Ready for Agent` from tickets without acceptance criteria, so that label writes use correct IDs. 14. As a maintainer, I want `/plan` to create one `Spec: <spec title>` milestone on the spec-and-tickets track and assign every filed ticket to it, so that an epic's tickets are grouped and their progress is visible. 15. As a maintainer, I want `write-docs` to live in plan next to `research-docs`, so that the doc skills `/plan` relies on ship together. 16. As a consumer of bin, I want the removal of `write-docs` signalled by a major bin version bump, so that I know to install plan to keep it. 17. As a maintainer, I want a fresh `apm install` to deploy exactly one `write-docs`, so that no stale or duplicate copy survives the move. 18. As a maintainer, I want `/plan` to stay a single prompt with four agents and its own small skills, so that the setup remains barebones. ## Implementation Decisions - **`write-docs` move.** A pure rename from the bin plugin into the plan plugin, with no content edits: the skill is already at ADR-0020's body-size budget. Same shape as the #246 move of `research-docs`. - bin goes 4.0.0 → 5.0.0, breaking (`feat!` with a `BREAKING CHANGE` footer); plan goes 0.4.0 → 0.5.0. - The README plugin bullets move "documentation" from bin to plan. - `marketplace.json` is regenerated with `apm pack` and the lock with `apm install`; neither is hand-edited. - Nothing left in bin routes to `write-docs`, and its own routes (`grill-with-docs`, `research-docs`) resolve inside plan. - **`plan-track`.** - Adds the `wayfinder` track: work too large for one agent session, or with decisions that cannot be settled yet. - The output line's track values grow to `spec-and-tickets | tickets-only | wayfinder`. - The description is updated and keeps its `Not … ->` boundary clauses. - `metadata.version` goes 0.1.0 → 0.2.0. - `/wayfinder` is hand-invoked, so the skill only names it as a command for the user to run. - **`/plan` prompt.** - **Step 2:** load `grilling` and `domain-modeling`, with an explicit override that no `GLOSSARY.md` or ADR edits happen during grilling; candidates are collected for step 7. On the wayfinder track: confirm with the maintainer, give a copyable `/wayfinder` command, stop. - **Step 3:** unchanged dispatch; researchers flag a need for reference docs. - **Step 5:** `codebase-design` only when the options change module or interface shape; the plan also lists the docs needed. - **Step 7:** after `plan-recorder` opens the PR, give copyable `/write-docs` and `/research-docs` commands to run on the docs branch, asking for the `research-docs` output path first. - **Steps 9–10:** `gitea-labels-milestones` resolves label IDs. On the spec track it also creates the `Spec: <title>` milestone, and `gitea-issues` assigns every filed ticket to it. - Every hand-invoked command is shown in a code block. - **Agents.** `plan-recorder` is unchanged: `write-docs` and `research-docs` need the user in the loop and cannot run inside a subagent, so the user runs them. - **Dependencies.** `gitea-labels-milestones` and `gitea-issues` stay assumed rather than declared, the same as the existing `gitea`, `git` and `core` assumption. ## Testing Decisions - Good tests check what someone outside can observe — what gets deployed, whether gates pass, the text the prompt shows — not how the prompt is worded internally. - **Move.** - `apm install` then `apm audit --ci` pass. - Exactly one `write-docs` is deployed under the skills directory. - `tests/run-tests.sh --strict` stays green, which proves ADR-0020/0029 routes still resolve. - `apm pack` check-clean passes. - Prior art: the #246 move. - **`plan-track`.** - The existing `skill-size-check`, `check-skill-version-bump` and ADR-0020 description tests pass. - A text check shows the output line offers `wayfinder` and the skill names `/wayfinder`. - **`/plan` prompt.** No automated seam exists, because the behaviour depends on the model. - Text checks show each step names its skill, every hand-invoked command sits in a code block, and step 2 carries the no-write override. - Post-merge assertion: running `/plan` on a small sample idea reaches the wayfinder exit and shows the copyable commands. The reason for an assertion rather than a test: an LLM flow can't be meaningfully unit-tested. This follows ADR-0031's acceptance checks. ## Out of Scope - Steps 0 (Entry) and 1 (Gate) of `/plan`. - Owning first-party spec or ticket skills or templates; `/to-spec` and `/to-tickets` stay upstream and hand-invoked. - Changes to `plan-recorder` or the other agents. - `codebase-design` in step 4 (validation). - Release tags (`bin-v5.0.0`, `plan-v0.5.0`): cut after merge with `scripts/tag-plugin-releases.sh`, with separate maintainer approval. ## Further Notes - Decisions recorded in docs PR !251 (https://git.rkdr.net/Mortis/Holocron/pulls/251): - the `Spec: <title>` milestone convention in the issue-tracker doc; - the plan outline rewrite; - the ADR-0031 amendment for the `write-docs` move. - The decisions live in that PR, so the tickets cite them instead of restating them. - `write-docs` may move again later; this move is deliberate for now. - This spec does not carry `Status/Ready for Agent`; only tickets with acceptance criteria do.
Claude added the Kind/EnhancementCompat/Breaking
Priority
Medium
3
labels 2026-11-29 15:54:55 +00:00
Author
Owner

All work for this spec has merged:

  • Decisions: !251.
  • Tickets: #253, #254 and #255, implemented in !256.
  • Lock refresh: !257.
  • Release tags: bin-v5.0.0 and plan-v0.5.0.

One check is still open: the post-merge assertion from #255. Run /plan on an oversized idea and confirm it reaches the wayfinder exit.

All work for this spec has merged: - **Decisions:** !251. - **Tickets:** #253, #254 and #255, implemented in !256. - **Lock refresh:** !257. - **Release tags:** `bin-v5.0.0` and `plan-v0.5.0`. One check is still open: the post-merge assertion from #255. Run `/plan` on an oversized idea and confirm it reaches the wayfinder exit.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#252