Skip to main content

pr-babysit

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.

소스 정보

저장소
hathach/agentrc
최근 소스 활동
2026년 10월 14일 04:07
감지된 SKILL.md 언어
영어
스타
1
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
14 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
pr-babysit
description
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.
# pr-babysit's scripts Each script prints one JSON line, the last on stdout; the workflow's agent returns that line unchanged and the workflow decides. 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. ```bash S=~/.claude/skills/pr-babysit/scripts python3 $S/preflight.py --pr N [--needs P] # the checkout and the PR it must stay; P a script the workflow calls python3 $S/preflight.py --recheck # before a commit: has the checkout moved? python3 $S/preflight.py --state N # before a GitHub write: is the PR still OPEN? python3 $S/harvest.py --pr N --reviewers coderabbit,greptile --auto-run coderabbit # bot states + review comments python3 $S/hooks.py 'src/a.c' 'docs/b.rst' # from the checkout's top level python3 $S/commits.py commit 'src/a.c' < msg # commit exactly these paths, the message on stdin 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] python3 $S/sonar.py --pr N --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 --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 python3 $S/build.py --path 'src/a.c' --command 'make -C <BUILD>' [--setup L] [--require T] # build the checkout as it stands 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> [--chunks I,J] # a stateRef's state as checksummed base64 chunks python3 $S/launch_result.py --output <saved output> [--state-ref F:D] [--checkout DIR] # the caller's reading of a launch ``` `launch_result.py` is the caller's, not the workflow's: it condenses a finished launch and lists the `blockers` to settle before continuing. 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 `commits.py commit` stages and commits exactly its paths; `hooks.py` runs the repository's hooks, which may rewrite files; `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` comment. 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.
GitHub에서 보기