You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Jammy2211
committed
feat(prm): make /prm the full task close-out, not just the merge
/prm was stopping at the merge and handing back to the ship skills. It is now
the last thing a human types for a task: merge, then close the task out end to
end — Shipped comment, issue closed, PyAutoMind prompt moved active/ →
complete/ (claim released, Mind pushed), worktree removed, merged branches
deleted, and a ledger of what ran and what was skipped.
Typing /prm authorizes all of it, so the run no longer stops to ask again. The
close-out order is forced by the tooling and documented as such: prove every
branch merged -> issue -> Mind record -> worktree_remove -> branches.
worktree_remove refuses while active.md still claims the task, which is exactly
why the Mind step precedes it.
Guards that stop the run instead of pressing on:
- an unmerged sibling branch with no open PR (the shipped-in-waves trap — a
complete/ record is a write-up, not a merge receipt)
- a worktree_remove refusal (dirty repo, stale claim); never PYAUTO_WT_FORCE=1
- a worktree holding gitignored data products — the one question /prm asks,
and only when such files exist (2026-07-09: a reduced dataset + archive
cache were destroyed by exactly this cleanup)
reference.md gains the mechanics: per-branch merge proof, `gh api -X PATCH`
for the close (gh issue close is broken in 2.4.0), lifecycle.py record with the
BARE --prompt filename plus the three effects to verify, worktree_root_path and
the data-product check, and remote branch deletion proven with ls-remote.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UrgmL8WMK82GxQJjPL8ZCs
description: The wrap-up shortcut — "PR, CI green, then merge". Watch a feature PR's checks until every workflow run and every matrix leg is green, then merge it (library-first gate honoured) and finish the ship — Mind record, issue comment, cleanup. Use when the user says merge this PR once CI is green, or types /prm. Runs anywhere gh is authenticated: CLI, mobile Claude Code chat, Codex.
3
+
description: The last thing you type for a task — "PR, CI green, then merge", then the full close-out. Watches a feature PR's checks until every workflow run and every matrix leg is green, merges (library-first gate honoured), closes the issue, moves the PyAutoMind prompt active/ → complete/, removes the task worktree and deletes the merged branches. Use when the user says merge this PR once CI is green, close this task out, or types /prm. Runs anywhere gh is authenticated: CLI, mobile Claude Code chat, Codex.
4
4
---
5
5
6
-
# /prm — PR, CI green, then merge
6
+
# /prm — PR, CI green, then merge, then close the task out
7
7
8
-
Follow [`prm.md`](prm.md) exactly; gh mechanics in [`reference.md`](reference.md).
8
+
Follow [`prm.md`](prm.md) exactly; gh + close-out mechanics in
9
+
[`reference.md`](reference.md).
9
10
10
11
Composition door — it owns no agent and re-derives nothing: the merge gates come
11
-
from `/ship_library` / `/ship_workspace`, the CI verdict from GitHub Actions.
12
-
Typing `/prm`**is** the merge authorization; the skill still refuses to merge on
13
-
red, pending, conflicting, or an unmerged upstream library PR, and still asks
14
-
before closing the issue.
12
+
from `/ship_library` / `/ship_workspace`, the CI verdict from GitHub Actions, the
13
+
lifecycle from PyAutoMind. Typing `/prm` authorizes the **whole** close-out —
14
+
merge, issue close, `active/` → `complete/`, worktree and branch removal — so it
15
+
runs to the end without asking again. It still refuses on red, pending,
16
+
conflicting, an unmerged upstream library PR, or an unmerged sibling branch, and
17
+
asks once before deleting a worktree that holds irreplaceable data products.
0 commit comments