Create a git commit for the current changes.
Steps
- •Run
git statusto see all changes (staged and unstaged) - •Run
git diffandgit diff --stagedto understand the changes - •Run
git log --oneline -5to see recent commit style - •If there are unstaged changes, ask which files to stage (prefer specific
git add <file>overgit add .) - •If $ARGUMENTS is provided, use it as the commit message. Otherwise, draft a message following the repo's conventional commit style:
type(scope): description - •Create the commit
- •Show the result with
git log --oneline -1
Rules
- •NEVER use
git add .orgit add -A— always add specific files - •NEVER amend previous commits unless explicitly asked
- •NEVER push after committing
- •Follow conventional commits: feat, fix, chore, docs, refactor, test
- •End the commit message with:
Co-Authored-By: Claude <noreply@anthropic.com>