No slash command · from git-plugin
Manages release-please PRs in monorepos: batch merges clean PRs, closes conflicting ones for recreation, and iterates until the queue is empty.
Ships in git-plugin. 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.
| Use this skill when... | Use the alternative when... |
|---|---|
| Iteratively merging multiple release-please PRs in a monorepo | Use release-please-configuration to fix the upstream config that produced them |
| Resolving conflicts between sibling release PRs by closure/recreation | Use git-conflicts for ordinary feature-PR merge conflicts |
Coordinating sequential merges when separate-pull-requests: true | Use git-fix-pr if individual release PRs have failing CI checks |
| Reducing the open release PR queue after a burst of releasable commits | Use release-please-protection to detect manual edits to changelog/version files |
Expert knowledge for managing release-please PRs in monorepos, including batch merging, conflict handling, and iterative processing.
Release-please creates separate PRs per component in monorepos (when separate-pull-requests: true). These PRs often need sequential merging due to shared manifest file updates.
# List all pending release PRs
gh pr list --label "autorelease: pending"
# With merge status details
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus
# Check specific PR status
gh pr view <number> --json title,mergeable,mergeStateStatus
| Status | Meaning | Action |
|---|---|---|
CLEAN / MERGEABLE | Ready to merge | Merge immediately |
UNKNOWN | GitHub computing | Wait 5-10 seconds, retry |
DIRTY / CONFLICTING | Has conflicts | Close and wait for recreation |
Release PRs always squash-merge, whatever the house default for feature PRs
(rebase unless there is a reason to squash). release-please documents squash
and merge commits for release PRs and does not list rebase; the PR carries one
bot commit, and rule 2 of the merge-method decision rule picks squash for a
release-please--* head branch (github-pr-title →
merge-strategies.md).
# Merge single PR
gh pr merge <number> --squash
# Merge multiple clean PRs sequentially
gh pr merge 55 --squash && gh pr merge 56 --squash
# Check result
gh pr list --label "autorelease: pending"
# Close conflicting PRs with explanation
gh pr close <number> --comment "Closing due to conflicts from merged PRs. Release-please will recreate."
# Trigger workflow (if workflow_dispatch enabled)
gh workflow run release-please.yml
# Otherwise wait for the next push
Release-please PRs modify .release-please-manifest.json which tracks all component versions. When one PR merges:
A PR left CONFLICTING by a chore:/docs:/ci: commit is not updated by the next run: close it and re-run (references/stuck-conflicting.md).
1. Identify conflicting PRs
↓
2. Close conflicting PRs with comment
↓
3. Wait for release-please to recreate PRs
(triggered by next push or workflow run)
↓
4. New PRs appear with updated base
↓
5. Merge clean PRs, repeat if needed
# Round 1: Initial merge
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus
# Merge CLEAN ones, note CONFLICTING ones
# Round 2: Close conflicts
gh pr close 45 --comment "Closing for recreation"
gh pr close 46 --comment "Closing for recreation"
# Wait for recreation (~5-10 s)
sleep 5
# Round 3: Check new PRs
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus
# New PR numbers will appear, merge them
# Repeat until no pending PRs
# 1. Initial status check
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus
# 2. Wait for GitHub to compute status if UNKNOWN
sleep 5
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus
# 3. Merge clean PRs
for pr in $(gh pr list --label "autorelease: pending" --json number,mergeStateStatus \
-q '.[] | select(.mergeStateStatus=="CLEAN") | .number'); do
gh pr merge $pr --squash
done
# 4. Close conflicting PRs
for pr in $(gh pr list --label "autorelease: pending" --json number,mergeStateStatus \
-q '.[] | select(.mergeStateStatus=="DIRTY") | .number'); do
gh pr close $pr --comment "Closing for recreation after conflicts"
done
# 5. Wait and repeat until done
sleep 10
gh pr list --label "autorelease: pending"
For complex situations, work iteratively:
# Check current state
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus
# Merge one by one, checking status between
gh pr merge <number> --squash
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus
# Handle UNKNOWN status by waiting
sleep 5
gh pr view <number> --json mergeable,mergeStateStatus
| Value | Description | Action |
|---|---|---|
CLEAN | All checks pass, no conflicts | Merge immediately |
UNKNOWN | Status being computed | Wait 5-10 seconds |
DIRTY | Has conflicts | Close PR |
BLOCKED | Branch protection blocking | Check required checks |
BEHIND | Branch is behind base | Update and merge |
| Value | Description |
|---|---|
MERGEABLE | Can be merged |
CONFLICTING | Has merge conflicts |
UNKNOWN | Being calculated |
# Verify all PRs merged
gh pr list --label "autorelease: pending"
# Should return empty
# Check new releases/tags
git fetch --tags
git tag --list --sort=-creatordate | head -10
# Pull latest changes
git pull origin main
Cause: Unreleased changes still exist for component
Check: git log --oneline HEAD ^<component>-v<last-version> -- <component>/
Solution: Merge the PR or revert the changes
Cause: Repository doesn't have branch protection enabled
Error: Pull request Protected branch rules not configured for this branch
Solution: Use gh pr merge --squash without --auto
Cause: release-please.yml doesn't have workflow_dispatch
Solution: Wait for next push to main, or make a commit to trigger
Resource not accessible by integrationSymptom: every run logs Creating 1 releases for pull #N, then
release-please failed: Resource not accessible by integration on
releases#create-a-release. Every later run retries the same release.
Cause: the token is a GitHub App without Workflows: write, and the
release's tag target (the release PR's merge commit) has different
.github/workflows/ content from main. A workflow-file change landed
between the release PR merge and its release run. A concurrency group keeps
only one pending run, so the merge commit's own run can be cancelled by the
next push (claude-plugins #3364: run 2541 cancelled, run 2542 failed).
Check: git diff --stat <merge-sha> origin/main -- .github/workflows.
Solution: grant the App Workflows: write. To unblock without it, create
the release by hand at <merge-sha> with a token that can write workflows,
then relabel the PR autorelease: tagged and re-run the workflow.
Symptom: release-please failed: <!DOCTYPE html> … Unicorn! (a GitHub
5xx) during release creation.
Action: the release is often created anyway. Before treating the run as a
miss, check gh release view <tag> and the PR's autorelease: tagged label.
Cause: PR was merged but GitHub CLI cache is stale Action: This is normal, continue with next PR
| Context | Command |
|---|---|
| Quick status | gh pr list --label "autorelease: pending" --json number,mergeStateStatus |
| Batch merge | gh pr merge N --squash && gh pr merge M --squash |
| Close with reason | gh pr close N --comment "Conflicts" |
| Wait and check | sleep 5 && gh pr list --label "autorelease: pending" |
| Task | Command |
|---|---|
| List pending PRs | gh pr list --label "autorelease: pending" |
| Check PR status | gh pr view N --json mergeable,mergeStateStatus |
| Merge PR | gh pr merge N --squash |
| Close PR | gh pr close N --comment "reason" |
| View recent tags | git tag --sort=-creatordate | head -10 |
| Check workflow runs | gh run list --workflow=release-please.yml -L 5 |
| Label | Meaning |
|---|---|
autorelease: pending | PR waiting to be merged |
autorelease: tagged | PR merged and release tagged |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
52 skills in this plugin
/deadbranchdeadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call./git-api-prGitHub API PR creation without local git. Use when submitting file changes as a PR without local commits — quick fixes, typos, config updates, or bypassing local git state./git-branch-namingBranch names: type prefix (feat/, fix/, chore/), issue number, kebab-case. Use when picking a name for a new branch or setting a repo's branch-naming convention./git-branch-pr-workflowBranch management and PR workflows — git switch/restore, GitHub MCP. Use when creating branches, opening PRs, or working with feature branches.npx claudepluginhub laurigates/claude-plugins --plugin git-pluginOther plugins' skills for the same job