pr-sweeper

pr-sweeper is a skill for Claude Code from IgorGanapolsky/ThumbGate. It costs 93 tokens per session (1,209 once invoked), scanned A, original, MIT.

A workflow for processing every open GitHub pull request. A pull request is a proposed code change that can be tested, reviewed, and merged into a shared project.

In plain words
What is it for?
Use it to inspect pull requests, fix failed checks, answer review threads, remove drafts when appropriate, rebase conflicting branches, and send ready changes to the repository's merge process.
Why use it?
It prevents open changes from being forgotten when tests fail, reviews are unanswered, or a finished change is still marked as a draft. It also separates changes the agent is allowed to edit from those it should only report.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Codex.

Part of the thumbgate plugin — 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins shipped together

Good fit Use it to inspect pull requests, fix failed checks, answer review threads, remove drafts when appropriate, rebase conflicting branches, and send ready changes to the repository's merge process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igorganapolsky/thumbgate/pr-sweeper
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 IgorGanapolsky/ThumbGate --skill pr-sweeper
Clone the repo
git clone --depth 1 https://github.com/IgorGanapolsky/ThumbGate

Made for: Claude Code.

Or install thumbgate, the plugin that ships this one along with the rest of its 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins.

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-sweeper

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/pr-sweeper"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/pr-sweeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 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.00093 $0.01209
Opus 5.5 $0.00037 $0.00484
Sonnet 5.5 $0.00019 $0.00242
Haiku 4.5 $0.00009 $0.00121

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

Security

Grade A, and why

pr-sweeper 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 19d 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.

.claude/skills/pr-sweeper/SKILL.md · 95 lines

How it starts

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

PR Sweeper — Drive Every Open PR To A Terminal State

CLAUDE.md "PR and CI Protocol" and "Session Hygiene Protocol" are the contract; this skill is the runbook. Read them first if not already loaded.

1. Inventory

gh pr list --repo IgorGanapolsky/ThumbGate --state open --limit 100 \
  --json number,title,headRefName,isDraft,author,mergeStateStatus,reviewDecision,updatedAt

Classify each PR into exactly one bucket:

Bucket Test Action
GREEN all required checks SUCCESS, 0 unresolved threads, not draft step 4
GREEN-DRAFT as above but draft, and it's an agent PR step 3 then 4
RED any required check FAILURE step 2
THREADS unresolved review threads fix, push, re-check (.claude/rules/pr-thread-policy.md)
BEHIND / DIRTY base moved / conflicts BEHIND + green → step 4 (Trunk rebases); DIRTY on a live agent PR → rebase once; stale ≥5 days → close + delete branch per CLAUDE.md
NOT MINE human-authored or another live agent owns it report only, never push to it (fleet-coordination)
HELD (safety gate) removes, disables or loosens a hook, gate, protection or permission check (e.g. #4850) don't undraft, arm auto-merge or queue it without the operator's own message naming the PR (safety-boundaries)

Required checks (verify, they change): gh api repos/IgorGanapolsky/ThumbGate/branches/main/protection/required_status_checks -q '.contexts[]'.

2. Fix RED

Follow ci-failure-triage: read the failure body before forming a hypothesis, reproduce locally, push ONE fix with a test. Never skip, disable or quarantine a test. If Verify changeset fails, add a .changeset/*.md entry ("thumbgate": patch + ≥20-char summary) only when release-relevant files changed.

3. Undraft

Only after npm test (or the scoped suites for the files changed) passes locally. If gh pr ready fails on GraphQL, use REST: gh api -X POST repos/IgorGanapolsky/ThumbGate/pulls/<N>/ready_for_review — see blocked-action-fallback.

Read the full file on GitHub · 95 lines

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. 19d ago Changed · +3 lines 8676a77316ab
  2. 20d ago First seen · 92 lines · 93 tokens per session scan A 60b14e54eb9f

Subscribe to this mod's changes

pr-sweeper is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (34 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,209 once invoked, about $0.0004 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-11.

Related

pr-sweeper compared with skills from other repositories

pr-sweeper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-sweeperIgorGanapolsky/ThumbGateSkill34todayMITA93Claude Code
githubotto-haus/ottoSkill72mo agoMITA21Claude Code, Codex
prYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA47Claude Code
engram-branch-prGentleman-Programming/engramSkill8.4k7d agoMITA37Claude Code, Codex
revdiffumputun/revdiffSkill9742d agoMITA254Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex
write-prtldraw/tldrawSkill52ktodaynoneA53Claude Code, Codex