← LeaderboardThe Skill Leaderboard
babysit-pr
This skill should be used when the user asks to "babysit a PR", "watch this PR", "monitor PR checks", "keep CI green on PR", "shepherd a PR to merge", or explicitly invokes "babysit-pr".
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: babysit-prdescription: This skill should be used when the user asks to "babysit a PR", "watch this PR", "monitor PR checks", "keep CI green on PR", "shepherd a PR to merge", or explicitly invokes "babysit-pr".Babysit PR
Monitor an open pull request across CI runs, automated bot reviews, merge conflicts, and human feedback until checks pass and unresolved threads are settled.
If a PR number or URL is given, use it. Otherwise detect the PR for the current branch.
Workflow
-
Snapshot the current state first
- T3 Code: Call
pull_request_read(include: ["checks", "threads"]) to inspectheadSha, draft/open/merged state, check statuses, andunresolvedThreads. - CLI clients: Run
gh pr view <pr> --json number,url,state,isDraft,headRefOid,baseRefName,headRefName,mergeStateStatus,statusCheckRollup,reviewDecisionplus GraphQLreviewThreads(when threads exist). - Do not repeat work or post status noise when checks, reviews, and head commit have not changed since your previous update.
- T3 Code: Call
-
Choose the monitoring mechanism by client
- T3 Code (primary thread only): Finish local code updates and push first, then call
watch_pull_request(passuntil: "checks"when handing the PR to the user, oruntil: "merged"only when monitoring through merge) and end your turn cleanly. Never poll withsleeporgh pr checks --watch. Always callunwatch_pull_requestbefore handing back on completion or external blocker stops. Delegated subagents must never callwatch_pull_request, inspect status and checks directly instead. - CLI sessions (Claude Code, Codex, Antigravity, Cursor): Check CI runs, failed logs, mergeability, and active review threads in one pass (
gh pr checks <pr>,gh run view <run_id> --log-failed) and re-check after new pushes rather than infinite polling loops.
- T3 Code (primary thread only): Finish local code updates and push first, then call
-
Handle failures, conflicts, and review findings
- CI failure: Read the failed job log first (
ci_logstaking PRnumber?and check namecheck?in T3 Code, orgh run view <run_id> --log-failedin CLI). Fix real code or test failures cleanly, verify locally, commit via commit-staged, and push. Rerun only confirmed transient infrastructure flakes (ci_rerunwithcheck?orgh run rerun <run_id> --failed). - Review comments: Verify every finding against the actual source files (follow resolve-pr-comments). Fix valid issues across sibling sites and push, and dismiss verified false positives with a factual explanation naming the guarding code.
- Merge conflicts: Fetch
origin/<base>and rungit merge origin/<base>on the PR branch without overwriting concurrent work, re-run affected tests, and push. Userebaseonly when explicitly requested on an unshared branch and repository hooks allow history rewrites.
- CI failure: Read the failed job log first (
-
Stop criteria
- Stop once the PR is merged or closed, when all required checks pass on the latest commit (
headSha/headRefOid) with zero unresolved review threads, or when an external blocker needs human input (approval, product decision, missing permission). - Never merge a PR automatically unless the user explicitly asked for merge or auto-merge.
- Stop once the PR is merged or closed, when all required checks pass on the latest commit (