babysit
Use when the user asks to babysit a PR, run /babysit, keep a PR green, monitor review/CI until ready, or optionally close out a PR through configured merge/capture/retro automation. Can run directly; host goal/persistence support is optional.
- License 许可
- MIT
- 所属仓库
- sandsower/nopal
- 最近更新
- 2026-10-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- babysit
- description
- Use when the user asks to babysit a PR, run /babysit, keep a PR green, monitor review/CI until ready, or optionally close out a PR through configured merge/capture/retro automation. Can run directly; host goal/persistence support is optional.
02 资源文件 2
- 参考文档action-policy-protocol.md4.2 KB
- 参考文档nopal-seam-protocol.md7.7 KB
03 SKILL.md 正文
Babysit
Babysit the current pull request until configured live evidence says it is green, then perform the configured closeout path when policy allows it.
This is an outer-loop workflow. It does not replace review-response; it repeatedly uses review-response for feedback handling, configured gates for proof before push, and optional host persistence for wait/recheck cycles.
Persistence model
babysit can run directly in any host. Goal/persistence support is optional, not a hard requirement.
- In Claude Code, users may manually wrap babysit in
/goalfor cross-wait persistence. - In Pi, bundled
/babysitstarts a Beislið-owned babysit runtime with loop state and completion tools. It does not depend onpi-goalor invoke slash commands from another extension. - Without persistence, perform the current audit/feedback/gate step. If the PR is not terminal green or blocked by turn end, stop with evidence and the next recheck/action.
Inputs
Use, in order:
- invocation args such as
stop when green,merge,don't merge,skip memento, orskip retro .beislid/workflow.md- current branch PR metadata from configured PR host tooling when available
- configured
pr_review_sourceandpr_review_update - configured gates, scopes, or gate sets
- configured
babysitcloseout policy - optional
review_policyAgenticReviewer risk/opt-in policy
Configuration
Optional workflow block:
goal:
token_budget: 50k
loop:
use_review_response: true
run_configured_gates_before_push: true
wait_interval_seconds: 60
timeout_minutes: 60
closeout:
merge:
mode: ask # off | ask | auto
method: squash # squash | merge | rebase | repo-default
delete_branch: true
memento:
mode: ask # off | ask | auto
retro:
mode: ask # off | ask | auto
apply_findings: ask # off | ask | auto
Defaults when absent: no goal budget, use review-response, run configured gates before pushes, merge/memento/retro off. Invocation args override config for this run.
Workflow
- Load project config — read
.beislid/workflow.md; hard-fail if missing or wrong version, matching other repo-aware orchestrators. - Detect persistence mode — note direct, manually host-goal-wrapped, or Pi Beislið runtime. Do not stop solely because persistence is absent.
- Find the PR — use configured PR host data or
gh pr viewwhen available. If no current PR is found, stop and ask for the PR URL/number. - Read live state — collect checks, mergeability/conflict state, review decision, PR-level comments, and inline review threads.
- Detect feedback and review-policy state — use
pr_review_source; never trust a green review-bot status alone. Treat AgenticReviewer provider comments containingReview skipped,Review limit reached,rate limited, ordraft detectedasnot reviewed/deferred review, even if the check is green. Ifreview_policy.agentic_reviewer.mode: opt_in_final_reviewis configured, classify current PR risk with ready-for-review's path/size rules and require a real AgenticReviewer review whenrisk > max_auto_closeout_risk. If required review is missing and the configured opt-in label is absent, add it when action policy allows;labelis required for automatic opt-in, so if it is missing or label add fails, stop/ask before usingdescription_keyword. Unresolved review comments or requested changes route toreview-responsewhen enabled. - Feedback handling — if
loop.use_review_responseis true, invokereview-response; it owns categorization, fixes, replies, commits, pushes, and child-ticket handling. If false, do not fix/reply/commit/push automatically; stop with the feedback summary and ask how to proceed. - Gate before push — before any babysit-owned push or merge preparation, run the configured applicable gates. Use existing scope/gate-set selection rules where available. Do not invent hardcoded gates.
- Wait and recheck — after pushes or pending checks, wait using bounded polling or host monitor facilities. Do not busy-loop. Re-read live PR state after each transition.
- Green audit — green means required checks successful, mergeable/no conflicts, acceptable review state, no unaddressed actionable feedback, and any risk-required AgenticReviewer review is real. Green status plus deferred-review evidence is not acceptable.
- Closeout — perform configured merge, memento capture, and retro only when green audit passes and action policy allows. Policy-check closeout side effects:
gh.pr.mergeorpr.mergeasgit-remote,memento.captureasworkspace-write,retro.runasreadplusworkspace-writewhen it may write artifacts, andretro.apply/setup edits asworkspace-write. Stop for approval when mode isask; proceed only when mode isautoand policy allows. - Complete persistence loop when present — call completion only after final audit and configured closeout, or the stop-when-green endpoint. In Pi runtime, call
update_beislid_babysit({status:"complete", summary:"..."}); if blocked, callupdate_beislid_babysit({status:"blocked", summary:"..."}).
Safety stops
Stop and ask when any occur:
- no PR can be identified
- red or pending required checks at a merge boundary
- conflicts or unsafe merge resolution
- review feedback requiring architectural, product, scope, or policy judgment
- user-approved pushback is needed
- required credentials or external services are unavailable
- action policy returns
askand no approval has been given - action policy returns
deny - every closeout step is disabled, in which case stop green and report
- retro findings would require editing workflow/config and
apply_findingsis notauto
Never force-push or amend published commits. Never merge to bypass a failing/pending required check. Never interpolate review reply bodies into shell commands; use temp JSON payload files.
Closeout semantics
merge.mode: off— stop once green and report.merge.mode: ask— show final audit and merge command/method; wait for approval.merge.mode: auto— merge after green audit only if action policy allows. If policy asks, ask; if policy denies, stop.memento.modecontrols durable knowledge capture after merge/green endpoint.retro.modecontrols running retro after closeout.retro.apply_findingscontrols whether accepted retro/setup findings may be applied automatically.autostill respects action policy; ambiguous/destructive edits stop.
Output
When stopping, report: PR URL/branch, final state, checks/review/mergeability evidence including deferred-review comments, feedback handled, gates run, closeout side effects, and remaining blockers or human decisions.
Common mistakes
- Treating CI green as enough when review threads are unresolved.
- Treating green AgenticReviewer status as reviewed when comments say skipped, rate-limited, or draft-detected.
- Hardcoding provider labels, gates, or risk thresholds instead of reading workflow config.
- Assuming
/goalis required; direct runs are allowed but must stop with next steps when no persistence mechanism is active and the PR is not terminal. - Posting replies or merging without policy and approval handling.
- Mentioning private provenance in public tracker/PR updates; keep public updates focused on the current repo and PR only.
04 同仓库更多 Skills
walk-the-diff
Use when the user wants to walk through their local changes interactively before or instead of a PR review — e.g., "guided review", "walk me through the changes", "review my branch", "let's go through the diff". Also use when the user explicitly invokes the walk-the-diff skill through the host agent. This is for interactive human-facing walkthroughs of code changes, not automated code review.
verify
Use before claiming work is complete, fixed, or passing. Requires running verification commands and reading output before making any success claims. Evidence before assertions.
spec
Trigger immediately when the user says any of: 'spec it out', 'spec this out', 'before you build', 'before we build', 'before implementation', 'let's discuss before building', 'discuss and spec', 'PRD this', 'shape this', 'product spec', 'lightweight spec'. Also use for brainstorming, vague tickets, product shaping, or writing a lightweight product spec/PRD when the problem, scope, desired behavior, or success criteria are unclear. Do not skip this skill and answer conversationally yourself — if a trigger phrase appears, route here even if the request seems clear or auto mode is active. Do not use for implementation design when requirements are already clear; use blueprint instead.
show-me
Use when the user asks for a visual HTML evidence/explanation artifact: 'show-me', 'show me this', 'make a proof deck', 'make an HTML deck', 'visualize this as HTML', 'this would be better as slides', 'make this visual', 'create a walkthrough deck', 'document this visually', or 'review this visually'. Manual/user-requested only in v1. Produces a polished local HTML portfolio/deck with evidence, media, logs, provenance, and clear missing-evidence markers.
setup
Configure Beislið project config (`.beislid/workflow.md`) interactively, or update an installed Beislið distribution. Use when the user says "setup", "/setup", "setup update", "/setup update", "update beislid", "configure beislid", "set up workflow", "add scopes", "change ticket source", "reconfigure beislid", or any intent to add, change, or remove a workflow.md section. Walks through sections conversationally; shows a diff before any destructive write.
rinse
Use when the user asks to 'rinse', 'run a review/fix loop', 'iterate on review findings', 'review and fix until clean', or harden a branch before PR handoff. Orchestrates side-effect-free review, user-approved fixes, verification, reruns, and redesign stop conditions.