pr-sweep

pr-sweep is a skill for Claude Code from ArcBlock/agent-skills. It costs 66 tokens per session (1,839 once invoked), scanned A, original, MIT.

A batch process that reviews every open GitHub pull request, groups duplicates or conflicts, closes redundant requests, and can merge clean ones after verification.

In plain words
What is it for?
Running scheduled or on-demand reviews across all open pull requests, checking them against live code and tests, deduplicating related work, and gated auto-merging.
Why use it?
It reduces the manual work of reviewing many proposed code changes and prevents overlapping pull requests from being handled independently.

Skill for Claude Code

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

Part of the agentloop plugin — 24 skills shipped together

Good fit Running scheduled or on-demand reviews across all open pull requests, checking them against live code and tests, deduplicating related work, and gated auto-merging.

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

Made for: Claude Code.

Or install agentloop, the plugin that ships this one along with the rest of its 24 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/arcblock/agent-skills/pr-sweep/github.svg)](https://agentmods.dev/skills/arcblock/agent-skills/pr-sweep)
Your own site
<a href="https://agentmods.dev/skills/arcblock/agent-skills/pr-sweep"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/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/arcblock/agent-skills/pr-sweep"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/pr-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,839 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 61
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 67
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Prompt Injection · line 119
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 426
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Tool Misuse · line 499
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Agent Snooping · line 434
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00066 $0.01839
Opus 5.5 $0.00026 $0.00736
Sonnet 5.5 $0.00013 $0.00368
Haiku 4.5 $0.00007 $0.00184

Measured 21d ago against content hash 91030887a2c0, 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 21d 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.

plugins/agentloop/skills/pr-sweep/SKILL.md · 127 lines

How it starts

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

pr-sweep — review all open PRs, dedup-close, merge the clean ones

Read .claude/repo-profile.md first (repo_slug, default_branch, plugin_root, agent_identity_script, comment_language, pr_sweep_freeze_ttl_days, pr_sweep_stale_escalation_days). A batch driver over pr-review; the PR-world twin of issue-sweep. Humans decide only security, breaking changes and direction.

/agentloop:pr-sweep              # review + comment + dedup-close (no merge)
/agentloop:pr-sweep --merge      # … + merge PRs that pass Step 5
/agentloop:pr-sweep --dry-run    # report WOULD-DO only (README "Dry-run contract")
/agentloop:pr-sweep <pr#…>       # only these PRs

Step 0 — Sync the default branch

Plain commands, one at a time (no shell loops / $(…): the sandbox guard refuses them). Never git checkout <default_branch> (a worktree may hold it).

git fetch origin <default_branch>
git reset --hard origin/<default_branch> && git clean -fd

Step 1 — Enumerate and pick the actionable set

gh pr list --state open --limit 100 \
  --json number,title,author,headRefName,headRefOid,mergeable,files,labels,body,updatedAt,isDraft

In this order, from this one call:

  1. Drop epic-managed PRs (epic-conductor owns them).
  2. Freeze: an awaiting-* PR whose updatedAt is older than pr_sweep_freeze_ttl_days (14) gets no API call; older than pr_sweep_stale_escalation_days (30) is named in the run summary only.
  3. agent:hold never merges, closes or loses the label; new human input is still answered.

A PR needs review when: no pr-review comment yet; its head sha differs from the HEAD <sha> of the last <!-- pr-review-verdict --> comment; a human commented (conversation, inline, or review) after the last agent comment; a bot left new inline findings; it went Draft → Ready; a writer's non-bot comment (agent too) is at or after the latest canonical MERGE of any relied-on lens at the head (per lens). An agent comment has a Bot author or the identity header of skill:pr-review / skill:pr-sweep. Nothing new → zero actions. Nothing actionable at all → exit early.

Read the full file on GitHub · 127 lines

Files

What ships with it

3 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. 21d ago Changed · +3 lines 91030887a2c0
  2. 29d ago Changed 8ad2f80dab85
  3. 1mo ago Changed · -87 lines · +1 tokens per session 0128374c7777
  4. 2mo ago Changed · -411 lines · -142 tokens per session 6fb8daa8124f
  5. 2mo ago Changed · +4 lines 2c2f95572e39
  6. 3mo ago First seen · 618 lines · 207 tokens per session scan A b732d39acda6

Subscribe to this mod's changes

pr-sweep is a skill published in the GitHub repository ArcBlock/agent-skills (5 stars, last pushed 22d ago), licensed MIT. It adds 66 tokens to every session and 1,839 once invoked, about $0.0003 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

pr-sweep compared with skills from other repositories

pr-sweep next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-sweepArcBlock/agent-skillsSkill522d agoMITA66Claude Code
prYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k3d agoMITA46Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill12ktodayApache-2.0A17Claude Code, Codex
engram-branch-prGentleman-Programming/engramSkill8.4k8d agoMITA37Claude Code, Codex
github-contributordaymade/claude-code-skillsSkill1.6ktodayMITA105Claude Code, Codex
revdiffumputun/revdiffSkill974todayMITA254Claude Code