Jj commit

From sm17p/amfig · View interactive version

Jj commit is an AI agent skill from the GitHub repository sm17p/amfig. Stages and commits changes in jj (Jujutsu VCS) with a clear, concise commit message. Use when committing changes with jj, setting a revision description, or when the user asks to commit with jj.

How to use this skill

Skill file

jj commit (describe)

Create a commit for the current changes by setting the revision description. In jj there is no staging area; the working copy is the current revision.

Steps

  1. Run jj status to see working-copy state and which files changed.
  2. Run jj diff to see changes in the current revision (working copy vs parent). Use -r @ to restrict to the current rev if needed.
  3. Run jj log -n 5 to see recent commit style.
  4. Write a commit message and run jj describe -m "message".

If the user provides a message hint (e.g. in the request), use it when writing the message.

To start a new change before describing, run jj new; then set the description on that revision.

Commit message rules

Examples of good messages

When pushing, use jj-bookmark-push; never push without a description.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.