babysitting-prlisted
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