Why: a grilling round on the outline settled its general shape. The outline now has two tracks (spec and tickets, or tickets only), three entry points that all start at one gate, a validation split between a cheap gate before grilling and a deep check after research, named loop-backs with a two-loop park cap, a docs PR that records decisions before the spec, and a single approval to file tickets and set Ready for Agent. Undecided points are listed under "Open for later". /ship moves into the plugin unchanged from the personal command, so the /ship that /next hands off to ships with the package rather than living only in one maintainer's ~/.claude. It is marked temporary: implementation does not belong in plan long term. Impact: the description in apm.yml, marketplace.json and architecture.md no longer claims the plugin stops before implementation. plan goes to 0.2.0 because it ships a new prompt. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
4.6 KiB
plan plugin — outline
Status: outline only, refined in a first grilling round. This is the maintainer's intent for the
plugin. Nothing below is built yet except the next and ship prompts. Both are the existing
personal commands, moved into the plugin unchanged.
The plugin is set up on its own, separate from delivery, and is meant to grow on its own first.
How the two connect is deliberately left open (see "Open for later").
Purpose
Cover picking up a new ticket or idea and turning it into a spec and a ticket breakdown that agents further down the chain (planning or implementation) can act on with the least extra context gathering.
The goal is to optimise:
- the ticket creation process;
- context management and agent instructions for downstream agents, including the context and instructions written into issues;
- reuse of the context that already exists (repo, tracker, docs) and of online sources.
Sources to consult
- The repo and its context: current practices, rules, functionality, patterns and conventions.
- The internet and other sources: tools, documentation, best practices, examples and standards.
Tracks
The work takes one of two tracks:
- Spec and tickets: a spec issue in the tracker, broken down into tickets.
- Ticket(s) only: one or more tickets with no spec.
The plugin recommends a track, with its reason, after the initial grilling (step 2). The user confirms it at agreement (step 6), because the plan can change the size of the work.
Interaction flow
- Entry. There are three ways in, and all of them continue at step 1:
- an existing ticket;
- a new idea, as free text;
- a ticket picked through
/next.
- Gate. A cheap check before any grilling: is it a duplicate of an open issue or PR, is it
already done, does it contradict an ADR, or is it outside the repo's scope (
docs/VISION.md)? If any of these is true, stop. - Initial grilling, only if required, to explore the ticket's or idea's intention. It ends with a recommended track.
- Research in the repo and online, scoped to the recommended track.
- Deep validation. Check that the work is feasible and fits the repo as it is now. If it does not, go back to grilling (step 2) or stop.
- Offer a plan with options, considerations, recommendations, impact, expected results and the track.
- Agreement. The user agrees and confirms the track, or the flow goes back to grilling or research.
- 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.
- Write the spec as an issue in the tracker (Gitea included). This step runs on the spec and tickets track only.
- Propose a breakdown into tickets. If the breakdown shows a gap in the spec, go back to step 8.
- Approval and filing. One explicit approval covers the whole batch. The plugin files the
tickets and sets
Status/Ready for Agenton the ones that carry acceptance criteria. A ticket without acceptance criteria is never set ready.
Loops
The flow is a loop, not a straight line. The named loop-backs are:
- research → grilling (step 3 or 4 back to 2);
- disagreement → grilling or research (step 6 back to 2 or 3);
- breakdown → spec (step 9 back to 8).
After two loops on the same point, the plugin asks whether to park the idea instead of circling.
What ships today
.apm/prompts/next.prompt.md: the/nextcommand. It ranks open issues by a metric, lets the user pick one, validates it and presents a plan. It is read-only. Building happens through/ship..apm/prompts/ship.prompt.md: the/shipcommand. It executes the plan in context with subagents: implement, review with a clean context, push, open a PR, watch CI. This is temporary. Implementation does not belong in this plugin long term. It ships here so/nexthas a working handoff until implementation has a home.
Open for later
- How plan hands off to
delivery, and how the two plugins relate. Todaydeliverysays only a human setsStatus/Ready for Agent, while plan may set it (step 10). When the two meet, one of those rules has to change. - Templates for the spec and tickets. Plan will own them.
- How epics are represented and tickets linked (milestones, map issues, dependency edges).
- Where research output goes: folded into the spec, or kept as findings files.
- Whether the tracker issue carries the session's state, so planning can be resumed across sessions.