Commit Skill
Process
- •
Review staged changes:
- •
git status- see staged files - •
git diff --staged- see actual changes - •
git log -3 --oneline- understand commit style
- •
- •
Write commit message:
- •1-2 sentences maximum, imperative mood
- •When mentioning functionality changes, don't mention tests (assumed)
- •Focus on what changed, not implementation details
- •
Commit with attribution: Use your actual model name from system context.
bashgit commit -m "$(cat <<'EOF' Your message here. Assisted-by: Claude Code (<your-model-name>) EOF )"
- •
After commit:
- •Run
git statusto report any unstaged changes
- •Run
Critical Rules
- •NEVER run
git add- only commit what's already staged - •NEVER push - user does this explicitly
- •NEVER use
--amendunless explicitly requested