merge-open-prs

merge-open-prs is a skill for Claude Code, Cursor from emaraschio/cursor-commands. It costs 65 tokens per session (2,197 once invoked), scanned A, original, MIT.

A workflow for checking and merging multiple open GitHub pull requests, which are proposed code changes awaiting review. It verifies each request, waits for required checks and reviews, and merges those that pass.

In plain words
What is it for?
Use it to clear a repository’s open pull requests in batches, verify them locally with Docker when available, and merge the ones that are ready.
Why use it?
It removes the repetitive work of reviewing a pull-request queue, running verification, and merging ready changes one by one. It also leaves changes alone when required checks or safety conditions are not met.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/.

Good fit Use it to clear a repository’s open pull requests in batches, verify them locally with Docker when available, and merge the ones that are ready.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emaraschio/cursor-commands/merge-open-prs
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 emaraschio/cursor-commands --skill merge-open-prs
Clone the repo
git clone --depth 1 https://github.com/emaraschio/cursor-commands

Made for: Claude Code, Cursor.

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-open-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/emaraschio/cursor-commands/merge-open-prs/github.svg)](https://agentmods.dev/skills/emaraschio/cursor-commands/merge-open-prs)
Your own site
<a href="https://agentmods.dev/skills/emaraschio/cursor-commands/merge-open-prs"><img src="https://agentmods.dev/badge/skills/emaraschio/cursor-commands/merge-open-prs/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-open-prs

Your own site · 80×15
<a href="https://agentmods.dev/skills/emaraschio/cursor-commands/merge-open-prs"><img src="https://agentmods.dev/badge/skills/emaraschio/cursor-commands/merge-open-prs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,197 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.00065 $0.02197
Opus 5 $0.00032 $0.01099
Sonnet 5 $0.00013 $0.00439
Haiku 4.5 $0.00006 $0.00220

Measured 7d ago against content hash 18e13b90165e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

merge-open-prs 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 7d ago.

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.

.cursor/skill-contracts/merge-open-prs/SKILL.md · 217 lines

How it starts

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

Merge open PRs

Orchestrate a batch of open pull requests in the current repo: babysit each PR, code-review, verify locally (Docker-first), auto-merge when green, then post-batch smoke on the default branch.

Do not duplicate the babysit contract inline. Read and follow the babysit skill at ~/.cursor/skills-cursor/babysit/SKILL.md for every PR in the batch.

Entry point: .cursor/commands/merge-open-prs.md (slash /merge-open-prs). When this file disagrees with the command file, this file wins.


Defaults

Apply these when the user does not override:

Setting Default Override
Verification Docker-first --no-docker
Batch size 10 PRs --limit N
Autonomy auto_if_green (merge when gate passes) --dry-run (no merge)
Single PR Process only that number 42 or #42 argument

Parse flags from the user message: --dry-run, --no-docker, --limit N. A bare number selects one PR.


When NOT to use

  • Single PR babysit only (no batch, no queue) → use babysit on that PR directly
  • Cross-repo initiative status → use cross-repo-status or manual gh sweep per user rules
  • PRs needing product/legal sign-off → skip; report in summary
  • Sensitive security changes without explicit user approval → hard stop
  • Repo has no Docker and user did not pass --no-docker → blocker at preflight (do not silently fall back)

Phase 0: Preflight

  1. gh auth status: blocker if not authenticated
  2. Confirm git repo root: git remote get-url origin
  3. git fetch --all --prune
  4. If working tree dirty → warn; do not stash without asking
  5. Docker (default path): docker info. If it fails and user did not pass --no-docker, stop with a blocker (suggest --no-docker only when they accept non-Docker verification)
  6. Resolve profile path: profiles/<repo-basename>.yaml relative to this skill directory (basename from git remote get-url origin, strip .git, last path segment). See profiles/README.md.

Read the full file on GitHub · 217 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. 7d ago First seen · 217 lines · 65 tokens per session scan A 18e13b90165e

Subscribe to this mod's changes

merge-open-prs is a skill published in the GitHub repository emaraschio/cursor-commands (9 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 2,197 once invoked, about $0.0003 per session on Opus 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-09-03.

Related

Other skills, from other repositories

gentle-ai-collab-perfect

Trigger: contributing to Gentleman-Programming/gentle-ai as an external collaborator. Strict issue-first workflow, honest PR bodies, contributor-vs-maintainer scope, chained-PR strategy, verification protocol, docstring coverage. Load whenever the active repo is Gentleman-Programming/gentle-ai and any part of the…

Gentleman-Programming/gentle-ai · 106 tokens

branch-pr

Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.

Gentleman-Programming/gentle-ai · 26 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

chained-pr

Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.

Gentleman-Programming/gentle-ai · 32 tokens

github-pr-creation

Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing…

myths-labs/muse · 75 tokens

anchor-vet

Evidence-gated diff review for PRs, branches, commit ranges, staged code changes, and merge readiness checks. Use when an AI reviewer must review a concrete git-anchored diff, judge whether code is safe to merge, inspect a PR URL or branch, cross-examine PR or commit claims, account blast radius, or render…

lynxlangya/techne · 107 tokens