pr-sweep

pr-sweep is a skill for Claude Code from Chemaclass/agnostic-ai. It costs 18 tokens per session (1,220 once invoked), scanned A, original, MIT.

A workflow for reviewing every eligible open GitHub pull request, a proposed code change, and taking confirmed fixes through passing CI, the automated build and test checks.

In plain words
What is it for?
Use it to list open pull requests, review them, verify reported problems, apply appropriate fixes, run tests, and merge branches when instructed.
Why use it?
It organizes review, evidence checking, editing, testing, and merging so findings are not applied blindly. It can also stop before merging.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to list open pull requests, review them, verify reported problems, apply appropriate fixes, run tests, and merge branches when instructed.

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

Made for: Claude Code.

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/chemaclass/agnostic-ai/pr-sweep/github.svg)](https://agentmods.dev/skills/chemaclass/agnostic-ai/pr-sweep)
Your own site
<a href="https://agentmods.dev/skills/chemaclass/agnostic-ai/pr-sweep"><img src="https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/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/chemaclass/agnostic-ai/pr-sweep"><img src="https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/pr-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,220 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.00018 $0.01220
Opus 5.5 $0.00007 $0.00488
Sonnet 5.5 $0.00004 $0.00244
Haiku 4.5 $0.00002 $0.00122

Measured 27d ago against content hash fa4472cbd07b, 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 27d 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.

.agnostic-ai/skills/pr-sweep/SKILL.md · 54 lines

How it starts

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

PR sweep

Review and finish the requested PRs, or all eligible open PRs when none are specified. A user request to sweep or merge authorizes merging within that scope. With --no-merge, apply fixes and stop at reviewable green PRs. For a review-only request, report findings without changing or merging the branch unless the user also asked for fixes.

List and isolate

Confirm the repository and current user. List open PRs with number, title, author, draft state, head branch and SHA, and base branch. Paginate until complete. For a sweep, skip drafts and PRs by other authors and report them. An explicitly requested review of one of those PRs may proceed; do not mark a contributor draft ready or merge it.

Fetch the base and PR heads. Stop if local main has unpublished commits. Preserve a dirty starting checkout and perform each PR's work in a dedicated worktree. Record its absolute path and branch; reuse an existing task worktree only after checking its head and local changes. Do not discard unpublished work or force a branch held by another worktree. Stop the affected PR if its task worktree is unsafe and continue independent PRs. Run Git commands in the task worktree; a tool wrapper problem does not justify switching the starting checkout.

Review

Read the PR description, comments, review threads, and whole diff against its declared base. Run two independent passes on the current PR diff:

  • Use the available code-reviewer role for Go changes, or a reviewer against project rules for other changes. Respect the role's configured model; concrete model choices belong in agent metadata.
  • Use the available adversarial review role or command to challenge the design, assumptions, and real usage failures.

If either role is unavailable, use an available reviewer with the corresponding brief. If delegation is unavailable, perform two separate passes with those briefs. Read both results before editing. For an authorized fix, repeat the adversarial pass on changed code until remaining findings are resolved or explicitly rejected with evidence. Reuse a pass only when its reviewed inputs are unchanged. If a pass cannot settle a finding without a new design decision or unavailable evidence, report the blocker.

Read the full file on GitHub · 54 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. 27d ago Changed · -29 tokens per session fa4472cbd07b
  2. 1mo ago Changed 32c515a64000
  3. 1mo ago Changed · -26 lines 08c9d0bb2b30
  4. 1mo ago Changed f2631be65508
  5. 1mo ago Changed 7f5f7c22b8c1
  6. 2mo ago Changed · +7 lines · +24 tokens per session 996b3d3db3ef
  7. 2mo ago Changed · -3 lines 57222c6a65df
  8. 2mo ago First seen · 76 lines · 23 tokens per session scan A fe649e092bfd

Subscribe to this mod's changes

pr-sweep is a skill published in the GitHub repository Chemaclass/agnostic-ai (31 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,220 once invoked, about $0.0001 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-09-24.

Related

pr-sweep compared with skills from other repositories

pr-sweep next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-sweepChemaclass/agnostic-aiSkill31todayMITA18Claude Code
eg-precommit-reviewvshvedov/elephant-goldfishSkill10425d agoMITA24Codex
hk-pr-reviewdeepklarity/harness-kitSkill10820d agoMITA94Claude Code
github-pr-workflowpaperclipai/paperclipSkill118kyesterdayMITA39Claude Code, Codex
agent-swarm-prruvnet/rufloSkill83ktodayMITA18Claude Code
agent-pr-managerruvnet/rufloSkill83ktodayMITA16Claude Code
github-automationruvnet/rufloSkill83ktodayMITA61Claude Code