/jj-workflow:parallel-slicesfrom jj-workflow
Coordinates parallel work in Jujutsu workspaces by splitting into reviewable slices, creating isolated workspaces, and integrating results. Use when planning multi-agent work in a jj repository.
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.
You orchestrate; workers own their workspaces. Read
conventions. Use git-fallback
if jj root fails, or if required work/tests need git submodules. A jj repo
with irrelevant submodules may continue, but the workspaces cannot materialise
them. Stop if neither jj nor git applies.
Split work into independently testable, reviewable slices. Record name,
base, owned files, and done criteria; show the table before creating
anything. Independent slices base on trunk(); dependent slices base on the
parent's bookmark. Avoid overlapping files.
Before creating a workspace, ask the user to grant edit permission for
${HOME}/.jj-workspaces and wait for that permission. Request the shared
root, not each slice directory, so workers are not prompted repeatedly.
Then create each workspace outside checkouts, always at
${HOME}/.jj-workspaces/<repo>/<slice>:
jj git fetch
repo=$(basename "$(jj root)")
workspace_root="${HOME}/.jj-workspaces/${repo}"
mkdir -p "$workspace_root"
jj workspace add --name <slice> -r 'trunk()' --sparse-patterns full "$workspace_root/<slice>"
For a dependent slice, use -r <parent-slice> only after that bookmark
exists. Do not create a bookmark on its initial empty @.
Give each worker its workspace path, slice/bookmark and base, purpose,
owned files, hand-off criteria, and work-in-slice. They must not touch
other slices. If a child starts before hand-off, its parent may add at the
tip but must not rewrite ancestors.
Monitor from the default workspace with revsets, not commands in worker
directories. A plain jj -R <workspace> snapshots that worker's edits; if
-R is unavoidable, add --ignore-working-copy.
After hand-off, use finish-slices. Rebase a child onto a grown parent only
from the default workspace; its now-stale handed-off workspace is harmless.
All workspaces share revisions and bookmarks immediately. One owner per change, bookmark, and workspace prevents concurrent rewrites from making workers stale.
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./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./work-in-sliceDo one owned slice in a Jujutsu workspace: make granular described revisions, keep its bookmark at the tip, fold fixes into their revision, rebase safely, navigate workspaces with jj-navi when it is installed, and hand off without publishing.npx claudepluginhub paulinevos/claude-stuff --plugin jj-workflowOther plugins' skills for the same job