/compound-engineering:ce-commitfrom compound-engineering
Commit 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.
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.
None: SKILL.md is the whole skill.
Create well-crafted local commits from the current working-copy change. No push, no PR — use ce-commit-push-pr for the full ship flow.
Done when: each logical change is committed with an explicit file list and a message that states the outcome, the feature bookmark reaches the resulting commits, and jj status shows those changes are no longer pending in @. Stop when: there is nothing to commit.
Resolve the absolute JJ workspace root with jj workspace root. Run each subsequent command as its own shell tool call with that absolute root as its working directory, using the shell tool's working-directory parameter. jj -R does not change the working directory. Interpret non-zero exits before proceeding.
| Command | Purpose |
|---|---|
jj status | Working-copy state, conflicts, and snapshot warnings |
jj diff --summary | Inventory the pending paths in @; inspect jj diff for their content |
jj log --no-graph -r '@ | @-' | Identify the working-copy change and its parent or parents |
jj bookmark list --all-remotes | Resolve local and remote bookmark targets, default-branch evidence, and name collisions |
Treat this as a snapshot. Recheck the working-copy change, parent and bookmark targets, and exact selected paths immediately before each commit. Inspect snapshot warnings for files JJ could not add; do not report those files as committed or a warned-about path as clean.
Default bookmark name: use repository instructions or other verified evidence for the default branch of the intended remote. For a verified GitHub repository, if needed, run GIT_DIR=$(jj git root) gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' from the absolute workspace root. In PowerShell, resolve jj git root in that directory and set GIT_DIR to its successful result before running gh there. Compare bare bookmark names; treat main and master as default candidates. Do not reuse a bookmark as the feature bookmark if its role is uncertain.
Based on https://go.dev/wiki/CommitMessage and on past commit messages that you can see in jj log, compose commit messages adherent to the present standards.
Before composing, read the full Go commit-message guide and compare several recent commit subjects and bodies. Resolve the history head from the actual target and workspace lineage, typically the verified parent of @ before this run's commits; for a merge, inspect the relevant parent histories. Use the verified revision ID in jj log --no-graph -r '::<verified-history-head>' -n 10 -T 'description ++ "\n"' from the workspace's absolute root. Do not hardcode a remote branch, treat the pending diff as history, or infer a convention from a single example.
Look for prefixes or package names, casing, verb tense, subject/body separation, wrapping, and issue-reference placement. Repository-local syntax established by project instructions and history always wins where it differs from Go guidance; honor explicit user instructions and apply compatible Go guidance for clarity and structure. If there is no history, use explicit project or user instructions and compatible Go guidance without inventing precedent.
Verbatim Go source guidance (illustrative, subordinate to repository-local syntax):
Commit messages, also known as CL (changelist) descriptions, should be formatted per https://go.dev/doc/contribute#commit_messages. For example,
net/http: handle foo when bar
[longer description here in the body]
Fixes #12345
Notably, for the subject (the first line of description):
- the name of the package affected by the change goes before the colon
- the part after the colon uses the verb tense + phrase that completes the blank in, “this change modifies Go to ___”
- the verb after the colon is lowercase
- there is no trailing period
- it should be kept as short as possible (many git viewing tools prefer under ~72 characters, though Go isn’t super strict about this).
For the body (the rest of the description):
- the text should be wrapped to ~72 characters (to appease git viewing tools, mainly), unless you really need longer lines (e.g. for ASCII art, tables, or long links).
- the Fixes line goes after the body with a blank newline separating the two. (It is acceptable but not required to use a trailing period, such as Fixes #12345.).
- there is no Markdown in the commit message.
- similarly, we do not use Co-authored-by and Assisted-by lines. Don’t add them.
Gather — run the Context commands, then continue.
Nothing to commit — if jj status reports no pending changes, report that and stop. An empty @ above an existing commit does not make that parent pending work. Stop and report unresolved conflicts or uncertainty about which changes belong in the commit.
Feature bookmark first — reuse a verified, unambiguous local feature bookmark for this work at @ or its sole parent. Otherwise derive a feature name from the changes, adding a suffix if the name collides with an existing local or remote bookmark. Once there is a nonempty selected group, use jj bookmark create <name> -r <verified-revision-id> and verify the target before committing. Use the sole parent if it is a real commit; with only the synthetic root or with multiple parents, use the verified @ for the new bookmark. If committing @ would retarget a default or unrelated bookmark or rewrite shared history, stop and report the blocker. Routine feature bookmark creation needs no extra approval.
Convention — apply the Message standard above before composing.
Logical commits — if changed files clearly split into distinct concerns, make separate commits (whole files only, 2–3 max). Keep both sides of a rename together; leave the rename pending if either path is excluded. If ambiguous, make one commit.
Message — state the outcome rather than listing files. Explain motivation or trade-offs when they are not obvious from the subject. When a plan Implementation Unit ID is already in hand and the commit clearly belongs to that single unit, include the ID using the repository's conventions; do not hunt for a plan. When the commit carries someone else's work that will not otherwise land under their name, preserve human credit for the source authors and credited collaborators in the form the repository permits. Copy recorded identities exactly and never guess an email.
Commit named files — honor exclude:<paths> from the caller and report those paths as left out. Review the exact intersection of the pending files and the intended group before committing. Pass one literal root-file: fileset per selected path, escaping fileset syntax for unusual names as described in JJ's fileset documentation. Never substitute a directory, a broad pattern, or a pathless commit. If no paths remain after exclusions, stop without committing. Pass the entire multiline description as one literal -m argument:
jj commit -m "<message composed from the standards above>" -- "root-file:path/to/file1" "root-file:path/to/file2"
JJ leaves unselected changes in the new @. Verify the commit from its pre-commit change ID and its new position at @-; check its actual paths and the remaining working-copy paths. A bookmark already on the committed change follows it. Otherwise, once you have confirmed the feature bookmark is still at its expected ancestor, use jj bookmark set <name> -r <verified-new-commit-id> to fast-forward it after each group. If verification or bookmark advancement fails, stop and report the committed change and the remaining work; do not retry blindly or force a bookmark move.
jj status, jj diff --summary, and the bookmark listing to verify the commit group(s) and remaining work. Report commit IDs, subjects, and any excluded paths.What SKILL.md sets; muted values are Claude Code's defaults
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.