Watch a pull request through CI and review bots, fix real findings, and keep it rebased until it is ready. Use for /babysit-pr.
Ships in lrstanley. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Carry one PR from its current state to the merge gate, handling every check failure and review finding along the way.
Use exactly one watcher per PR: watch_pull_request in T3 Code, pr-wait
everywhere else. Both replace any hand-written polling or sleep loop. Every
watcher on a GitHub account shares one rate limit.
When an event needs no action, end your turn without a message.
watch_pull_requestHandle the existing checks and comments first. Then call
watch_pull_request and end your turn. T3 Code wakes you with a message when
a check fails, the required checks pass, someone comments or reviews, or the
branch conflicts.
delegate_task child) leaves watching to its parent, and every
thread watches only PRs it is working on.watch_pull_request reports conflicts but not BEHIND, so check BEHIND too.unwatch_pull_request first. A merge or close ends the watch
on its own.pr-waitRun scripts/pr-wait from this skill's directory, by absolute path:
pr-wait <pr> [--repo owner/name] [--until ready|green|any-change]
It prints one line per real event. It exits 0 when the --until condition is
met or the PR merges, 1 when it needs you (a required check failed, conflicts,
unresolved threads, PR closed), and 2 on bad input.
ready (default): required checks green, Greptile or Macroscope reviewed the
head, and no unresolved threads. Use this to babysit.green: required checks only. Use it when the repo has no Greptile or
Macroscope.any-change: exit on the first event.In Claude Code, run it with the Monitor tool (timeout_ms: 3600000), so each
line wakes you. Without a monitor, run it as one long foreground command. It
ends on its own.
Start it again after you push, after you handle an exit 1, and after a resume. It remembers what it already reported, so nothing that arrived in between is lost. If it reports that another pid already watches the PR, rely on that watcher, and kill it only if its events are not reaching you.
gh pr create, gh pr view, and gh pr checks use GraphQL. Check it with
gh api rate_limit --jq .resources.graphql. If remaining is near 0, wait for
reset with one background command before watching again.
The REST limit is separate and usually still has room. Use
gh api repos/<owner>/<repo>/pulls/<n> to read a PR, and
gh api repos/<owner>/<repo>/commits/<sha>/check-runs for checks.
Act only on checks and comments newer than the latest push. Review bots are useful but fallible: verify every finding against the source before changing code. Fix real findings and CI failures, and tell repository failures apart from infrastructure flakes.
leaving-gh-comments skill.Keep the PR at the size the user's goal needs. Review loops grow a PR one cheap-looking fix at a time. Fix real bugs in the intended case, and prefer the fix that deletes or narrows code. Decline the rest with a written reason and list them as follow-ups: unneeded tests, guards for edge cases that do not matter, extra integration or compatibility, and small performance costs.
The merge gate passes when all of these hold on the latest head, right
after a git fetch:
pr-wait reports base commits that touch this PR's files, and BEHIND or DIRTY
states. When the gate fails on the base branch (usually master or main),
rebase, push, and wait for green again. If an overlapping PR makes this one
obsolete, stop watching, report it to the user, and ask before closing the PR
unless closure was explicitly authorized.
Done when the merge gate passes (pr-wait --until ready exits 0, or the gate
checks out in T3 Code). Merge only if the user explicitly asked for it;
otherwise report that the PR is ready.
What SKILL.md sets; muted values are Claude Code's defaults
/lrstanley:babysit-prfrom lrstanley
npx claudepluginhub lrstanley/skills --plugin lrstanley25 skills in this plugin
/apply-worktreeLand the current git worktree's commits onto the main worktree's default branch, verify, and clean up. Use for /apply-worktree./documentation-writerCreates high-quality technical documentation using the Diataxis framework. Use when writing tutorials, how-to guides, reference material, or explanations for software projects./file-prFile a concise pull request that leads with the problem, not an inventory of changes. Use for /file-pr./frontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.