pr-sweep

pr-sweep is a skill for Claude Code from dryvist/claude-code-plugins. It costs 44 tokens per session (2,655 once invoked), scanned A, original, Apache-2.0.

A one-pass triage process for reducing a backlog of open pull requests, the proposed code changes submitted for review, across one or more repositories.

In plain words
What is it for?
Use it to classify pull requests, merge eligible ones, send repairable ones for fixes, and document a specific reason for every request left open.
Why use it?
It helps sort safe merges, inexpensive repairs, and blocked requests while limiting merge races and excessive CI load.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the github-workflows plugin — 18 skills shipped together

Good fit Use it to classify pull requests, merge eligible ones, send repairable ones for fixes, and document a specific reason for every request left open.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/pr-sweep
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 dryvist/claude-code-plugins --skill pr-sweep
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install github-workflows, the plugin that ships this one along with the rest of its 18 skills.

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 pr-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-sweep/github.svg)](https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-sweep)
Your own site
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-sweep"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-sweep/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 pr-sweep

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/pr-sweep"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/pr-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,655 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.00044 $0.02655
Opus 5.5 $0.00018 $0.01062
Sonnet 5.5 $0.00009 $0.00531
Haiku 4.5 $0.00004 $0.00265

Measured today against content hash 7dd878d75311, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-sweep 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 today.

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.

github-workflows/skills/pr-sweep/SKILL.md · 198 lines

How it starts

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

PR Sweep

Drive open PRs toward zero through repeated rounds: merge what is safe, repair what is cheaply repairable, and give every other stale PR an owner, next action, and wake condition. This is triage-and-clear on open PRs; /prune-branches --sweep acts on repo/worktree state and is a different job.

This skill decides which PRs move and in what order. It never reimplements merging: each merge is delegated to /merge-pr, each repair to /finalize-pr.

Completion contract

  • Complete only when a fresh query at the end of a round returns zero open in-scope PRs whose createdAt is older than 24 hours.
  • Any nonzero stale count is a round boundary, not completion. PRs younger than 24 hours may be triaged opportunistically and never block completion.
  • Report the stale count at the start and end of every round.
  • A run blocked on a human stays running: send the batched ask, schedule the next round under the cadence rules, and continue the same workers.
  • Finish Phase 5 validation before the end-of-round query. A merge is not done until its required post-merge validation passes.

Invariants

These five hold in every mode. They are the difference between a sweep and a stampede.

  1. Triage is read-only and confers no merge authority. Classifying a PR never merges it.
  2. A merge happens only against an execution order that pins the head commit. If the head moved since triage, the order is void — re-triage. This is what makes an approval round impossible to race.
  3. Serialize within a repo; parallelize across repos. Merge ordering, broken-base diagnosis, and repo-wide gates are all repo-scoped.
  4. Cap concurrent merges globally (default 2–3). Every merge triggers CI, and CI capacity is finite and shared.
  5. Every stale PR has exactly one owner, one next action, and one wake condition at every round boundary.

Never pass --admin. Never merge a draft. Never bypass a failing check — repair it or route it to ESCALATE or HANDOFF.

Read the full file on GitHub · 198 lines

Files

What ships with it

2 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. today Changed 7dd878d75311
  2. 6d ago Changed · +46 lines · -13 tokens per session e5e9933d4a03
  3. 11d ago Changed · +1 lines 33c3f23c3d21
  4. 13d ago Changed · +4 lines e864eec571c1
  5. 15d ago Changed · +3 lines bfe1cf8a6a92
  6. 1mo ago Changed · +1 lines · -9 tokens per session 5126564c6f5b
  7. 1mo ago First seen · 143 lines · 66 tokens per session scan A 4f5355d4042a

Subscribe to this mod's changes

pr-sweep is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 2,655 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-08-31.

Related

Other skills, from other repositories

review-pr

Multi-agent PR review with four modes (review, re-review, self-review, address-feedback) - spawns parallel subagents, saves diff to /tmp for context efficiency, supports file exclusion patterns.

hoblin/claude-ruby-marketplace · 39 tokens

prkit

Draft and open a GitHub pull request from your branch, with title, summary, and test plan written from the actual commits and diff, then created with the gh CLI, embedding verifykit proof artifacts inline when a bundle is present. Use when the user asks to open a PR, says "create a pull request", "raise a PR", "submit…

mimukit/skills · 95 tokens

mergekit

Take an open GitHub PR and set it up for review on your machine (worktree, project running, review pack), then merge it once you say so, or service review feedback on a PR you authored. Use when you say "pull PR #34 down so I can test it", "merge PR #34", "address the review comments on my PR", or "my PR is red, fix…

mimukit/skills · 88 tokens

code-review-loop

Use when opening a PR for review or when receiving review feedback. Activate for keywords like "code review", "PR review", "request review", "review feedback", "address comments", "reviewer said". Covers both ends of the loop: preparing a reviewable PR and acting on feedback rigorously. Always engage with every…

duthaho/claudekit · 79 tokens

contribute

Complete contribution workflow using git-town. Create branch → commit → PR → ship. Preflight at every step.

terrylica/cc-skills · 25 tokens

commit-review

Review git commits for quality, clarity, and best practices before pushing. Checks commit message format, diff size, test coverage signals, and common mistakes. Use when reviewing commits, before pushing, when asked to "check my commits", "review changes", or "is this ready to push".

myclaude-sh/myclaude-creator-engine · 61 tokens