jujutsu-workflow
Installation
SKILL.md
Jujutsu Workflow
For agentic coding, prefer jj (Jujutsu) over raw git whenever a .jj/ repo is present — it is the superior local change layer. 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.
See references/git-interop.md.
2. Agent-safety rules (non-negotiable)
- Always
--no-pageron output commands; setjj config set --user ui.paginate never. - Always
-m. Never run editor/TUI forms — barejj describe|commit|squash,jj split(interactive),jj squash -i,jj resolve,jj diffedit— they hang agents. jjsnapshots the working copy only when a jj command runs, not on every file write.