Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jssblck/agents --skill merge-open-prs -a claude-code
Open on GitHub

What 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 #61 through 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-code

2Manually: put the files in place

~/.claude/skills/merge-open-prs/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/merge-open-prs/

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.

Similar skills

All skills for Git and GitHub →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor