pr-green-sweep

pr-green-sweep is a skill for Claude Code, Codex from jscraik/Agent-Skills. It costs 57 tokens per session (3,100 once invoked), scanned A, original, Apache-2.0.

A guide for taking open GitHub pull requests from review and failing checks to a verified merge and cleanup.

In plain words
What is it for?
Use it to monitor and fix pull requests, investigate CodeRabbit or CircleCI results, apply approved fixes, merge, and clean up branches or worktrees.
Why use it?
It keeps CI results, review feedback, merge status, and branch cleanup tied to current evidence rather than assumptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./bin/ask skills audit Skills/agent-ops/pr-green-sweep --level strict --json --robot.

Good fit Use it to monitor and fix pull requests, investigate CodeRabbit or CircleCI results, apply approved fixes, merge, and clean up branches or worktrees.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jscraik/Agent-Skills
agentmods
npx agentmods add skills/jscraik/agent-skills/pr-green-sweep

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jscraik/agent-skills/pr-green-sweep"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/pr-green-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,100 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 pass 7 Sept 2026
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.00057 $0.03100
Opus 5.5 $0.00023 $0.01240
Sonnet 5.5 $0.00011 $0.00620
Haiku 4.5 $0.00006 $0.00310

Measured 1mo ago against content hash 957f05728283, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-green-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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_recurring_findings.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Skills/agent-ops/pr-green-sweep/SKILL.md · 250 lines

How it starts

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

PR Green Sweep

Collect findings, confirm the cause, repair within each PR's scope, and verify the result. Use an evidence-backed action queue; a required external failure blocks its PR's merge while independent repairs continue.

When To Use

  • The user asks to monitor, fix, or keep rotating through open PRs until green.
  • Open PRs need GitHub plugin/gh truth, CodeRabbit review fixes, CircleCI log triage, Context7 docs checks, merge, or cleanup.
  • The user wants merged PR branches and worktrees pruned after merge proof.
  • The user asks to review green PRs, resolve threads, merge them, and reconcile local branches in one foreground closeout.

Modes

  • review-fix is the default for named PR review-thread or CI repairs. Finish authorized foreground work; report heartbeat_status: not_requested. Monitoring, merge, and cleanup are not implied by a request to fix findings.
  • green-closeout applies to requested foreground review, thread resolution, merge, and local reconciliation. Carry the named operations through their evidence gates without duplicate confirmation; report heartbeat_status: not_requested. A request to reconcile branches authorizes inspection and safe updates, not blanket branch or worktree deletion.
  • monitor-closeout applies when the user requests recurring continuation. Reuse or create one heartbeat with target PRs, notification intent, and a scope-specific stop rule. A blocked monitor blocks scheduled continuation only; it does not block already-authorized foreground repairs.
  • Merge and cleanup run only when explicitly included in the user's scope. Preserve standing authorization; do not ask again for unchanged authorized operations. Readiness gates and execution approvals still apply.

Read Review Findings for collection, confirmed issue triage, head changes, and the fix-to-resolution proof sequence. The mode rules here govern older closeout capsules and fixtures: heartbeat requirements apply to scheduled work, and cleanup requirements apply only to cleanup.

Read the full file on GitHub · 250 lines

Files

What ships with it

26 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. 1mo ago Changed · +8 lines · -2 tokens per session 957f05728283
  2. 1mo ago Changed · +38 lines · +8 tokens per session a30388d81f16
  3. 1mo ago First seen · 204 lines · 51 tokens per session scan A 2eb34dbb30b7

Subscribe to this mod's changes

pr-green-sweep is a skill published in the GitHub repository jscraik/Agent-Skills (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 3,100 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-09-03.

Related

Other skills, from other repositories

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

merge-queue

Process the Refinery merge queue - collect agent work, detect and resolve conflicts, merge in dependency order, and verify integration.

a5c-ai/babysitter · 29 tokens

feedback-resolution

Address PR review feedback through surgical fixes traceable to specific comments, apply the Boy Scout Rule only to already-modified files (separate improve: commits), recover context by code snippet rather than line number, and enforce pushback only when factually incorrect, test-breaking, or CLAUDE.md-violating. Use…

synaptiai/synapti-marketplace · 103 tokens

pull-request

How to run a pull request to the point where it can be merged — resolving every review conversation, checking every workflow run rather than the summary, and confirming the merge result is what CI actually tested. Load this whenever you open, update, review, or merge a PR, whenever a review round returns findings, and…

olehsvyrydov/AI-development-team · 78 tokens

resolving-merge-conflicts

Use when you need to resolve an in-progress git merge/rebase conflict.

VoDaiLocz/kilo-kit-mcp · 23 tokens

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens