This skill should be used when the user asks to "commit", "commit changes", "create a commit", "stage and commit", "git commit", or wants to save their work to version control. Guides Claude through staging files and writing a well-formed git commit message.
Guide for creating a git commit with proper staging and a meaningful commit message.
Activate when the user wants to:
Before committing, always:
git status to see what files have changedgit diff (staged and unstaged) to review the changesgit log --oneline -5 to understand the commit message style in this repogit add -A or git add ..env, credentials, private keys)Follow these conventions:
git log --oneline -10)Verb guide:
Add — wholly new feature or fileUpdate — enhancement to existing functionalityFix — bug fixRemove — deleting functionality or filesRefactor — restructuring without behavior changeAlways pass the message via a heredoc to preserve formatting:
git commit -m "$(cat <<'EOF'
Short summary here
Optional longer explanation of why this change was made.
EOF
)"
--no-verify to skip hooks unless explicitly instructedmain/masterRun git status to confirm the commit succeeded and the working tree is clean.