agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/babysit-abort/SKILL.md

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).

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
  1. Very specific:

    Stop the babysit loop for a PR.

    line 8

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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_id is the pre-merge CI/Greptile watcher (/babysit-pr).
  • post_merge_cron_job_id is the deploy watcher scheduled by /merge for the post_merge_watch phase.

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.json for forensics.
  • "Re-run /babysit-pr $PR to 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_log is the history). To start fresh: rm .claude/babysit-state-<PR>.json first, then /babysit-pr.
  • Two Cron jobs may be in flight at once. /babysit-pr creates the pre-merge watcher under cron_job_id; /merge creates the post-merge deploy watcher under post_merge_cron_job_id. Pre-merge is deleted on merge_ready, post-merge on deploy_success. If you abort in between (or during post_merge_watch), the un-deleted ID is the one that would keep firing , abort MUST delete every non-null cron id in state.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.