/jj-workflow:jj-commitfrom jj-workflow
Creates focused jujutsu commits by grouping changed files into categories (scripts, config, data, docs, other) and letting you select which group to commit. Supports optional pre-commit hooks.
Ships in jj-workflow. Installing the plugin adds it to Claude Code.
Create focused jj commits with related changes only. Unlike git, jj has no staging area — the working copy IS the current commit (@).
$ARGUMENTS - Commit message (optional, will prompt if not provided)Run jj status and group files into categories:
*.sh, *.hs, *.py, bin/**.conf, *.toml, *.yaml, *.yml, *.json, CLAUDE.md, .claude/**.journal, *.csv, *.rules, *.ledger, *.beancount*.md (excluding CLAUDE.md), *.txt, *.rstOutput format:
Changed files by category:
[1] Scripts (2 files)
bin/fetch-prices.sh
hledger-factset-paystub.hs
[2] Config (1 file)
CLAUDE.md
If only ONE category has changes:
If MULTIPLE categories have changes:
AskUserQuestion with multiSelect: trueCheck for .claude/jj-pre-commit.sh in the project root:
This allows projects to add custom validation (e.g., hledger check, cargo test, npm run lint) without modifying the plugin.
# Commit only the selected files
jj commit -m "<message>" <file1> <file2> ...
# Other files remain in working copy (@) for future commits
jj log -r @ -r @-
After the commit, remind:
Tip: Run `jj bookmark advance` (or `jj ba`) to move bookmarks forward.
| Aspect | Git | Jujutsu (jj) |
|---|---|---|
| Staging | git add required | No staging — working copy is @ commit |
| Selective commit | Stage files, then commit | jj commit [paths...] directly |
| Uncommitted changes | Outside staging area | Remain in working copy (@) |
| Commit all | git commit -a | jj commit (no paths) |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub kalupa/jj-workflow --plugin jj-workflow6 commands in this plugin
/developEnter a jj workspace for isolated development work/jj-absorbAuto-distribute working-copy edits into the ancestor commits that introduced those lines/jj-pushPoint a bookmark at the right change and push it to the remote/jj-resolveWalk through resolving jj conflicts, which are stored as data in commits/jj-syncFetch from the remote and rebase in-progress work onto the updated trunk