/jj-workflow:work-in-slicefrom jj-workflow
Guides work in an owned Jujutsu workspace slice: create granular revisions, keep bookmark at tip, fold fixes, rebase safely, and hand off without publishing.
Ships in jj-workflow. 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.
Own only the assigned workspace, bookmark, and descendant change IDs. Work there, never in another worker's directory.
Confirm @ is an empty change on the assigned base:
jj workspace root
jj log -r '@ | @-' --no-graph -T 'change_id.short() ++ " " ++ if(empty, "(empty) ") ++ description.first_line() ++ "\n"'
If it is not, stop and tell the orchestrator.
Make one logical, independently passing revision at a time:
jj status
jj describe -m 'Add retry policy to HttpClient'
jj new
Use an imperative, capitalised subject without a period; a body explains
why. Create the bookmark after the first revision with
jj bookmark create <slice> -r @-, then move it after every revision with
jj bookmark move <slice> --to @-.
Fold fixes rather than stacking follow-ups: jj squash --into <change-id>;
use jj absorb for line-based ancestor fixes, jj split to separate work,
jj describe -r to reword, and jj rebase -r ... -B ... to reorder. Refer
to revisions by change ID, not commit ID.
When the base moves: jj git fetch && jj rebase -b <slice> -o <base>;
resolve recorded conflicts in their revision (jj new, edit, jj squash),
then return to the tip with jj new <slice>. A stale-workspace error means
stop and use sync-workspace.
Before hand-off, leave @ empty, run jj status, ensure all slice revisions
are described and conflict-free, and report the workspace, bookmark, and
ordered revision list. Do not push or forget the workspace.
Never use --ignore-immutable. Snapshot with jj status before pausing;
rewriting an active descendant's ancestor risks a divergent recovery.
If navi --version succeeds, jj-navi can handle
workspace navigation; navi switch and navi doctor are safe for a worker,
while navi list and navi merge belong to the orchestrator. Offer the
install when it is missing rather than running it. None of the steps above
change.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/finish-slicesVerify and publish completed Jujutsu slices, then after each PR merges forget its workspace, remove its centralised directory, and clean up its bookmark./parallel-slicesCoordinate parallel work in Jujutsu workspaces: choose jj or a git-worktree fallback, split reviewable slices, create and dispatch isolated workspaces, monitor safely, and integrate. Use when planning or orchestrating multi-agent work in a jj repository./sync-workspaceRecover a stale, divergent, or conflicted Jujutsu workspace, or rebase a slice onto a moved base or parent. Use for stale-working-copy errors, divergent change IDs, or conflicted bookmarks.npx claudepluginhub paulinevos/claude-stuff --plugin jj-workflowOther plugins' skills for the same job