jujutsu-workflow
Installation
SKILL.md
Jujutsu Workflow
Prefer jj (Jujutsu) over raw git whenever a .jj/ repo is present. Git stays the canonical remote/PR/CI/audit interface: mutate with jj, verify with read-only Git.
1. Detect & gate first
Run ${CLAUDE_SKILL_DIR}/scripts/detect_jj_state.sh, or check manually:
.jj/present → jj repo: usejj, never mutating rawgit..jj/and.git/→ colocated: mutate withjj, read with git, never touch the git index/staging.- only
.git/→ plain Git repo: do not introducejjunless asked. - in a git worktree,
jj root≠git rev-parse --show-toplevel→ shadowed (exit 3): jj answers for the parent repo. Run nojj; use git, then ask.
See references/git-interop.md.