Commit

Commit all uncommitted changes with an auto-generated conventional commit message. Use when the user asks to commit, save changes, or invokes /commit.

driangle 1823fb9 1.0 KB Updated

File contents

commit

Stage and commit all uncommitted changes using an auto-generated commit message.

Steps

  1. Run git status --short to check for uncommitted changes (staged and unstaged). If there are no changes, inform the user there is nothing to commit and stop.
  2. Run git add -A to stage all changes.
  3. Invoke the /commit-msg skill to generate a conventional commit message from the staged diff.
  4. Create the commit using the generated message:
    git commit -m "<message>"
    
    Append the co-author trailer:
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
  5. Run git status after committing to confirm success.
  6. Show the user the commit hash and message.

Notes

  • If $ARGUMENTS is non-empty, use it as the commit message directly instead of invoking /commit-msg.
  • Do NOT push to a remote. Only commit locally.

driangle/ai-powers/tree/main/plugins/pr-workflow/commit commit 1823fb9def

Frequently asked questions

npx skillmds@latest add driangle/commit