merge-open-prs — Claude Code skill: merge PRs, install
This skill plans and merges a fixed set of open pull requests through GitHub. Use it when several PRs must land in a controlled order.
npx skills add jssblck/agents --skill merge-open-prs -a claude-codeWhat merge-open-prs does
The skill takes a snapshot of open pull requests, or uses the PRs named by the user. It examines changed files and branch relationships, then selects an order that accounts for dependencies and shared changes. A later PR stays tied to the original work set even when new PRs appear.
For every PR, it checks repository merge rules, required reviews, status checks, and the selected merge method. Branch updates happen only when a conflict, dependency change, or repository policy calls for one. GitHub CLI handles the remote work, while local changes stay in a temporary worktree. If required checks are not green, the skill stops and asks for a decision. It then verifies the default branch and reports the result.
What it helps with
- snapshot a fixed set of open pull requests
- order dependent PRs before their consumers
- inspect file overlap and resolve branch conflicts
- wait for required checks before merging
- report skipped PRs and final branch state
Example prompts for the agent
- Review all open pull requests, choose their merge order, and merge them one at a time.
- Merge PRs
#42,#57, and#61through GitHub, checking required statuses after each one. - Process the open PR set and stop if any item cannot become mergeable.
How to install merge-open-prs
1Skills CLI (Vercel)
npx skills add jssblck/agents --skill merge-open-prs -a claude-code2Manually: put the files in place
~/.claude/skills/merge-open-prs/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/merge-open-prs/
1Skills CLI (Vercel)
npx skills add jssblck/agents --skill merge-open-prs -a codex2Manually: put the files in place
.agents/skills/merge-open-prs/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jssblck/agents --skill merge-open-prs -a cursor2Manually: put the files in place
.cursor/skills/merge-open-prs/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jssblck/agents merge-open-prs2Manually: put the files in place
.github/skills/merge-open-prs/SKILL.md1Skills CLI (Vercel)
npx skills add jssblck/agents --skill merge-open-prs -a gemini-cli2Platform CLI
gemini skills install https://github.com/jssblck/agents --path skills/merge-open-prsManually: put the files in place
.devin/skills/merge-open-prs/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jssblck/agents --skill merge-open-prs -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about merge-open-prs
How do I install merge-open-prs in Claude Code?
Run npx skills add jssblck/agents --skill merge-open-prs -a claude-code. The skill file will be available at ~/.claude/skills/merge-open-prs/SKILL.md.
What does merge-open-prs do?
It records the PR work set, chooses a merge sequence, checks repository gates and required statuses, then merges each pull request through gh.
What happens when a PR cannot become mergeable?
The skill stops and asks for a decision. A draft must be made ready first, and conflicts are handled on the PR branch.