/compound-engineering:ce-babysit-pr [PR number|URL|blank=current branch] [watch|checkpoint] [duration] [posture:target|stack-ready|stack-land]from compound-engineering
Babysits an open GitHub PR until merge-ready, first judging whether an old PR still belongs. Use when asked to watch a PR over time or update an old one — not for one-shot comment resolution or one CI failure. GitHub (incl. Enterprise) only.
Ships in compound-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Keep an open PR moving toward merge by reacting to three streams as each arrives: review comments (handed to ce-resolve-pr-feedback), CI failures (handed to ce-debug), and branch-currency items the snapshot flags.
Outcome: the PR is left at a truthfully reported terminal, looks-ready, blocked, or out-of-budget state under the run's posture. Done: Step 3 (stop conditions) reached a true stop and the Step 4 report is written. Settled ≠ merged.
Each tick acts on pr-snapshot output. Events and caller prose are not evidence. Read references/tick.md before the first snapshot; references/envelope.md defines authority and references/settle.md adds live review evidence at readiness.
target — only the named PR; stop at looks-ready; never merges; offer stack-wide once if a confirmed managed stack needs work.stack-ready — once a layer has zero actionable backlog (CI may still run), advance to the next open non-draft upstack layer needing work; lower layers stay probed and the lowest that re-opens pulls the walk back; never merges.stack-land — as stack-ready, and selecting it is land authorization: once the bottom-most open layer is settled, gh stack merge it + gh stack sync.One PR named → target (ask once if a confirmed multi-layer stack exists); asked to carry the whole stack → stack-ready; asked to land it → stack-land. mode:pipeline never asks. Restate posture per transition.
stack-land.branch_currency item the snapshot emitted, after an atomic claim, per references/branch-currency.md, which owns who updates a BEHIND branch (BEHIND = host update-branch with expected_head_sha, never a local merge). Never infer an item from prose, base movement, a sibling PR merging, CLEAN/MERGEABLE, BLOCKED while your own push's checks rerun, or anyone saying "update the branch"; a push that restarts green CI without a claimed item is a defect. The only history rewrite is the user-authorized update in references/intake.md.manager_status == "confirmed" on a fresh probe; manual chains and probe-error stay target-local). One writer at a time: one mutated target, one watcher.target/stack-ready, genuine needs-human residuals, blocked-external handback.GIT_DIR=$(jj git root) for repository-scoped gh calls. gh repo view must succeed, else say GitHub-only, stop.@. If @ is an empty working-copy change, also inspect @- and its bookmarks, remote branch, and associated PR before deciding there is none (references/setup.md). Continue when that PR is eligible.references/intake.md; it decides whether this PR still belongs. A user request to take the PR over: references/takeover.md.@ above that exact head is already aligned. Align a clean workspace without asking; stop on dirty/conflicted state, risk to unrelated work, or uncertainty (references/setup.md).references/setup.md, references/watch-loop.md): keep monitoring until a stop condition is met, one tick per wake from one wake source: the pr-snapshot watch detector, or the host's own mechanism when its instructions dictate PR waits. Never collapse the loop into a script. Checkpoint mode only when the user asks or nothing can wake this agent. Pipeline (mode:pipeline): bounded synchronous ticks, structured return (references/pipeline.md).Snapshot first, then in this order:
MERGED/CLOSED → stop (a stack-land merge this run landed is a transition).references/stack.md).ce-resolve-pr-feedback mode:pipeline once with the PR ref; persist typed decisions through the shared atomic mark and dispatch every other passed comment; pass trajectory when a trigger is crossed; never declare non-convergence yourself.references/tick.md: re-run, needs-human, or ce-debug mode:pipeline once); mark each check acted on; unfixed checks stay red residuals.references/branch-currency.md); no item → nothing. unrequested_base_merge is a defect to report, never undo.references/stack.md).True stops (references/settle.md): Terminal; Looks ready — mergeability_certain, MERGEABLE, CLEAN or update_branch_at_merge, no base_ref_blocker, checks terminal, zero backlog, open_needs_human == 0, branch_currency_blocker == null, settled, and the bounded review-wait rule permits stopping; blocked-external-drained; Budget (active budget or 3-day backstop). Apply the authorized factual description refresh before reporting ready; preserve unrelated content and issue links. Interactive standing residuals (needs-human, blocked-failing, stack-blocked) block readiness while independent work continues. mode:pipeline returns the canonical decision set when autonomous work ends. Otherwise re-arm the detector after each wake or leave the persistent host watch on, then wait.
One fixed status line first, then a recap the reader could merge from without scrolling back (references/report.md). Never "safe to merge".
references/branch-currency.md (opens in a new tab)references/envelope.md (opens in a new tab)references/intake.md (opens in a new tab)references/pipeline.md (opens in a new tab)references/report.md (opens in a new tab)references/settle.md (opens in a new tab)references/setup.md (opens in a new tab)references/stack-commands.md (opens in a new tab)references/stack.md (opens in a new tab)references/takeover.md (opens in a new tab)references/tick.md (opens in a new tab)references/watch-loop.md (opens in a new tab)scripts/intake-overlap (opens in a new tab)scripts/pr-snapshot (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ucirello/compound-engineering-plugin --plugin compound-engineering38 skills in this plugin
/ce-bakeoffDevelop independent competing solutions to a defined brief, compare them, and synthesize a winning approach. Use when choosing well requires developing alternatives beyond their current form. Use ce-pov to judge developed material and ce-ideate to discover opportunities./ce-brainstormExplore vague or ambitious ideas into a right-sized requirements-only unified plan. Use when the user wants to brainstorm or scope what to build. Not for executing already-specified work. Use ce-pov for a verdict on adopting a named external technology./ce-code-reviewReview a named diff or PR for bugs, regressions, tests, and standards. Use when asked to review code or when a shipping skill needs a review receipt. Use when asked to apply this review's findings locally. Use ce-resolve-pr-feedback for feedback already left on a PR./ce-commitCommit local Jujutsu changes with a clear, value-communicating message. Use when the user asks to commit or save working-copy changes with a repository-appropriate message./ce-commit-push-prCommit, push, and open a PR. Use when asked to ship/open a PR, or for PR-description-only flows like writing, rewriting, or describing a PR body./ce-compoundCapture a solved problem's lesson in its cheapest durable form, a test or lint rule, a coding standard, or a repo learning, or refresh existing learnings against the codebase. Use when verified work corrected a wrong belief about how something behaves, such as a failed approach, a real defect a review caught, or a wrong assumption or document, or when auditing stale, overlapping, or drifted learnings. Do not auto-invoke it for work that went as first planned.