← 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".

Published by fcakyon ↗fcakyon/claude-codex-settings

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

  1. Snapshot the current state first

    • T3 Code: Call pull_request_read (include: ["checks", "threads"]) to inspect headSha, draft/open/merged state, check statuses, and unresolvedThreads.
    • CLI clients: Run gh pr view <pr> --json number,url,state,isDraft,headRefOid,baseRefName,headRefName,mergeStateStatus,statusCheckRollup,reviewDecision plus GraphQL reviewThreads (when threads exist).
    • Do not repeat work or post status noise when checks, reviews, and head commit have not changed since your previous update.
  2. Choose the monitoring mechanism by client

    • T3 Code (primary thread only): Finish local code updates and push first, then call watch_pull_request (pass until: "checks" when handing the PR to the user, or until: "merged" only when monitoring through merge) and end your turn cleanly. Never poll with sleep or gh pr checks --watch. Always call unwatch_pull_request before handing back on completion or external blocker stops. Delegated subagents must never call watch_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.
  3. Handle failures, conflicts, and review findings

    • CI failure: Read the failed job log first (ci_logs taking PR number? and check name check? in T3 Code, or gh run view <run_id> --log-failed in CLI). Fix real code or test failures cleanly, verify locally, commit via commit-staged, and push. Rerun only confirmed transient infrastructure flakes (ci_rerun with check? or gh 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 run git merge origin/<base> on the PR branch without overwriting concurrent work, re-run affected tests, and push. Use rebase only when explicitly requested on an unshared branch and repository hooks allow history rewrites.
  4. 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.