babysit-pr
Installation
SKILL.md
Hold one PR until it is merge-ready: poll, classify, fix, push, poll again. Terminal states are merged, closed, needs-user. Nothing else ends the loop, not a push, not a green run, not a report.
Loop
Each pass:
- Snapshot.
bash scripts/pr-state.sh <pr> [--since <lastPushAt>]. Carry the previous pass'slastPushAtinto--since, so only review items newer than your last push surface. - Terminal first.
stateisMERGEDorCLOSED: report it and stop. - Review items before CI. A fix commit retriggers CI, so answering review first avoids spending a rerun on a SHA you are about to replace.
- CI. For each check with a failing
conclusion, runbash scripts/classify-failure.sh <check-url>before touching code. - Push. Commit on the PR head branch, push, then return to step 1 on the new SHA.
- Wait.
bash scripts/watch.sh <pr>blocks until the checks settle, then prints a fresh snapshot. Use it instead of sleeping. Cap it withBABYSIT_MAX_MINUTES, default 60.