babysit-pr
Skill2 starsChanged 35 days agoApache-2.0View on GitHub
Cron-driven autonomous loop that babysits a PR through CI + Greptile + reviewer feedback until merge-ready, then notifies. USE WHEN user says 'babysit this PR' / 'watch the PR until ready' / 'autonomous wrap', or chained from /wrap-up after /ship. Schedules 240s Cron ticks, invokes /review-fix on CI failures and /greptile on bot comments. NEVER merges. Stops on merge-ready + PushNotification. NOT FOR small diffs you can manually monitor (just /ship) or already-merged PRs.
79 other projects use a version of this.
Adopted by
Most recently taken up by
- camunda/connectorstheir own version, first seen Nov 30, 2026
- bcmyguest/personal-skillstheir own version, first seen Nov 29, 2026
- dancorreia-swe/skillstheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 2026
- tomastaker/delegate-kittheir own version, first seen Nov 29, 2026
Used with
Projects with it also use leaving-pr-comments, full-stop and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cogine-aiSkillleaving-pr-comments
Use whenever leaving comments on GitHub.
Also in 15 projects that use this
PostHogSkillfull-stop
Also in 15 projects that use this
cogine-aiSkillmodernize
For getting old prs up to date. Use when asked to rebase a pr or "modernize".
Also in 13 projects that use this
Solly922Skillhtml-communication
Create self-contained HTML artifacts for plans, architecture maps, comparisons, reports, timelines, diagrams, and technical explainers when visual structure improves understanding. Use for complex or spatial information; do not use for short, linear answers that are clearer in Markdown.
Also in 3 projects that use this
MicrosoftSkillreview-loop
Iterative review loop using any lens agent against any target (plan, code, design). Use when you want to run a focused review cycle: spawn a fresh reviewer subagent with a specific lens, present findings and remediation to the user, apply fixes with user guidance, and repeat until clean.
Also in 9 projects that use this
rebase-energySkillhillclimb
Drive hillclimb searches — start, monitor, stop, prune, and resume auto-hillclimbing runs that spawn headless coding agents as operators.
Also in 3 projects that use this
- +1 more from cogine-ai
Other versions79 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 79
- BuilderIO/agent-native★ 7.8ksame name
- camunda/camunda★ 4.4ksame name
- t3dotgg/tstack★ 3.8ksame name
- rome-os/rome★ 989same name
- trailofbits/coop★ 835same name
- Mr-Quin/danmaku-anywhere★ 552same name
- tariknz/irdashies★ 279same name
- amElnagdy/review-skills★ 175same name
- owid/etl★ 167same name
- jellydn/my-ai-tools★ 130same name
69 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 12-principles-of-animationSkill
- aip-namingSkill
- architectSkill
- babysit-abortSkill
- babysit-tickSkill
- baseline-uiSkill
- commit-pushSkill
- complex-refactorSkill
- critiqueSkill
- deadSkill
- devstackSkill
- go-backendSkill
- goSkill
- go-strictSkill
- greptileSkill
- impl-checkSkill
- inspect-dbSkill
- inspect-deploySkill
- inspect-runtimeSkill
- interaction-designSkill
- issue-planSkill
- lessonsSkill
- mergeSkill
- new-resourceSkill
- plan-featureSkill
- preflightSkill
- pr-reviewSkill
- review-fixSkill
- reviewSkill
- shipSkill
- simplifySkill
- task-execution-protocolSkill
- teamSkill
- tui-component-browserSkill
- tui-design-labSkill
- tui-designSkill
- verifySkill
- wrap-upSkill
- write-docsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 77 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If empty, exit with an instructive error: "No PR detected on current branch.
- Very specific: line 42
Use the CronCreate deferred tool with these parameters:
- Very specific: line 49
After CronCreate returns, capture the cron job ID into state:
“Common” is measured: kept by at least 6 in 10 of the 77 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Schedule an autonomous Cron loop that watches a PR through every phase from ci_pending to merge_ready. The loop NEVER merges. It only watches, fixes CI failures, triages Greptile, and notifies on key transitions.
This skill is invokable by the LLM (it's chained from /wrap-up via the Skill tool, and matches direct user phrasing like "babysit this PR"). The collision check in step 2 prevents accidental double-starts. Destructive ops still gated: this skill never calls gh pr merge.
Steps
1. Resolve PR number
PR="${ARGUMENTS:-$(gh pr view --json number -q .number 2>/dev/null)}"If empty, exit with an instructive error: "No PR detected on current branch. Open one with /ship first."
2. Check for collision
STATE=".claude/babysit-state-${PR}.json"
if [ -f "$STATE" ]; then
echo "Babysit loop already active for PR #$PR. Run /babysit-abort to stop it first."
exit 1
fi3. Initialize state
source .claude/scripts/babysit-state.sh "$PR"
state_init
log_audit "init" "started babysit for PR #$PR"4. Schedule the Cron loop
Use the CronCreate deferred tool with these parameters:
expression:*/4 * * * *(every 4 minutes , stays inside the 5-min prompt cache TTL)durable:true(intent: persist to.claude/scheduled_tasks.jsonso the loop survives session restarts; currently silently ignored by the harness , CronCreate returns "Session-only" regardless. Pass it anyway so the loop becomes truly durable the day that bug is fixed.)prompt:/babysit-tick $PR(literal slash command , bypassesdisable-model-invocationvia slash-command path; the per-tick worker reads state and branches on phase)description:babysit PR #$PR
After CronCreate returns, capture the cron job ID into state:
set_field cron_job_id "<id-returned-by-CronCreate>"5. Notify (pr_opened)
if [ "$(.claude/scripts/babysit-notify.sh $PR pr_opened)" = "send" ]; then
# Invoke PushNotification deferred tool with:
# status: "proactive"
# message: "PR #$PR opened , watching CI + Greptile (240s ticks)"
fi6. Hand off
Print to user:
- "Babysit loop scheduled for PR #$PR. Tick every 240s, no auto-merge."
- "State:
.claude/babysit-state-$PR.json" - "Stop with
/babysit-abort." - "Type
merge itonce you're notifiedmerge_ready." - "Session-bound: the cron lives inside this Claude session. Closing the terminal kills it. Re-run
/babysit-pr $PRnext session , the state file picks up from the current phase."
Exit. The Cron continues firing /babysit-tick prompts into THIS session every 4 min.
Gotchas
- Session-bound, not truly autonomous. The harness's
CronCreateinjects the/babysit-tickprompt back into the active Claude session every 4 min , it does NOT spawn aclaude -psubprocess. So the loop only advances while THIS terminal is alive and Claude is the foreground process.durable: trueis silently ignored (no entry in.claude/scheduled_tasks.json); the cron lives entirely in session memory. - State file is the cross-session bridge.
.claude/babysit-state-<PR>.jsonpersists on disk. Closing the terminal stops the loop, but re-running/babysit-pr <PR>next session detects the existing state file (collision check) ,/babysit-abort <PR>first, then/babysit-pr <PR>again to rearm, and the worker picks up from the persisted phase. - For true cross-session autonomy, fall back to launchd (macOS) or a GitHub Actions workflow that reacts to PR state changes server-side. Don't pretend this skill provides that.
- The 240s interval is calibrated to the 5-min prompt cache TTL. Don't bump higher than 270s , cache misses cascade.
- This skill writes state but does NOT do any work itself. The actual loop is in
/babysit-tick.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

