/gauntlet:gatekeep-pr [no argument: PRs awaiting my review] | <pr> [issue-ref] [--rebase [base]] | <pr> <pr>... [--rebase [base]] (e.g. 123, 123 gh-45, 123 --rebase, 123 gh-45 --rebase release/2, 123 124 125 on pi only)from gauntlet
Gates pull requests by verifying code, tests, and docs before merge. Supports single or multiple PRs, optional issue references, and rebase sync. Use when explicitly asked to gatekeep or verify a named PR.
Ships in gauntlet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Judge whether code, tests and docs at the assessed head make each promised behavior possible; leave observations requiring the merged change to /skill:check-delivery. Persist one course through reference/post-selection-loop.md's run record; keep final merge/approval and posts separately selected. Before the initial pick, permit only provisioning and the explicit --rebase sync; steps 1-5 read, verify and draft. Execute later writes under a set course, terminal pick or the sync's --rebase authority. Running the verification command executes PR code with your ambient credentials and no sandbox - gate only PRs you are willing to execute.
--rebase) through the set-routing row before steps 1-7; reject a positional issue reference in a set with a one-line error. Apply --rebase [base] to every PR in the set; keep one PR token on the single-PR path below; zero tokens discover per verification-brief.md Section A before this row runs and re-enter it on pi when the discovered roster holds two or more; a trailing comma on a PR token is stripped before identity normalization, so a pasted discovered, smallest first: list is a valid set.verification-brief.md Section A during argument resolution and run the preamble in ### Gather fixed commands. After Ticket display, put the linked entry in the reply carrying the first remaining Gather read (gh run list), then start Progress tracking. Keep the results for the rest of step 1. For a typed set, show the linked list in input order as soon as its metadata is gathered. With no PR token, discover other authors' open PRs in origin during argument resolution per verification-brief.md Section A: awaiting review from me or a team I am on, no drafts, approved PRs, or unanswered change requests, smallest first. Write the linked list in the visible reply text before gating, without waiting. One match gates on this path, two or more re-enter the set-routing row on pi and stop with the discovered list on Claude Code.verification-brief.md Section A) and fetched in step 2; none found -> select the scope contract in step 2 (spec at the head, else the PR's stated intent), never invent acceptance criteria.--rebase [base], parsed after <pr> [issue-ref]: the token after it, when present, is the base branch name (123 --rebase gh-45 means base gh-45, not an issue ref); absent, the base is the digest's baseRefName. Step 2b fetches origin/<base> and validates it: a missing ref stops with a one-line error before any rebase or push. Without --rebase the run performs no additional fetch, rebase, or push before a menu pick and renders no sync line.Verify (step 3) and Review (step 4) each run as a fresh helper with cwd the PR worktree - Verify first, Review after Verify's output file exists (reference/assessment.md ## Helpers); the orchestrator runs every other step itself. Each step reads the sibling(s) its row names and produces exactly one output.
| Step | Read now | Output | Tracker stage |
|---|---|---|---|
| Set routing | reference/batch.md | pi-only admission and isolated per-PR assessment, summary, queued menus, and execution for two or more PRs; return through that procedure | - |
| 1 Gather | verification-brief.md Section A (reuse the argument-resolution read for one typed PR) | PR digest: metadata, diff, checks, comments, worktree discovery | gather |
| 2 Provision + configure | reference/assessment.md | provisioned worktree; config resolved from the merge-base; ticket fetched; the scope block selected (spec rows and design, or stated intent) | provision |
2b Sync (only with --rebase) | reference/sync.md | the PR worktree on the rebased, pushed head with a refreshed digest, or a sync record and the unsynced head, or a rebased, unpushed head (rebased locally, complete) | sync |
| 3 Verify | verification-brief.md Section B | evidence record (CI-first) and one disposition per material claim | verify |
| 4 Review | verification-brief.md Section C | reviewer findings and the internal comment ledger | review |
| 5 Integrate + report | reference/post-selection-loop.md ### Pre-menu refresh, then reference/findings.md, then reference/report.md | AC outcomes, blockers, nits, drafted payloads, the rendered report | report |
| 6 Menu | reference/menus.md | state-selected action, final or post archetype; row 1 is the sole recommendation | menu |
| 7 Loop | reference/post-selection-loop.md (delivery continues in reference/fix-wave.md) | the fixed delivery body until readiness, obstacle or cap; terminal picks and contract decisions through reference/menus.md; re-entry until stop or completion of the terminal post set | (re-opens the re-entered stage) |
Re-entry: a fix wave's own push re-enters step 4 through the own-push sequence (reference/fix-wave.md ## Evidence after push, then reference/post-selection-loop.md ### Re-render); any other head move re-enters step 3; an unchanged head re-enters step 5 through reference/post-selection-loop.md ### Pre-menu refresh. A loop re-entry never re-runs step 2b; the sync runs once per invocation.
After argument resolution (for one typed PR, after the reply carrying the list and the first gh run list call), mint the run folder, then initialize its continuation record before progress initialization (reference/post-selection-loop.md ### Continuation record). Use plan_tracker, never phase_tracker. init with the first three stages of the table, four when --rebase is present (gather, provision, sync, verify, ...); reference/sync.md closes sync before step 3 starts - complete after a push, a no-op, or a rebased, unpushed head (rebased locally), skipped when step 3 runs unsynced, failed on a terminal stop. In step 3 add one task per claim whose evidence is the head's source and record its verdict: complete matched, failed contradicted, skipped unverifiable-pre-merge. Leave claims pending on CI outside the tracker for now; close verify. From then on, add each later stage (review, report, menu, ...) only when it starts, never ahead of time. When the claim-check-only helper runs after a green watch, add one task per pending claim then and record its verdict in the same step. A failed stage or claim stays failed while the skill stops at the menu. Without a plan_tracker tool, keep a plain checklist; behavior is unchanged.
Every helper is a fresh context with cwd the PR worktree; its task names its output path and ends with the output contract. Every dispatch on either harness gets its own output path from mktemp "$RUN_DIR/<role>.XXXXXX"; remove outputs with the run folder through Teardown. On pi: subagent({ agent: <persona>, context: "fresh", async: false, cwd: <worktree> }) with worker for Verify, wave-reviewer for Review and the pre-push review, loop-implementer for file findings, implementer for sync conflict-stop and base-merge helpers; gauntlet_setting({ key: "closureReview" }) supplies the fix-round cap. On Claude Code: the harness's subagent dispatch tool with the duty text as the prompt - Verify: verification-brief.md Section B; Review, pre-push review, and comment-delta review: Section C plus review-baseline.md (append reference/fix-wave.md ## Re-review task for the pre-push review and ancestor step-4 review, on both harnesses); file worker: the shared context and Claude Code tail of reference/fix-wave.md ## Wave; sync conflict stop: the task reference/sync.md ## Conflict stop builds; sync review: Section C plus review-baseline.md with the ## Review before push subject, no closure lines; the no-tool accounting fallback is 2 x 5. A Claude Code helper inherits the session's directory, so its prompt opens with the absolute worktree path and the rule that every command runs as git -C <worktree> ... or (cd <worktree> && ...), checks that git -C <worktree> rev-parse HEAD equals the head its task names (the assessed head for Verify, Review, and the comment-delta reviewer; the current wave HEAD for wave helpers) before working, and names the output path; the orchestrator awaits the tool result before reading the file. For description recheck on pi, use the fresh worker duty in Section B with mode description recheck; on Claude Code, use Section B's separate recheck duty as the native helper prompt. Both tasks supply actual body/head, affected claim IDs, existing evidence, and the affected-only disposition/closure contract, never the CI-emitting claim-only contract. A harness with neither facility is unsupported: stop at step 3 and say so - at step 2b, before any sync write, when --rebase was passed (reference/sync.md).
For pi file-finding row dispatch, use subagent({ agent: "loop-implementer", context: "fresh", async: false, cwd: <worktree>, output: <per-dispatch output path>, outputMode: "file-only", acceptance: { level: "none", reason: "the parent validates the commit and keeps the ledger" }, task: <row task> }); add model: <implModel> on the escalated attempt only, and build the row task through reference/fix-wave.md ### Row dispatch.
These bind every rendered report, menu, and external payload (review bodies, replies, commit subjects, tracker comments). Wording rules directly under # gatekeep-pr extend them.
show evidence; translate internal vocabulary and leave records unchanged. Write thread replies as plain sentences.[recommended], set queue/retirement lines, consent previews, the rejection note's and stuck blocker's required ### headings, the Problem <n> line, the AC coverage heading and checkbox rows, and exact commands with substituted values in rows or closing messages. Keep repository-owned cleanup item text unchanged.| Internal term | Say instead |
|---|---|
| binding pending check | a required check is still running |
| merge_state_status BLOCKED | GitHub won't let this merge yet |
| assessed head | the commit being reviewed |
| durable run record | saved progress |
| PR-named action | the step the PR asks for |
| coverage post | a comment saying which requirements the PR covers |
| withhold | the reason this cannot merge yet |
| terminal pick | your choice |
| post set | the steps you picked |
| disposition | how you classified the check |
| merge blocked, no bypass | GitHub reports the merge as blocked for you |
| bypass eligible | you can use GitHub's admin override |
| conflicting / behind | the branch conflicts with, or is behind, the base branch |
| evidence source ci / local | the checks ran in CI / on this machine |
| cap reached | the repair attempts allowed for this run are used up |
| approach conflict | the PR's design does not fit this repo |
| overruled | you set this problem aside for this run |
| stuck blocker | a problem the repair could not fix |
| nit | a smaller point that does not block merging |
| contradicted claim | the description says one thing and the code does another |
| deferred / deviates / elsewhere | the spec defers it, deliberately differs, or assigns it to another repo |
| pending reviewer placeholder | an automated review is still running |
Before sending any report, menu or external payload, reread it for internal jargon, raw field/value pairs, labeled-field scaffolding and instructions for the human to run a command the skill can run. Rewrite those lines in plain language, preserve the facts and concrete step commands needed for a choice, and execute selected commands yourself. Treat commands for steps not run as information, never a request to paste them.
reference/post-selection-loop.md ### Merge preconditions - owner: reference/findings.md ## Dispositions.reference/menus.md, two recommendations, a recommendation not on row 1 or no show evidence hint - owner: reference/menus.md.cleanup rendered on a non-terminal template, or cleanup steps 2-4 run on non-final stop - owner: reference/cleanup.md ## Non-final stop.reference/menus.md ## final.reference/post-selection-loop.md ### Pre-menu refresh.Read gate configuration at the PR's merge base, never its head; read tracker display settings from the remote default branch. If gauntlet.md exists - checked in order: .pi/gauntlet.md, <repo root>/gauntlet.md, <repo root>/doc/gauntlet.md; first found wins - read it. Skip the read only when the file from the same repository at the same trusted revision is already in context. Apply, without a relevance judgment, these sections of # shared: ## issue-tracker, ## worktrees, ## verification, ## cleanup, ## siblings, ## deployment, ## spec-index. Apply the whole # gatekeep-pr block. Apply nothing else from the file: no other block, no text directly under # shared, no other section of # shared.
Read gate keys in step 2 (reference/assessment.md). Select shared cleanup items through the post menu (reference/menus.md ## post) and execute them through reference/cleanup.md.
The recognized headings, their readers, and the rules an override cannot change are listed in the configuration front door; an override extends or replaces the step it names and never lifts this skill's HARD CONSTRAINT or MUST text.
reference/assessment.md (opens in a new tab)reference/batch.md (opens in a new tab)reference/cleanup.md (opens in a new tab)reference/findings.md (opens in a new tab)reference/fix-wave.md (opens in a new tab)reference/menus.md (opens in a new tab)reference/post-selection-loop.md (opens in a new tab)reference/reject.md (opens in a new tab)reference/report.md (opens in a new tab)reference/sync.md (opens in a new tab)review-baseline.md (opens in a new tab)verification-brief.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/chase-bugUse when a human hands you a bug report to triage - a Slack paste, tracker ticket, GitHub issue, or described symptom - and the goal is an evidenced verdict (real bug, not-a-bug, cannot reproduce, already fixed or reported); triage itself never fixes - a real-bug verdict may hand off to a bounded hotfix after the menu./check-deliveryUse only when explicitly asked to prove delivery of one or more named merged tickets ("check delivery of/forge-skillUse when creating or editing a SKILL.md, a skill's reference file, an agent persona, a prompt template, a slash command, or a file the repo's AGENTS.md or CLAUDE.md routes here, in pi or Claude Code - including one-line edits - or when such a file exceeds 500 lines, gains if/else branching, or drifts from imperative voice; the authoring skill for repos that follow gauntlet's conventions.npx claudepluginhub jjuraszek/pi-gauntlet --plugin gauntletOther plugins' skills for the same job