merge-pr-thislisted
Install: claude install-skill tony/ai-workflow-plugins
# Merge This PR
Merge a single pull request — the one this conversation is about, or
the one the current branch belongs to — via `gh pr merge`, with a
merge commit whose message matches the repository's own
`git log --merges` history. Nothing merges until the readiness gate
passes.
Read `references/merge-readiness.md` first; it
defines the readiness gate, the rebase procedure, the merge-message
derivation, flag passthrough, the `--admin` policy, and the rule that
merging is not releasing.
User arguments: $ARGUMENTS
## Context
Current branch — run this command and read the output:
```bash
git branch --show-current
```
PR for the current branch — run this command and read the output:
```bash
gh pr view --json number,title,url,state,isDraft,baseRefName,mergeable,mergeStateStatus,reviewDecision 2>/dev/null || echo "(no PR for current branch)"
```
Checks — run this command and read the output:
```bash
gh pr checks 2>/dev/null || echo "(no PR or no checks)"
```
## Procedure
### 1. Identify the PR
Precedence: an explicit argument (number or URL) > the PR this
conversation has been working on > the current branch's PR. If the
candidates disagree — the argument names one PR while the
conversation is about another — ask via `ask-user-choice` before
proceeding.
### 2. Run the readiness gate
Apply the readiness gate from the reference. Pending checks are
waited on with `gh pr checks <n> --watch`; failing checks, a draft
state, or `CHANGES_REQUESTED` halt with a report. If