pr-babysit
Skill2 starsChanged 24 days agoMITView on GitHub
Fact-collector scripts of the pr-babysit workflow, its publishing push, and the reader of a finished launch. Use when a pr-babysit prompt names one, to reproduce by hand what the workflow saw, or to read a launch's result.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- kevinreber/claude-code-configstheir own version, first seen Nov 29, 2026
- sanjaibalajee/skillstheir own version, first seen Nov 29, 2026
- mastro993/fstacktheir own version, first seen Nov 16, 2026
- rakaarwaky/agents-arwakytheir own version, first seen Nov 1, 2026
- elastic/kibanatheir own version, first seen Nov 1, 2026
- turntuptechnologies-ai/skillstheir own version, first seen Aug 6, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- elastic/kibana★ 21ksame name
- VincentChuWaiChow/vanguard-frontier-agentic★ 23same name
- mastro993/fstack★ 2same name
- kevinreber/claude-code-configs★ 1same name
- sanjaibalajee/skills★ 1same name
- turntuptechnologies-ai/skills★ 1same name
- rakaarwaky/agents-arwaky★ 0same name
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 repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- arduinoSkill
- ci-rerunSkill
- code-sizeSkill
- coworkSkill
- debug-probeSkill
- download-docSkill
- followup-issueSkill
- headless-chiefSkill
- hil-farm-setupSkill
- hilSkill
- pr-replySkill
- pr-reviewSkill
- read-docSkill
- read-pcbSkill
- repo-auditSkill
- rttSkill
- simplify-gateSkill
- target-debugSkill
- usb-kernel-debugSkill
- usb-kernel-recoverSkill
- usb-snifferSkill
- worktree-removeSkill
The file
Files
pr-babysit's scripts
Each script prints one JSON line, the last on stdout, and the workflow decides
on it. Under AGENTRC_EMIT=<file>, as the workflow's relay runs it, the script
also writes that line to the new <file> as a data module the workflow loads
with workflow({scriptPath}), so no model copies it (lib/seal.py's emit);
the file is claimed before the script does anything, and a claim that fails
exits at once, nothing done, with the status lib/seal.py's claim gives.
facts.py emit-dir makes a launch's directory for those files under the git
common dir, with an emit-dir.js data module, written as an emitted line is,
naming it and the nonce the run prints; that path and nonce are the values a
model copies, which the workflow loads that module to check, and the files'
self-naming and seals give consistency, not freshness. An {"error": ...} line
with exit 2 means the facts could not be collected or contradict each other:
the workflow refuses to publish, and the caller never fills in what is
missing. Each script's docstring says what it reports.
A script that calls gh names the PR's repository with --repo OWNER/NAME, or
else the one the checkout's remotes name alone, and refuses a checkout whose
remotes name several with none marked gh-resolved (facts.py's bind_repo).
S="${AGENTRC_DIR:-$HOME/.claude}/skills/pr-babysit/scripts"
python3 "$S/preflight.py" --pr N [--repo R] [--needs P] [--module M] # the checkout, the PR it must stay and this interpreter; P a script the workflow calls, M a module it needs
python3 "$S/preflight.py" --recheck # before a commit: has the checkout moved?
python3 "$S/preflight.py" --state N [--repo R] # before a GitHub write: is the PR still OPEN?
python3 "$S/harvest.py" --pr N [--repo R] --reviewers coderabbit,greptile --auto-run coderabbit # bot states + review comments + people's comments awaiting an answer
python3 "$S/hooks.py" [--deadline-seconds N] 'src/a.c' 'docs/b.rst' # from the checkout's top level; killed past N s (540), cleanup 20 s more
python3 "$S/commits.py" commit [--skip-hooks <ids>] [--receipt <file> --request <r>] 'src/a.c' < msg # commit exactly these paths, the message on stdin; the line saved to a new <file>; <ids> added to pre-commit's SKIP
python3 "$S/commits.py" receipt <file> --request <r> --parent <sha> 'src/a.c' # what that commit printed, for this request, parent and paths only
python3 "$S/commits.py" head --parent <sha> 'src/a.c' # audit the commit at HEAD, made on <sha> from these paths
python3 "$S/commits.py" chain <from> <to> --published <pr-head> --base <base-head> --tip <base-tip> # audit from..to for adoption, full SHAs; preflight's prBase and prBaseTip
python3 "$S/push.py" --remote origin --branch <b> --sha <sha> --push-url <url> [--open-pr N] [--pr N] [--repo R]
python3 "$S/sonar.py" --pr N [--repo R] --head <sha> --manifest <file> [--receipt <path>] # mark answered code-scanning comments' SonarCloud issues false positive; a saved --receipt replays
python3 "$S/coderabbit_trigger.py" --pr N [--repo R] --head <sha> [--request] # tick CodeRabbit's Trigger review box when it skipped the head for a manual review; --request comments `@coderabbitai review` once its rate limit has reset, on such a skip no tick asked for, or when its review of the head failed, and `@coderabbitai full review` when it skipped the head with no files to review
python3 "$S/greptile_trigger.py" --pr N [--repo R] --head <sha> # comment `@greptileai` once per head, recorded under the git common dir
python3 "$S/ci_recover.py" --pr N [--repo R] --head <sha> --wait-minutes M # cancel and re-run, once per run attempt, an Actions run on the head queued with no job past M minutes; recorded under the git common dir
python3 "$S/build.py" --path 'src/a.c' --command 'make -C <BUILD>' [--base-sha SHA] [--setup L] [--require T] [--job DIR --wait-seconds S --timeout-seconds T] # build the checkout as it stands; --job detached, waited on S seconds a call
python3 "$S/scope_check.py" --path 'src/a.c' --path 'test/test_a.c' # which paths a fix writer may edit or create
python3 "$S/state_transfer.py" <saved output> # a stateRef's state whole with its digest; under AGENTRC_EMIT one past 384 KiB in parts beside that file
python3 "$S/facts.py" emit-dir # a new directory for one launch's AGENTRC_EMIT files, and its nonce; ones unwritten for 14 days go
python3 "$S/launch_result.py" --output <saved output> [--state-ref F:D] [--checkout DIR] [--keys] # the caller's reading of a launch; --keys: settled failures' keys too
python3 "$S/merge.py" --pr-url <url> --base <branch> --checkout DIR --output <saved output> --state-digest D [--waive BOT] [--merge] # chief's merge gate; inspects without --merge; --waive drops a bot from the required reviews, and a last launch's stop on that bot alone, on the owner's word, recorded as `waived`merge.py --merge is chief-only, under agents/chief.md's merge exception, and --waive only on the owner's word that
the merge goes without that bot; a bot left out of autoRun alone is never waived, and waiving both is refused. A red
CI goes with the merge only when the launch's acceptedFailures explain every failed check, as the very executions it
judged, and none is a required check; the receipt's accepted records them.
Launch the workflow from the root its scripts run from (Workflow
scriptPath: "${AGENTRC_DIR:-$HOME/.claude}/workflows/pr-babysit.js", expanded
in the shell first), not by its name: a named launch loads the user scope's
saved workflows/pr-babysit.js, which AGENTRC_DIR does not change, and a
session started before an agentrc update may hold an older copy of the script
while the skills' scripts are already new. A copy whose collector output it
cannot read stops collector-skew (collect.py's contract), one calling a
script the install lacks stale-workflow, and one whose facts.py lacks
emit-dir stops preflight-failed naming both checkouts and their HEADs.
launch_result.py is the caller's, not the workflow's: it condenses a finished
launch, lists the blockers to settle before continuing, and shows as pinned
the arguments the state is fixed to, which a continuation passes unchanged.
A head whose only CI left is Actions runs awaiting a maintainer's approval (collect.py's awaiting-approval) stops
ci-awaiting-approval at the CI lane's read, naming them in awaitingApproval; nothing here approves or re-runs them.
A comment by a trusted person (author_association OWNER, MEMBER or COLLABORATOR, not a Bot account, not the PR's author)
that still waits for an answer, harvest.py's humanWaiting, stops human-review-pending before any trigger, fix, reply
or push, an adoption's included, naming each in humanWaiting; it is the human's to settle, never a bot finding, and
merge.py refuses while one waits. Comments by the account the run acts as are its own, so they neither wait nor, unless
it is the PR's author, answer a top-level comment; even then a request to a bot, an empty review body (a thread reply)
or a pr-reply reply quoting another comment answers none, and an issue comment edited after its answer waits again. A
person's inline comment is settled only by the PR author's later reply, when the author is not the run's account, or by
a resolve by hand: a bot's reply or the run's own answers nothing, since GitHub cannot tell a reply that raced the
comment from one that answered it. On a PR the run's account authored, every such comment waits until its thread is
resolved. reply.py neither replies in nor resolves a thread where one waits.
A launch on a PR no longer open stops pr-merged or pr-closed, at preflight or at the CI lane's next read; nothing is left to continue. Every GitHub or SonarCloud write reads the state first (preflight.py --state, or push.py --open-pr for a push) and goes on only for an OPEN PR; an unreadable state stops pr-state-unread.
preflight.py, harvest.py, scope_check.py, state_transfer.py, launch_result.py and commits.py only read, except that
each writes its AGENTRC_EMIT file, preflight.py creates the launch's receipts directory and commits.py commit stages and commits exactly its paths, saving its receipt; hooks.py runs the repository's hooks, which may rewrite
files, and reruns failed ones alone in a temporary worktree of HEAD it then removes with its registration; its
docstring says which failures that excuses from the verdict and the commit's SKIP; build.py
builds the checkout in a fresh build directory; push.py publishes <sha> and reads back
where it landed, sonar.py comments on and resolves SonarCloud issues, and coderabbit_trigger.py edits
CodeRabbit's summary comment to tick its Trigger review box, or with --request posts one @coderabbitai review (or full review) comment, and greptile_trigger.py posts one @greptileai comment, and merge.py --merge merges the PR. Run any of them by hand only with the user's authorization to publish there.
Arguments
ARGUMENTS.md beside this file lists the workflow's arguments: read it
before launching the workflow or reading its argument errors.
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.

