babysit-abort
Skill2 starsChanged 35 days agoApache-2.0View on GitHub
Stop an active babysit Cron loop for a PR. USE WHEN user says 'stop the babysit', 'cancel the loop', 'abort PR #N watch', or wants to halt an in-flight /babysit-pr without merging. Deletes the Cron job, sets phase=aborted, notifies. NOT FOR pausing temporarily (no resume , would need /babysit-pr again).
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 12-principles-of-animationSkill
- aip-namingSkill
- architectSkill
- babysit-prSkill
- 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
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Stop the babysit loop for a PR.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stop the babysit loop for a PR. Cron is deleted; state is marked aborted; loop will not resume.
Steps
1. Resolve PR
PR="${ARGUMENTS:-$(gh pr view --json number -q .number 2>/dev/null)}"
STATE=".claude/babysit-state-${PR}.json"
[ -f "$STATE" ] || { echo "No babysit loop active for PR #$PR."; exit 0; }2. Delete Cron(s)
source .claude/scripts/babysit-state.sh "$PR"
PRE_MERGE_CRON=$(get_field cron_job_id)
POST_MERGE_CRON=$(get_field post_merge_cron_job_id)Invoke the CronDelete deferred tool for every cron ID that is set
and non-null. Depending on which phase the loop is in, either or both
may be active:
cron_job_idis the pre-merge CI/Greptile watcher (/babysit-pr).post_merge_cron_job_idis the deploy watcher scheduled by/mergefor thepost_merge_watchphase.
Aborting during post_merge_watch would leak the deploy watcher if
only cron_job_id were deleted, so both must be cleared whenever the
state file has them set.
3. Mark aborted
set_phase aborted
log_audit "abort" "by user request"4. Report
Print:
- "Babysit loop aborted for PR #$PR."
- State file preserved at
.claude/babysit-state-$PR.jsonfor forensics. - "Re-run
/babysit-pr $PRto resume from scratch (creates a new state file , old one is overwritten)."
Gotchas
- The state file is NOT deleted. It's kept for audit (
audit_logis the history). To start fresh:rm .claude/babysit-state-<PR>.jsonfirst, then/babysit-pr. - Two Cron jobs may be in flight at once.
/babysit-prcreates the pre-merge watcher undercron_job_id;/mergecreates the post-merge deploy watcher underpost_merge_cron_job_id. Pre-merge is deleted onmerge_ready, post-merge ondeploy_success. If you abort in between (or duringpost_merge_watch), the un-deleted ID is the one that would keep firing , abort MUST delete every non-null cron id in state.
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.

