/jj-skill:jjfrom jj skill
Version control in Jujutsu (jj) repos. Use for ANY VCS action (status, diff, log, commit, amend, split, rebase, conflicts, undo, fetch, push, branches/bookmarks) when `jj root` succeeds or a .jj/ directory exists, including colocated .jj + .git repos. Use jj, never git, in these repos.
Ships in jj skill. 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.
Written against jj 0.46. Command names and flags change between releases. When one fails, follow Fallback below rather than guessing.
jj root # fails → not a jj repo, stop using this skill
jj --version
jj config set --repo ui.conflict-marker-style git # conflict markers you already know how to read
.jjconflict-* files and fake unmerged paths. git commit/checkout/rebase/stash/reset fight jj's state. Every git task has a jj equivalent in the tables below. Project scripts and tools that read git data are fine, such as build scripts calling git rev-parse or gh pr create --head <bookmark> after a push. If git is blocked with a "this is a jj repo" message, use the jj equivalent it lists. Never bypass the block (absolute path to git, editing PATH, env flags).describe -m, commit -m, split -m, squash -m or squash -u.jj describe --stdin for multi-line messages.diffedit, arrange, resolve (except resolve --list), any -i/--interactive, --editor, --tool.jj split without file paths is interactive. Always give paths.@ is a commit. Edits are recorded automatically. There is no staging area, no add, no stash.jj log), not by commit hash. Change IDs survive rewrites.rebase, squash, abandon, git fetch, restore, edit), run the conflict check: jj log -r 'conflicts()'.--ignore-immutable. If jj refuses to rewrite an immutable or pushed change, build on top with jj new <id>.Default flow: continue the requested task in its change; start an independent task with jj new <base> -m "<task>" from the intended base (usually main/trunk). Preserve unrelated changes and bookmarks; a different workspace view is not lost work. Do not rewrite a change that has children unless asked. Finish with jj commit -m "<message>".
jj st and jj log before editing. If @- is a merge, load jj-workflow before choosing this default loop; a mega merge keeps its working copy open across tasks.jj new <base> -m "<task>" from the requested base or the repository's main/trunk; do not stack it on an unrelated draft merely because that draft is current. Do not assume a local bookmark named main exists. If the relationship is unclear, use the conversation and diff to resolve it; ask before choosing a base that changes which work is included.jj new <change> -m "<task>" (jj new -m "<task>" when that change is @). Unless the user asked to change that change, do not edit or describe an @ that has children. This preserves its descendants while letting dependent work build on it.@ only if it is already on the intended base and has no children; name it with jj describe -m "<task>". An empty @ above an unfinished draft is still based on that draft. Continue a nonempty @ when the request belongs to that task; do not split a task just because another message arrived.jj st record it and keep its change, description, parent relationships and bookmarks intact. Changing the current view with jj new <base> does not discard that work. If the user asked to keep this workspace in place, create a separate workspace instead.jj commit, the finished change is @-. The empty, undescribed @ above it is normal. A small follow-up fix can be made there and folded into your own previous change with jj squash -u; do not fold unrelated user edits into it.For parallel tasks, several branches, or a branch-only check, load jj-workflow to choose the workspace and change layout. In a workspace converted from a git worktree (announced with bookmark '<name>' at @-), advance that bookmark after committing with jj bookmark set <name> -r @- so tools inspecting the worktree branch see the finished change.
| Intent | Command |
|---|---|
| Status | jj st |
| Recent history | jj log (more: jj log -r '::@' -n 20) |
| Diff of current change | jj diff (--git for unified patch, --stat for summary) |
| Diff / show a change | jj diff -r <id> / jj show <id> |
| File at a revision | jj file show -r <id> <path> |
| Blame | jj file annotate <path> |
| Set message of @ / other change | jj describe -m "..." / jj describe <id> -m "..." |
| Finish current change | jj commit -m "..." |
| Start new change on X | jj new <id> -m "..." |
Amend previous change (git commit --amend) | jj squash -u (moves @ into @-, keeps @-'s message) |
| Move some files into an earlier change | jj squash --into <id> -u <paths> |
| Auto-route fixes to the changes that last touched those lines | jj absorb |
| Split change | jj split -r <id> -m "first part" <paths> (paths go to the first part) |
| Discard working-copy edits to a file | jj restore <path> |
| Drop a change (content is discarded; children re-parented) | jj abandon <id> |
| Move a change and its descendants | jj rebase -s <id> -o <dest> |
| Move only one change | jj rebase -r <id> -o <dest> |
| Move whole local branch onto trunk | jj rebase -b @ -o 'trunk()' |
| Cherry-pick | jj duplicate <id> -o <dest> |
| Revert a change | jj revert -r <id> -B @ |
Parallel checkout (git worktree) | jj workspace add <path> |
jj log -r 'conflicts()' # which changes are conflicted (marked ×)
jj new <conflicted-id> # work on top of the oldest conflicted change
jj resolve --list # conflicted files
# edit each file: keep the correct content, delete ALL marker lines
jj st # should say the conflict is resolved
jj squash -u # fold the resolution into the conflicted change
jj log -r 'conflicts()' # repeat until empty
Descendants of the fixed change are rebased automatically and often resolve themselves, so re-check before fixing the next one. If the markers contain %%%%%%% or +++++++, the preflight config was not applied. Those are diff-style markers: the %%%%%%% section is a diff to apply onto the +++++++ side.
jj git fetch
jj rebase -b @ -o 'trunk()' # then run the conflict check
jj bookmark set <name> -r @- # bookmark = git branch; @- is the finished change
jj git push -b <name> --dry-run # check first
jj git push -b <name>
jj git push -c @-. This creates a push-<id> bookmark.jj describe <id> -m.jj bookmark track <name>@origin.jj bookmark move <name> --to <id>. Note it takes --to, not -r.jj bookmark set <name> -r @-, then push.jj op log -n 10 # every operation, newest first
jj op show <op-id> # what an operation changed
jj op restore <op-id> # return the whole repo to the state after <op-id>
jj undo undoes the latest operation. Repeated calls walk further back, and jj redo re-applies.jj op log first and prefer jj op restore <op-id>.jj evolog -r <id> lists every recorded state of one change. With jj-agent's hooks, jj op log shows on each snapshot the step that made it (args: ... --config 'jj-agent.step=...').jj restore), ignore it. The message names the operation from just before that command. Run jj op show on the operations after it to see what changed. If the change was not intended, restore single files with jj restore --from 'at_operation(<op>, @)' <paths>, or the whole repo with jj op restore <op>; the latter also drops everything else that command did. Then redo the step with jj.When a command fails with unrecognized subcommand, unexpected argument, or a deprecation warning:
jj <command> --help (or jj help -k revsets|templates|bookmarks|config). Adapt to what it says and retry once.| Old / remembered | Current |
|---|---|
jj branch ... | jj bookmark ... |
jj checkout X | jj new X |
jj move | jj squash --from X --into Y |
jj obslog | jj evolog |
jj rebase -d X | jj rebase -o X (-d still works as an alias) |
jj undo <op-id> | jj op revert <op-id> or jj op restore <op-id> |
jj bookmark move N -r X | jj bookmark move N --to X |
jj git push --allow-new | not needed (flag removed) |
jj git init --colocate | jj git init (colocates by default) |
jj squash / split with no -m/-u/paths | add them, or it opens an editor |
jj abandon discards the change's content. It does not move it into the parent. To keep the content, use jj squash.jj commit or jj new, @ is empty, so "push @" pushes nothing useful. The finished work is @-.trunk() resolves to main/master on the remote. With no remote it resolves to root().What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub hyperthreading/jj-agent-plugins --plugin jj-skill2 plugins in one repository ship this exact skill · first indexed Nov 11, 2026