commit
Stage and commit all uncommitted changes using an auto-generated commit message.
Steps
- Run
git status --shortto check for uncommitted changes (staged and unstaged). If there are no changes, inform the user there is nothing to commit and stop. - Run
git add -Ato stage all changes. - Invoke the
/commit-msgskill to generate a conventional commit message from the staged diff. - Create the commit using the generated message:
Append the co-author trailer:git commit -m "<message>"Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> - Run
git statusafter committing to confirm success. - Show the user the commit hash and message.
Notes
- If
$ARGUMENTSis non-empty, use it as the commit message directly instead of invoking/commit-msg. - Do NOT push to a remote. Only commit locally.