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.
npx skills add ArcBlock/agent-skills --skill pr-sweepgit clone --depth 1 https://github.com/ArcBlock/agent-skillsWrote 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.
[](https://agentmods.dev/skills/arcblock/agent-skills/pr-sweep)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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:
- Drop
epic-managedPRs (epic-conductor owns them). - Freeze: an
awaiting-*PR whoseupdatedAtis older thanpr_sweep_freeze_ttl_days(14) gets no API call; older thanpr_sweep_stale_escalation_days(30) is named in the run summary only. agent:holdnever 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.
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.
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.
- 21d ago Changed · +3 lines 91030887a2c0
- 29d ago Changed 8ad2f80dab85
- 1mo ago Changed · -87 lines · +1 tokens per session 0128374c7777
- 2mo ago Changed · -411 lines · -142 tokens per session 6fb8daa8124f
- 2mo ago Changed · +4 lines 2c2f95572e39
- 3mo ago First seen · 618 lines · 207 tokens per session scan A b732d39acda6
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.
pr-sweep compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-sweepArcBlock/agent-skills | Skill | 5 | 22d ago | MIT | A | 66 | Claude Code |
| prYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 47 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | 3d ago | MIT | A | 46 | Claude Code |
| otto-pr-review-loopomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 17 | Claude Code, Codex |
| engram-branch-prGentleman-Programming/engram | Skill | 8.4k | 8d ago | MIT | A | 37 | Claude Code, Codex |
| github-contributordaymade/claude-code-skills | Skill | 1.6k | today | MIT | A | 105 | Claude Code, Codex |
| revdiffumputun/revdiff | Skill | 974 | today | MIT | A | 254 | Claude Code |