← ClaudeAtlas

babysitting-prlisted

Monitor an open GitHub pull request until it is merge-ready by checking CI, diagnosing and fixing branch-related failures, addressing actionable review feedback, resolving safe merge conflicts, pushing fixes, and re-checking the result. Use when the user asks to babysit, watch, monitor, or keep an open PR green and ready to merge.
Firzus/agent-skills · ★ 1 · Code & Development · score 72
Install: claude install-skill Firzus/agent-skills
# Babysit a pull request Keep an open pull request merge-ready. Continue monitoring after each push until the PR is merged or closed, all blockers are cleared, or user input is required. ## Guardrails - Confirm `gh auth status` succeeds and identify the target PR before changing anything. - Preserve unrelated work in the working tree. Do not discard user changes. - Never force-push, merge the PR, close it, or mark a draft ready unless the user explicitly authorized that action. - Do not weaken tests, lint rules, type checks, security checks, or branch protections merely to make CI pass. - Treat credentials, infrastructure changes, destructive migrations, dependency trust decisions, and ambiguous design feedback as user decisions. - Retry a likely flaky CI failure at most three times. Do not repeatedly rerun a deterministic failure without changing the branch. ## 1. Establish the PR context Accept a PR number or URL when supplied. Otherwise, resolve the PR associated with the current branch. ```bash gh pr view <pr> --json number,title,url,state,isDraft,headRefName,headRefOid,baseRefName,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup git status --short git branch --show-current ``` Stop successfully if the PR is merged or closed. If the local checkout is not the PR head branch, check it out before making fixes: ```bash gh pr checkout <pr> ``` Record the current head SHA after every push so that check results are not mistaken for results from an o