feat(skills): /prm — the "PR, CI green, then merge" wrap-up door - #248
Merged
Conversation
Adds a composition skill for the sentence typed at the end of nearly every
task. `/prm` resolves the feature PR (argument / current branch / the claimed
task's `library-pr:` + `workspace-pr:` in Mind's active.md), judges CI over
EVERY workflow run for the head sha and EVERY matrix leg inside it, merges in
library-first order, then hands back to the ship skills' completion steps.
It owns no gate of its own: it refuses on red, pending, conflicting, or an
unmerged upstream library PR, fetches a failing job's log before GitHub purges
the blob, and asks before closing the issue — typing /prm authorizes the merge,
not the close.
Pure `gh` (2.4.0-safe: no `gh search`), so it runs on the CLI, mobile Claude
Code chat and Codex alike; the committed .claude/.codex discovery links are what
make it register in web/cloud sessions.
- skills/prm/{SKILL.md,prm.md,reference.md} — 127-line mandatory load
- skills/COMMANDS.md: registered as a tier-4 composition door
- AGENTS.md: named in the command-surface prose
- ship_library / ship_workspace: point their merge step at /prm
- regenerated committed discovery (also picks up the missing `sizing` links)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UrgmL8WMK82GxQJjPL8ZCs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
/prm— a composition door for the sentence typed at the end of nearly every task: "PR CI green then merge". Three keystrokes instead of the sentence./prm 380,PyAutoArray#42, URL) → current branch → the claimed task'slibrary-pr:/workspace-pr:in Mind'sactive.md→gh pr list. More than one candidate → lists them and asks once, never guesses.pushandpull_request) and every job inside each, plusmergeable/mergeStateStatus. One green row is 1 of 4 signals.MERGED. No--delete-branch(it would kill the local branch under a task worktree).ship_*: Shipped comment,lifecycle.py record, Mind push, cleanup.Why it owns no gate
The merge gates stay with
/ship_library//ship_workspace, the verdict stays with GitHub Actions./prmonly sequences them. It refuses on red / pending / conflicting / unmerged upstream library PR, never force-merges, and asks before closing the issue — typing/prmauthorizes the merge, not the close.Agent-agnostic + mobile
Every step is
gh(2.4.0-safe — nogh search), so no checkout is required. The skill detects local vs remote (mobile Claude Code chat / Codex) and skips only the local-only cleanup with a note. Installed to all four surfaces; the committed.claude/+.codex/discovery links in this PR are what make it register in web/cloud sessions.Changes
skills/prm/{SKILL.md,prm.md,reference.md}— 127-line mandatory load, gh mechanics in the lazyreference.mdskills/COMMANDS.md— registered as a tier-4 composition doorAGENTS.md— named in the command-surface proseskills/ship_library+skills/ship_workspace— their merge steps point at/prmsizinglinks)Checks
bin/check_skill_line_counts.sh→ OK, all 46 skills within the 200-line budgetbin/install.sh --check-project-discovery→ OK (5 repos)bin/install.sh --check-agents-surface→ OK🤖 Generated with Claude Code
https://claude.ai/code/session_01UrgmL8WMK82GxQJjPL8ZCs