
commit
Reviews staged git changes and drafts a concise commit message. Use when the user wants to commit, n
by jorgeavaldez|Open Source
Commit Skill
Generate a 1-line commit message for current changes.
Steps
- Run
jj diff --git --no-pagerto inspect the working-copy changes. - If there are no changes, say
No changes in working copy.and stop. - Draft a short 1-line message that explicitly describes the changes. Use no conventional-commit prefix and no verbose description.
- Return only the commit message. Do not run any source-control mutation commands.
Examples:
fix token expiry edge caserefactor auth middleware
Rules
- NEVER run
jj commit,jj describe,jj new, or any jj mutation commands - NEVER run
git add,git commit,git push - NEVER create branches or bookmarks
- Only return the message — the user will commit/describe themselves