# merge-open-prs

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1700 installs
- Author: jssblck
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jssblck/agents/tree/HEAD/skills/merge-open-prs/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/merge-open-prs

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jssblck/agents --skill merge-open-prs -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/merge-open-prs/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/merge-open-prs/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jssblck/agents --skill merge-open-prs -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/merge-open-prs/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jssblck/agents --skill merge-open-prs -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/merge-open-prs/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jssblck/agents merge-open-prs
```

2. **Manually: put the files in place**
- File: `.github/skills/merge-open-prs/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jssblck/agents --skill merge-open-prs -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jssblck/agents --path skills/merge-open-prs
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/merge-open-prs/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jssblck/agents --skill merge-open-prs -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jssblck/agents/tree/HEAD/skills/merge-open-prs/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

From the same set: [jssblck/agents](https://affpapa.org/en/nevibecode/by/jssblck/agents.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
