pr-green-sweep

pr-green-sweep is a skill for Codex from jscraik/Agent-Skills. It costs 51 tokens per session (2,532 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 Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: 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: 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 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,532 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.00051 $0.02532
Opus 5 $0.00026 $0.01266
Sonnet 5 $0.00010 $0.00506
Haiku 4.5 $0.00005 $0.00253

Measured 8d ago against content hash 2eb34dbb30b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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 · 204 lines

How it starts

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

PR Green Sweep

Own PR closeout from live evidence through merge and cleanup. Use an evidence-backed action queue and one continuation heartbeat; a required external failure blocks its PR while unrelated entries keep their safe action.

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.

Gotchas

  • Read-only PR summaries when the user asked for until-green follow-through.
  • Local test debugging with no PR, review, merge, or continuation workflow.
  • Broadening from the current repo unless the user says "all", "everything", "broad", or names multiple repos/orgs.
  • Admin merges, force pushes, remote branch deletion, or worktree deletion without explicit approval for that action class.
  • Declaring green from local tests while live required checks are pending, failing, stale, or attached to an older head SHA.

Inputs

Use the current repo unless the user names a broader scope. Gather target PRs, heartbeat cadence, merge/check policy, approval posture, and GitHub/CodeRabbit/ CircleCI auth context. Start with two or three focused failure surfaces before broadening a multi-repository sweep. Run credentialed CircleCI commands through the host-configured auth-backed wrapper with ~/.codex/.env; discover that wrapper from the active Codex environment rather than invoking an unqualified run-auth-backed.sh or op directly, and never print secrets.

Outputs

For a non-trivial response, emit heartbeat_status first. Then emit schema_version: 1 with an action queue (auto_fixable_now, needs_merge_conflict_strategy, blocked_policy_or_approval, blocked_external_ci, blocked_pr_metadata, blocked_artifact_context, needs_user_decision, cleanup_only), and heartbeat, dirty-worktree, validation, receipt, merge, cleanup, and blocker ledgers. Group repeats in recurring_finding_classes with finding_class_id, fingerprint_sha256, normalized_invariant, occurrences, root cause, guardrail, and merge eligibility.

Read the full file on GitHub · 204 lines

Files

What ships with it

25 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. 8d 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 (8 stars, last pushed 10d ago), licensed Apache-2.0. It adds 51 tokens to every session and 2,532 once invoked, about $0.0003 per session on Opus 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