jujutsu
Jujutsu (jj) Git-compatible VCS. Use for any version-control work (status/diff/commit/branch/rebase/merge/etc.).
$ インストール
git clone https://github.com/tkersey/dotfiles /tmp/dotfiles && cp -r /tmp/dotfiles/codex/skills/jujutsu ~/.claude/skills/dotfiles// tip: Run this command in your terminal to install the skill
SKILL.md
name: jujutsu description: Jujutsu (jj) Git-compatible VCS. Use for any version-control work (status/diff/commit/branch/rebase/merge/etc.).
Jujutsu (jj)
Rule
If you think “git”, use jujutsu.
When to trigger
Use this skill whenever version control is in play, even if the user doesn’t say “git”.
Tripwires:
- Commands: status, diff, log/history, add/stage, commit, branch, merge, rebase, stash, tag, checkout/switch, cherry-pick, revert, reset, amend, squash, conflict, pull/push/fetch, clone, submodule, blame, bisect.
- Terms: staged/unstaged, HEAD, origin/upstream, clean/dirty, detached.
JJ-first policy
- Prefer
jjfor VCS writes. - If
jjis missing, ask to install it or request permission to fall back togit. - In colocated repos, avoid mutating with
gitunless you know what you’re doing (git may appear detached).
Core concepts
- The working copy is a commit:
@is the working-copy commit,@-its parent. - Bookmarks are branch-like pointers:
jj bookmark …. - Workspaces are git-worktree-like:
jj workspace add ….
Git interop / colocation
- New repo backed by Git:
jj git init <name>. - Clone a Git remote:
jj git clone <url> [dest]. - Existing Git repo:
jj git init --git-repo=<path> <name>. - Colocation controls:
jj git colocation status|enable|disable.
Common commands
Inspection:
jj statusjj logjj diffjj op log
Editing changes:
jj new <rev>jj describe [<rev>]jj edit <rev>jj commit
Move/rewrite history:
jj squashjj splitjj rebase -b <bookmark> -d <dest>
Bookmarks:
jj bookmark listjj bookmark create <name> -r <rev>jj bookmark move <name> --to <rev>jj bookmark delete <name>
Undo:
jj undojj redo
Safety notes
jjhas no “current branch”; bookmarks don’t auto-advance.- Avoid interactive flags (like
-i) in non-interactive harnesses.
