Babysit PR
Keeps polling a pull request's CI checks, comments, and unresolved review threads until it's genuinely ready to merge.
Dev & CodingIntermediate★ 90,139⑂ 7,846AI score 7/10Last updated: Aug 9, 2026
What it does
Turns Claude into a persistent PR watcher. Instead of a single status check, it loops: inspect, wait, read new feedback, fix, push, re-inspect.
- Pulls coarse status via
gh pr view --json(draft, mergeable, mergeStateStatus, reviewDecision, statusCheckRollup) - Polls pending checks at a practical 30–60 second cadence
- Uses a paginated GitHub GraphQL query to list every
isResolved=falsereview thread with file, line, author and comment excerpt - Fixes real issues in focused commits, runs tests/builds, pushes, then returns to the inspect step
- Only calls
resolveReviewThreadafter verifying the code or generated artifact actually addresses the comment - Ends with a fresh sweep and evidence-based report: commit SHA, check results, remaining thread count, tests run, dirty local files
Who it's for
- Developers on repos with chatty review bots (CodeRabbit, Copilot, linters)
- Anyone tired of refreshing a PR page while slow CI grinds
- Maintainers shepherding several PRs to green at once
Examples
- "Babysit PR #412 until it's mergeable" — waits for checks, fixes the failing lint, pushes, re-verifies.
- "Triage the bot comments: fix the real ones, confirm the rest are outdated" — dumps threads as TSV and cross-checks against current HEAD.
- "Show me every unresolved review thread" — runs the GraphQL pagination loop and prints path, line, author, and comment snippet.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugin/skills/babysit folder from the GitHub repo thedotmack/claude-mem into my ~/.claude/skills/babysit/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/thedotmack/claude-mem.git /tmp/claude-mem && mkdir -p ~/.claude/skills && cp -r /tmp/claude-mem/plugin/skills/babysit ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Verify prerequisites: run
gh --versionandjq --version. Install withbrew install gh jqon macOS or your distro's package manager. - Authenticate the GitHub CLI with
gh auth login; you need read/write access to the repository holding the PR. - Clone the skill repo:
git clone https://github.com/thedotmack/claude-mem.git /tmp/claude-mem - Copy the skill folder into place:
mkdir -p ~/.claude/skills && cp -r /tmp/claude-mem/plugin/skills/babysit ~/.claude/skills/ - Restart Claude Code,
cdinto the repository that owns the PR, and ask: "Babysit PR #<number> until it's ready to merge." - To change the polling interval, say so explicitly, e.g. "check every 2 minutes" — and stop the watcher when you're done to avoid unnecessary token usage.
View source on GitHub ↗License: Apache-2.0