Babysit a PR
Shepherds an open pull request to a mergeable state by fixing CI failures, resolving conflicts, and handling straightforward review comments.
Dev & CodingIntermediate★ 1,816⑂ 195AI score 8/10Last updated: Oct 11, 2026
What it does
- Pulls full PR state in one shot via
gh pr view --json number,title,state,mergeable,reviewDecision,statusCheckRollup,mergeStateStatus,comments,reviews. - Triages in priority order: merge conflicts (
DIRTY) → failing checks → human review comments → review-bot findings (Bugbot and similar). - Applies mechanical fixes (renames, guard clauses, formatting nits) and quotes the originating comment in the commit message; defers judgement calls instead of guessing.
- Paces re-checks with
gh pr checks --watchduring active CI, a 20–30 min heartbeat while awaiting reviewers, hourly when idle. - Knows when to stop: green and resolved → ready; three fix/push/recheck rounds without success → stop and summarize; design decision needed → ask the user.
- Hard guardrails: no history rewrites on shared branches, no
--no-verify, no editing assertions just to pass, no bypassing required checks.
Who it's for
- Developers who live in GitHub PRs and lose time babysitting red CI.
- Anyone who wants an agent to handle review follow-ups and re-pushes unattended.
- Users with the
ghCLI installed and authenticated, running Claude Code in a terminal.
Examples
- After opening a PR, say "keep this green": the agent root-causes the failing test, fixes the code, pushes, and watches checks to completion.
- A reviewer flags a variable name and a missing null check: both get fixed and committed, while an architectural suggestion is left with a reply explaining what would have been done.
- A PR goes
DIRTY: the agent invokes the conflict-fixing skill but clears any force-push with you first if the branch is shared.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/michael-denyer/pstack-claude/HEAD/plugins/pstack/skills/babysit/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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 plugins/pstack/skills/babysit folder from the GitHub repo michael-denyer/pstack-claude into my ~/.claude/skills/michael-denyer-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/michael-denyer/pstack-claude.git /tmp/pstack-claude && mkdir -p ~/.claude/skills && cp -r /tmp/pstack-claude/plugins/pstack/skills/* ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Verify the GitHub CLI is ready: run
gh auth status(installghand rungh auth loginif needed). - Clone the repo:
git clone https://github.com/michael-denyer/pstack-claude.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the whole plugin skill set (this skill references siblings like fix-ci, loop, and poteto-mode):
cp -r pstack-claude/plugins/pstack/skills/* ~/.claude/skills/ - Restart Claude Code, cd into the repo that has the PR, and run
/babysitor ask it to "babysit this PR". - Try it first on a PR from a branch you own, so force-push and history-rewrite risks stay contained.
View source on GitHub ↗License: MIT