commit
Create a conventional commit for staged changes.
1. Review Changes
git status
git diff --staged
2. Determine Commit Type
Based on changes, select appropriate type:
- feat: New feature
- fix: Bug fix
- docs: Documentation only
- style: Formatting, no code change
- refactor: Code restructuring
- perf: Performance improvement
- test: Adding/updating tests
- build: Build system or dependency changes
- ci: CI configuration changes
- chore: Maintenance tasks
3. Generate Commit Message
Format:
<type>(<scope>): <short description>
<detailed body if needed>
Co-Authored-By: Claude <noreply@anthropic.com>
Arguments provided: $ARGUMENTS
4. Execute Commit
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
<body>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
5. Verify
git log -1 --oneline