/compound-engineering:ce-commit-push-pr [PR ref] [mode:pipeline] [archive:on|off] [babysit:off|continuous|checkpoint]from compound-engineering
Commit, 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.
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.
Asking the user: use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in the current tool list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, use the host's tool-discovery primitive to load that capability — do not search for another host's tool name. Fall back to asking in chat only when no such tool is in the list or a real question call errors, and never silently skip the question.
[] is "no open PR" (report it and stop), and a non-zero exit is unknown (resolve auth or connectivity, then stop until presence is known). With an open PR, run Step 4 in PR mode on that URL, then Step 5. An explicit request to apply the update supplies approval; if apply intent is unclear, preview and confirm before writing.mode:pipeline modifier, set by orchestrated callers such as lfg. Run the resolved mode non-interactively and suppress every blocking ask. Each suppressed ask takes the conservative default: skip optional existing-PR rewrites, keep the branch, and stop at an unresolvable base rather than guessing. A description-update invocation supplies apply intent in this mode; description-only remains draft-only. Pipeline stack mode uses only the intent and scope on the invocation and passes posture into the handoff.
Opt-in only. Enter it when intent or standing preference wants a multi-PR stack. An explicit stack request is required intent — do not re-read it as a single PR with a custom --base. Do not proactively suggest PR stacks. When the user did not ask for one, refuse nonsense stacks (one logical change, artificial slices) and stay single-PR.
In stack mode, load references/stack-submit.md before Step 3 and follow only its probing, topology, and retrospective construction; that layer-by-layer commit flow replaces ordinary Step 3. Do not submit there. Step 5 handles submission, GitHub stack availability and residuals, and the handoff posture: posture:stack-ready by default, posture:stack-land only on explicit land intent, from the bottom open non-draft PR. Do not add posture: to this skill's argument-hint.
Read references/context.md before Step 1. It defines the command table, the exit-code meanings, the fork and bookmark traps, and the branch and PR resolution Steps 1–2 use. Never ask whether to make a feature bookmark: an unbookmarked feature or the default bookmark with work creates one, and the default bookmark with no work reports and stops.
Three rules govern the run.
Every jj and gh probe is a separate call, gathering and re-verification alike, and its exit status is control flow. Set the working directory to the target workspace's absolute root for every command. For repository-scoped gh, obtain GIT_DIR from a successful jj git root in that workspace, as in GIT_DIR=$(jj git root), and supply it to each call. This applies to all references, including description-only mode.
Probe output is a snapshot. Re-verify branch, remote, and PR state right before each consequential action: Step 3's push, Step 5's create.
Only an exit-0 [] from a query against the base repo means "no open PR." A non-zero exit is unknown, never "none". On a fork checkout, target the base with -R and pass the branch name only, since --head <owner>:<branch> silently returns []. With results, do not blindly take index 0: match head owner and branch, and stop on an ambiguous match. Note the URL and body from that entry — Step 5 uses the URL to pick the existing-PR path, Step 4 rewrites the existing body.
Read references/commit-and-push.md for commit/push mechanics and default-branch handling via references/branch-creation.md. If stack mode committed its layers, skip to Step 4; Step 5 submits them.
Project publishing gate. Before publishing commits, resolve every applicable pre-push or review-ready requirement from the project's active instructions and conventions already in context and any additional scoped instructions governing the committed paths. Only evidence valid for the exact commit state being sent satisfies them; otherwise stop before the external write and report what is missing or failing. If none, proceed. Reuse prior successful checks when their inputs and relevant environment are unchanged; a new commit ID alone does not invalidate them. Preserve each check’s actual exit status when capturing output, and finish evaluating the gate before issuing the publish call.
Name the owned files in each jj commit so unrelated working-copy changes stay out of the pushed bookmark. Honor exclude:<paths>: leave and report them.
You MUST read references/pr-description-writing.md in full — it defines the title and body content rules, including the rule to preserve an existing Related: / Fixes on rewrite. Then read references/compose.md for the evidence decision, which decides screenshots when the diff changes rendered UI, and the teaching decision, where pr_teaching_section defaults on, pr_teaching_archive defaults off, and only an active (non-commented) key changes either.
Read both references on every run, even when this session already read them. Skipping compose.md skips the evidence decision.
If Step 1 found an existing PR, pass its URL to Step 4 so PR mode fetches the existing body.
Read references/apply-and-handoff.md for apply, preview, archival, and handoff. Before gh pr create, re-check PR presence: a matching PR takes the existing-PR path, exit-0 [] creates, non-zero blocks. Pass the body via --body-file <path>, never stdin — gh exits 0 with an empty body.
Completion is decided here. An interactive full workflow or pipeline stack submit is not done until ce-babysit-pr owns follow-on for the published PR. Reporting the PR URL alone is not success. Load the callee to choose the monitoring mode. If running it in this session, continue until its stop condition permits a final report, ending the turn only while its armed wake source will bring this agent back.
Skip on babysit:off, a standing auto_babysit: false that the user has not explicitly overridden for this run, or a "Do not fire" case in references/apply-and-handoff.md. Caller-generated tokens cannot override a standing opt-out or authorize a draft watch by themselves. An optional description rewrite is never a prerequisite. Routine clean-head alignment and starting or re-arming authorized monitoring need no further approval. Asking for the PR link, a report back, or no merge is not a skip. No other watch substitutes for this handoff: not ci-watcher, not gh pr checks --watch, not a host's PR-watch tool on its own, not a hand-rolled poll, not "later". ce-babysit-pr decides how it gets woken. If ce-babysit-pr cannot be loaded or started, stop and report it blocked.
references/apply-and-handoff.md (opens in a new tab)references/branch-creation.md (opens in a new tab)references/commit-and-push.md (opens in a new tab)references/compose.md (opens in a new tab)references/context.md (opens in a new tab)references/gh-stack-cli.md (opens in a new tab)references/pr-description-writing.md (opens in a new tab)references/stack-submit.md (opens in a new tab)references/visual-evidence.md (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-babysit-prBabysits 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./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-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.