merge-pr-merge-many

merge-pr-merge-many is a skill for Claude Code, Codex from tony/skills. It costs 42 tokens per session (2,246 once invoked), scanned A, original, MIT.

A workflow for merging several GitHub pull requests one at a time. A pull request is a proposed code change; the workflow updates each one, handles conflicts when allowed, watches its checks, and then merges it with GitHub's command-line tool.

In plain words
What is it for?
Use it when you explicitly want to land a set of pull requests, whether they are stacked or independent. It can rebase branches, resolve conflicts, push updates, wait for CI checks, and merge each request in order.
Why use it?
Merging many pull requests can make later branches outdated or cause conflicts. This workflow refreshes each branch after the previous merge and stops when approval or a required check is missing.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it when you explicitly want to land a set of pull requests, whether they are stacked or independent. It can rebase branches, resolve conflicts, push updates, wait for CI checks, and merge each request in order.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/merge-pr-merge-many
View source ↗ tony/skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tony/skills --skill merge-pr-merge-many
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for merge-pr-merge-many

README.md
[![agentmods](https://agentmods.dev/badge/skills/tony/skills/merge-pr-merge-many/github.svg)](https://agentmods.dev/skills/tony/skills/merge-pr-merge-many)
Your own site
<a href="https://agentmods.dev/skills/tony/skills/merge-pr-merge-many"><img src="https://agentmods.dev/badge/skills/tony/skills/merge-pr-merge-many/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for merge-pr-merge-many

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/merge-pr-merge-many"><img src="https://agentmods.dev/badge/skills/tony/skills/merge-pr-merge-many.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.02246
Opus 5.5 $0.00017 $0.00898
Sonnet 5.5 $0.00008 $0.00449
Haiku 4.5 $0.00004 $0.00225

Measured 2d ago against content hash 1d71487989b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

merge-pr-merge-many scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/merge_pr.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/merge-pr-merge-many/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Merge Multiple PRs

Land a set of pull requests one at a time: merge one, refresh trunk, bring the next PR up to date (rebase, resolve conflicts, force-push, wait on CI), then merge it, repeating until the set is landed or a gate halts the run.

Read references/merge-readiness.md before touching any PR.

User arguments: $ARGUMENTS

Procedure

1. Assemble the roster

Take the PR set from the arguments, or from the PRs this conversation has been working on. If the set is ambiguous (the conversation touched more PRs than the user likely means, or an argument doesn't match an open PR), present the candidates via ask-user-choice and let the user pick; without a question tool, halt and list them. Show the final roster.

Read each roster PR's mergeStateStatus (gh pr view <n> --json mergeStateStatus). When any is BEHIND or DIRTY, confirm via ask-user-choice before the first merge, naming each such PR and its branch as a force-push (--force-with-lease --force-if-includes). The approval also covers a roster PR that falls behind after an earlier merge. Without a question tool, or if the user declines, halt before any rebase or push. When every PR is CLEAN, the approval is still asked at the first PR that needs a rebase.

List the open PRs to check the roster against. A failure means gh is unavailable or unauthenticated: report it and stop. --limit lifts the default cap of 30; a roster PR missing from the list is checked with gh pr view <n> before it is called not open.

$ gh pr list --limit 200 --json number,title,headRefName,baseRefName,isDraft

2. Detect the topology

Check the repo scope as the reference describes. Then have the helper read each PR and order the set, passing --repo when the user did:

$ python3 /absolute/path/to/scripts/merge_pr.py order <PR numbers in the user's order>

It prints the topology (stack when any PR's base branch is another PR's head branch, else independent), the merge order (bottom-up for a stack, otherwise the order given), the trunk, each PR's parent, and each headRefOid; keep the headRefOid values for the stacked rebase. A null trunk means the PRs target different branches: ask which is trunk, or halt and list them without a question tool.

Read the full file on GitHub · 190 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +3 lines 1d71487989b6
  2. 29d ago First seen · 187 lines · 42 tokens per session scan A da5aabe259d6

Subscribe to this mod's changes

merge-pr-merge-many is a skill published in the GitHub repository tony/skills (0 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 2,246 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

merge-pr-merge-many compared with skills from other repositories

merge-pr-merge-many next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
merge-pr-merge-manytony/skillsSkill0todayMITA42Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k3d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k11d agoMITA39Codex