Merge pull request 'feat(plan): refine outline and ship /ship temporarily' (#244) from feat/install-plan into main

Reviewed-on: #244
Reviewed-by: Defame1297 <[email protected]>
This commit was merged in pull request #244.
This commit is contained in:
Defame1297 committed 2026-11-28 19:46:05 +00:00
commit 8cc8667bb3
5 files changed
+121 -17

No files matched your search

+2 -2
View File
@@ -86,8 +86,8 @@
}, },
{ {
"name": "plan", "name": "plan",
"description": "Turning a ticket or idea into a validated, researched spec and agent-ready tickets, with the user in the loop; stops before implementation.", "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.1.0", "version": "0.2.0",
"category": "Productivity", "category": "Productivity",
"source": "./plugins/plan" "source": "./plugins/plan"
} }
+1 -1
View File
@@ -47,7 +47,7 @@ These are routing boundaries, not inventories — they answer "where does a new
| `ansible` | Authoring, testing and dry-running Ansible playbooks, roles and collections | | `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; pod-level problems hand off to `k8s` | | `gitops` | Authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it; pod-level problems hand off to `k8s` |
| `k8s` | Read-only diagnosis of workloads on a Kubernetes cluster | | `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, with the user in the loop; stops before implementation, which is `delivery`'s | | `plan` | 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, until implementation moves elsewhere |
| `bin` | Unsorted skills that have not earned a home yet | | `bin` | Unsorted skills that have not earned a home yet |
One compiler produces the generated content in the tree: One compiler produces the generated content in the tree:
+45
View File
@@ -0,0 +1,45 @@
---
description: Execute the plan in context with subagents — implement, clean-context review, push, PR, watch CI, report
disable-model-invocation: true
---
Execute the plan already in this conversation. If there is no plan in context, stop and ask for one.
You are the orchestrator. Delegate the work to subagents and keep your own context lean: give each
subagent a tight brief and take back only its conclusion. Do not narrate to the user between steps.
Speak to the user only to stop and ask (see below) or to give the final report.
## Loop
1. **Implement** — dispatch subagents for the plan's steps. Run them in parallel when they touch
different files and sequentially when they depend on each other or share files. Tell them to use
the repo's relevant skills (for example `git-commits`) and to follow its AGENTS.md. If you are on
the default branch, create a feature branch first.
2. **Review** — dispatch a fresh subagent with no inherited context. Give it the plan and the
diff against the base branch, not the implementers' summaries. Ask it for blocking and
non-blocking findings.
3. Blocking findings → send them to implementer subagents, then review again with a new
clean-context subagent. Cap: 3 implement→review rounds, then stop and ask.
4. **Push and PR** — push the feature branch and open a PR (use the `gitea-prs` skill on Gitea
remotes). Invoking `/ship` authorizes these: creating the branch, commits, normal pushes to it,
and opening or updating the PR.
5. **Watch CI** — without filling your context: either run a background poll you write on the spot
(every 120 s, exits when CI finishes, never saved to the repo or committed) or dispatch a
subagent to do the polling. If CI fails, a fix subagent diagnoses and fixes it, you push, and you
watch again. Cap: 3 CI fix rounds, then stop and ask.
6. **Finish** — when CI is green, update the PR title and description if they no longer match the
change.
## Stop and ask when
- the plan is ambiguous or the work would go outside the plan's scope
- a finding needs a design decision
- a secret or credential turns up
- a round cap is hit
- an action is irreversible beyond the authorization above: force-push, push to the default branch,
merge, or delete. Never merge.
## Final report
Short: PR link, what changed, number of review rounds, CI result, and open notes or non-blocking
findings.
+2 -2
View File
@@ -1,6 +1,6 @@
name: plan name: plan
version: 0.1.0 version: 0.2.0
description: Turning a ticket or idea into a validated, researched spec and agent-ready tickets, with the user in the loop; stops before implementation. 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: author:
name: Mortis name: Mortis
url: https://git.rkdr.net/Mortis/ url: https://git.rkdr.net/Mortis/
+71 -12
View File
@@ -1,8 +1,11 @@
# plan plugin — outline # plan plugin — outline
Status: outline only. This is the maintainer's intent for the plugin, captured before any design or Status: outline only, refined in a first grilling round. This is the maintainer's intent for the
grilling. Nothing below is built yet except the `next` prompt, which is the existing personal plugin. Nothing below is built yet except the `next` and `ship` prompts. Both are the existing
`/next` command moved into the plugin unchanged. 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 ## Purpose
@@ -24,17 +27,73 @@ The goal is to optimise:
- **The internet and other sources**: tools, documentation, best practices, examples and - **The internet and other sources**: tools, documentation, best practices, examples and
standards. 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 ## Interaction flow
1. **Validate the ticket or idea.** Verify it before any grilling. If it does not hold up, stop. 0. **Entry.** There are three ways in, and all of them continue at step 1:
2. **Initial grilling**, only if required, to explore the ticket's or idea's intention. - an existing ticket;
3. **Research** in the repo and online. - a new idea, as free text;
4. **Offer a plan** with options, considerations, recommendations, impact and expected results. - a ticket picked through `/next`.
5. **Agreement.** The user either agrees or needs more grilling before agreeing. 1. **Gate.** A cheap check before any grilling: is it a duplicate of an open issue or PR, is it
6. **Write the spec** as an epic or a feature. already done, does it contradict an ADR, or is it outside the repo's scope (`docs/VISION.md`)?
7. **Propose a breakdown** of the spec into tickets. If any of these is true, stop.
2. **Initial grilling**, only if required, to explore the ticket's or idea's intention. It ends
with a recommended track.
3. **Research** in the repo and online, scoped to the recommended track.
4. **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.
5. **Offer a plan** with options, considerations, recommendations, impact, expected results and
the track.
6. **Agreement.** The user agrees and confirms the track, or the flow goes back to grilling or
research.
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.
8. **Write the spec** as an issue in the tracker (Gitea included). This step runs on the spec and
tickets track only.
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
tickets and sets `Status/Ready for Agent` on 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 ## What ships today
- `.apm/prompts/next.prompt.md` — the `/next` command: rank open issues by a metric, let the - `.apm/prompts/next.prompt.md`: the `/next` command. It ranks open issues by a metric, lets the
user pick one, validate it and present a plan. Read-only; building happens through `/ship`. user pick one, validates it and presents a plan. It is read-only. Building happens through
`/ship`.
- `.apm/prompts/ship.prompt.md`: the `/ship` command. 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 `/next`
has a working handoff until implementation has a home.
## Open for later
- How plan hands off to `delivery`, and how the two plugins relate. Today `delivery` says only a
human sets `Status/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.