code-commit

Commit current changes using Jujutsu (jj).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-commit" with this command: npx skills add sirn/dotfiles/sirn-dotfiles-code-commit

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 -s to 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 diff for full diff view if needed

  • Analyze: Are changes logically related or distinct? Different subsystems/features? Mixed concerns (refactor + feature, fix + cleanup)?

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 interactive jj 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 new so the working copy (@ ) is ready for new changes.

  • After committing, run jj log -r @ to confirm

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, jj commands

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

code-explain

No summary provided by upstream source.

Repository SourceNeeds Review
-16
sirn
Coding

code-config-ci

No summary provided by upstream source.

Repository SourceNeeds Review
-16
sirn
Coding

code-quality

No summary provided by upstream source.

Repository SourceNeeds Review
-16
sirn