Loading...
Loading...
Use when a coding agent works in a repository where Jujutsu (jj) is available (a `.jj/` directory) — running jj commands, making speculative edits, splitting changes, recovering with the operation log (jj undo / jj op restore), handing off a PR to Git/GitHub/GitLab, updating a PR after review, or coordinating parallel agents. Uses jj as the local change-management layer while keeping Git as the canonical remote, PR, CI, and audit interface. Also use to avoid jj's agent footguns (pager/editor hangs, commit absorption, colocated git/jj desync) or to replace fragile git reset/checkout/stash/rebase recovery with reversible jj operations.
npx skill4agent add netresearch/jujutsu-workflow-skill jujutsu-workflowjjgit.jj/jj${CLAUDE_SKILL_DIR}/scripts/detect_jj_state.sh.jj/jjgit.jj/.git/jj.git/jjjj rootgit rev-parse --show-topleveljj--no-pagerui.paginate--userjj-mjj describe|commit|squashjj splitjj squash -ijj resolvejj diffeditjjjj --no-pager status
# edit files (snapshotted on the next jj command)
jj --no-pager diff
jj describe -m "<project-conventional message>"
jj new -m "<next unit>" # one change per logical unitjj split <path> -m "<msg>"jj --no-pager op logjj undojj op restore <id>jj statusjj git fetch
jj rebase -d <default-branch>
jj bookmark create <branch> -r @- # every pushed commit needs a description
jj git push --bookmark <branch> # new bookmarks push directlyghglabjj workspace${CLAUDE_SKILL_DIR}/scripts/verify_handoff.shjj --no-pager statusjj --no-pager log --limit 10jj --no-pager diff --statgit status --short --branch