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 is contained in:
commit
8fef014cfd
5 files changed
+121
-17
No files matched your search
@@ -86,8 +86,8 @@
|
||||
},
|
||||
{
|
||||
"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.",
|
||||
"version": "0.1.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.",
|
||||
"version": "0.2.0",
|
||||
"category": "Productivity",
|
||||
"source": "./plugins/plan"
|
||||
}
|
||||
|
||||
@@ -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 |
|
||||
| `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 |
|
||||
| `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 |
|
||||
|
||||
One compiler produces the generated content in the tree:
|
||||
|
||||
@@ -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.
|
||||
@@ -1,6 +1,6 @@
|
||||
name: plan
|
||||
version: 0.1.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.
|
||||
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; temporarily also ships /ship to execute a plan.
|
||||
author:
|
||||
name: Mortis
|
||||
url: https://git.rkdr.net/Mortis/
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# plan plugin — outline
|
||||
|
||||
Status: outline only. This is the maintainer's intent for the plugin, captured before any design or
|
||||
grilling. Nothing below is built yet except the `next` prompt, which is the existing personal
|
||||
`/next` command moved into the plugin unchanged.
|
||||
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
|
||||
|
||||
@@ -24,17 +27,73 @@ The goal is to optimise:
|
||||
- **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
|
||||
|
||||
1. **Validate the ticket or idea.** Verify it before any grilling. If it does not hold up, stop.
|
||||
2. **Initial grilling**, only if required, to explore the ticket's or idea's intention.
|
||||
3. **Research** in the repo and online.
|
||||
4. **Offer a plan** with options, considerations, recommendations, impact and expected results.
|
||||
5. **Agreement.** The user either agrees or needs more grilling before agreeing.
|
||||
6. **Write the spec** as an epic or a feature.
|
||||
7. **Propose a breakdown** of the spec into tickets.
|
||||
0. **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`.
|
||||
1. **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.
|
||||
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
|
||||
|
||||
- `.apm/prompts/next.prompt.md` — the `/next` command: rank open issues by a metric, let the
|
||||
user pick one, validate it and present a plan. Read-only; building happens through `/ship`.
|
||||
- `.apm/prompts/next.prompt.md`: the `/next` command. 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 `/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.
|
||||
Reference in new issue
Block a user