pr-babysit

pr-babysit is a skill for Claude Code, Codex from a1f/agent-templates. It costs 59 tokens per session (6,880 once invoked), scanned A, original, MIT.

A process for monitoring a GitHub pull request through review and automated checks. It watches for comments, test or build failures, and merge conflicts while the request is being prepared to merge.

In plain words
What is it for?
It polls reviews and CI status, handles approved fixes, reads failure logs, resolves conflicts, pushes updates, and reports when the pull request is ready to merge.
Why use it?
It reduces the manual work of repeatedly checking feedback and resolving routine problems before a pull request is ready.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit It polls reviews and CI status, handles approved fixes, reads failure logs, resolves conflicts, pushes updates, and reports when the pull request is ready to merge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a1f/agent-templates/pr-babysit
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 a1f/agent-templates --skill pr-babysit
Clone the repo
git clone --depth 1 https://github.com/a1f/agent-templates

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/a1f/agent-templates/pr-babysit"><img src="https://agentmods.dev/badge/skills/a1f/agent-templates/pr-babysit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,880 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.00059 $0.06880
Opus 5.5 $0.00024 $0.02752
Sonnet 5.5 $0.00012 $0.01376
Haiku 4.5 $0.00006 $0.00688

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

Security

Grade A, and why

pr-babysit 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 2mo 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.

skills/pr-babysit/SKILL.md · 500 lines

How it starts

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

PR Babysit

Automate the post-PR feedback loop. Polls for new review comments, fixes them, checks CI, resolves merge conflicts, pushes, and repeats until the PR is clean or max rounds are exhausted.

/pr-babysit [--interval 3m] [--max-rounds 5]

Loop:
  1. Fetch PR comments & reviews + CI status + mergeable status (parallel)
  2. Filter for unresolved/new comments since last check, split by human vs bot
  3. Human comments → trade-off assessment + user decision gate (AskUserQuestion or worksheet)
  4. Fix all actionable comments per gate decisions (bot: auto; human: per decision), run quick gates once
  5. Reply to question comments (bot: auto; human: only approved reply, in parallel)
  6. If CI failing → read logs, fix failures
  7. If conflicts → rebase/merge main and resolve conflicts
  8. If changes were made → commit & push, refresh the PR explainer, reset idle counter
  9. If nothing left to fix AND CI green AND no conflicts AND no undecided human comments → final explainer refresh, then [READY TO MERGE]
 10. Otherwise → wait interval, repeat

Prerequisites

The gh CLI must be authenticated with repo scope. The jq command must be available.

Arguments

Parse arguments from the user's message. All are optional:

Arg Default Example
--interval=DURATION 3m --interval=5m
--max-rounds=N 5 --max-rounds=10

Phase 0: Setup

0a. Detect Current PR and Repo Info

Fetch PR data and repo info in parallel:

CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Parallel: PR info + repo info
PR_JSON=$(gh pr view --json number,url,baseRefName,mergeable,mergeStateStatus,createdAt)
REPO_INFO=$(gh repo view --json owner,name)

If no PR exists for the current branch, stop and tell the user to create one first (suggest /make-pr or /pr-make).

Extract:

PR_NUMBER=$(echo "$PR_JSON" | jq -r '.number')
PR_URL=$(echo "$PR_JSON" | jq -r '.url')
BASE_BRANCH=$(echo "$PR_JSON" | jq -r '.baseRefName')
PR_CREATED_AT=$(echo "$PR_JSON" | jq -r '.createdAt')
OWNER=$(echo "$REPO_INFO" | jq -r '.owner.login')
REPO=$(echo "$REPO_INFO" | jq -r '.name')

Read the full file on GitHub · 500 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. 2mo ago First seen · 500 lines · 59 tokens per session scan A 7c63f713e22a

Subscribe to this mod's changes

pr-babysit is a skill published in the GitHub repository a1f/agent-templates (2 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 6,880 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-08-31.

Related

Other skills, from other repositories

pr

Draft a PR body from OMC's paper trail — the smallest visual that proves the change, evidence consumed from the verify protocol (never re-collected), reversibility from the ADR test on the diff, glossary language throughout.

Yeachan-Heo/oh-my-claudecode · 47 tokens

merge-batch

Prepare and merge an owner-selected PR batch with contributor credit and exact-candidate admission. Use for a pasted PR list; combined focused validation is diagnostic, and every actual landing still requires its applicable checks and authorization.

diegosouzapw/OmniRoute · 46 tokens

otto-pr-review-loop

Run Polly and OCR on a PR until all findings settle.

omnigent-ai/omnigent · 17 tokens

engram-branch-pr

PR creation workflow for Engram following the issue-first enforcement system. Trigger: When creating a pull request, opening a PR, or preparing changes for review.

Gentleman-Programming/engram · 37 tokens

github-contributor

A step-by-step guide for contributing code, tests, documentation, or build changes to open-source projects you do not maintain. It explains how to prepare a pull request that follows the project’s rules and is easier for maintainers to review.

daymade/claude-code-skills · 105 tokens

revdiff

Review diffs, files, and documents with inline annotations in a TUI overlay, or answer questions about revdiff usage, configuration, themes, and keybindings. Opens revdiff in agterm/tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iterm2/emacs-vterm, captures annotations, and addresses them. Works in git, hg, and jj repos…

umputun/revdiff · 248 tokens