Compare commits

..
5 Commits
Author SHA1 Message Date
Defame1297 8cc8667bb3 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]>
2026-11-28 19:46:05 +00:00
Defame1297 a84ce90694 Merge branch 'main' into feat/install-plan 2026-11-28 19:45:55 +00:00
Defame1297andClaude Opus 5.5 f5cbaa78e2 feat(plan): refine outline and ship /ship temporarily
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
2026-11-28 19:12:29 +00:00
Defame1297 e4abbd06df Merge pull request 'feat(apm): install plan in this repo' (#243) from feat/install-plan into main
Reviewed-on: #243
2026-11-28 18:27:23 +00:00
Defame1297andClaude Opus 5.5 d782239d19 feat(apm): install plan in this repo
This repo installs what it ships (ADR-0018), so root apm.yml now consumes
the plan package added in #241. It could not be wired in that PR because
root dependencies resolve from remote main (ADR-0019). apm.lock.yaml
records plan 0.1.0 and its one deployed file, .claude/commands/next.md.

plan is the first package to ship a prompt, so .claude/commands/ is apm
install output for the first time. It joins .claude/skills/ and
.claude/agents/ in .gitignore for the same reason: committing a deployed
copy would add a mirror of plugins/<name>/.apm/ to drift against.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-28 17:55:44 +00:00
8 changed files with 149 additions and 18 deletions

No files matched your search

+2 -2
View File
@@ -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"
}
+1
View File
@@ -33,6 +33,7 @@ apm_modules/
# deployed copy would add a third mirror of the same skills to drift against.
.claude/skills/
.claude/agents/
.claude/commands/
# APM MCP deployment output — `apm install` writes the repo-root .mcp.json from
# the MCP servers its dependencies declare, and regenerates it on every install.
+24 -1
View File
@@ -1,5 +1,5 @@
lockfile_version: '1'
generated_at: '2026-11-27T16:22:59.651797+00:00'
generated_at: '2026-11-28T17:55:03.653446+00:00'
apm_version: 0.28.0
dependencies:
- repo_url: Mortis/Holocron
@@ -716,6 +716,20 @@ dependencies:
package_type: apm_package
content_hash: sha256:91649428cf594bd911beb982282f92f7b732908db649d484e420c0ba1d6b6b7b
declared_license: MIT
- repo_url: Mortis/Holocron
name: plan
host: git.rkdr.net
resolved_commit: 5920287122c4afa17f3323247840153456e2e666
version: 0.1.0
virtual_path: plugins/plan
is_virtual: true
package_type: apm_package
deployed_files:
- .claude/commands/next.md
deployed_file_hashes:
.claude/commands/next.md: sha256:12668ef795442d3ced640a2177cabf8df0e046381939a607784006e945bbb4a5
content_hash: sha256:7aee1153d134f9b1d39e6fd8448cb549f30221dadbcb49d79b505fa9bcbd9b3c
declared_license: MIT
- repo_url: fluxcd/agent-skills
name: gitops-knowledge
host: github.com
@@ -1395,6 +1409,15 @@ deployments:
- git.rkdr.net/Mortis/Holocron/plugins/lint
active_owner: git.rkdr.net/Mortis/Holocron/plugins/lint
content_hash: sha256:efeee4fb01c27b9177239f059851cf1b736ca50a12793b94d5d65d30ab98bcd4
- kind: project-relative
target: claude
value: .claude/commands/next.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:12668ef795442d3ced640a2177cabf8df0e046381939a607784006e945bbb4a5
- kind: project-relative
target: claude
value: .claude/hooks/delivery/.apm/hooks/guard.py
+3
View File
@@ -47,6 +47,9 @@ dependencies:
path: plugins/gitops
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/k8s
# Ticket and idea planning, up to an agent-ready spec and breakdown.
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/plan
mcp: []
# Turns apm's executable-trust gate ON. Without this block the gate is disabled
+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 |
| `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:
+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
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/
+71 -12
View File
@@ -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.