code-commit
SKILL.md
Commit current changes using Jujutsu (jj).
Important
IMPORTANT: Always use jj (Jujutsu) commands. Only fall back to git if jj is not available.
Refer to the jj-reference skill for command syntax and Best Practices (explicit change IDs, logical grouping, etc.).
Process
-
Analyze changes:
- Run
jj diff -sto see changed files - If the user specified specific files or paths, focus on those
- Run
jj log -r ::@ -n 20 --no-graph -T 'description ++ "\n---\n"'for message style - Use
jj difffor full diff view if needed - Analyze: Are changes logically related or distinct? Different subsystems/features? Mixed concerns (refactor + feature, fix + cleanup)?
- Run
-
Determine if split is needed:
- If changes are logically distinct, propose splitting
- Present the plan (messages, which files in each commit) to the user for approval before executing
-
Execute the commit:
- For a single commit:
jj describe <id> -m "<message>" - For splits: use
jj split -r <id> -m "<commit-message>" -- <file>for each commit; do not use interactivejj split - Keep commit messages concise:
- Subject line: 50-72 characters max (Git standard)
- Use imperative mood ("add feature" not "added feature")
- Body: explain "what" and "why", not "how"
- Try to include a short summary of the change in the commit description, including "why" if available.
- After the last commit is described/split, create a new empty commit with
jj newso the working copy (@) is ready for new changes. - After committing, run
jj log -r @to confirm
- For a single commit:
Output Format
When analyzing, provide:
- Suggested commit message following repo's existing style
- Should split? Yes/No with reasoning
- If split recommended: how to split (files/hunks per commit), message for each,
jjcommands
Weekly Installs
14
Repository
sirn/dotfilesGitHub Stars
8
First Seen
12 days ago
Security Audits
Installed on
qoder14
qwen-code14
claude-code14
github-copilot14
codex14
kimi-cli14