Create a git commit following conventional commits specification.
Commit Types
feat: New featurefix: Bug fixrefactor: Code refactoringtest: Adding testsdocs: Documentationstyle: Formatting (no code change)perf: Performance improvementchore: Maintenance tasks
Process
- Run
git statusto see changes - Run
git diff --stagedto review staged changes - If no staged changes, suggest files to stage
- Generate commit message based on changes:
- Use conventional commit format:
type(scope): description - Keep subject line under 72 characters
- Use imperative mood ("add" not "added")
- Include body for complex changes
- Use conventional commit format:
Commit Message Format
type(scope): short description
[optional body with more details]
[optional footer with breaking changes or issue references]
Examples
# Feature
git commit -m "feat(auth): add OAuth2 login with Google provider"
# Bug fix
git commit -m "fix(api): handle null response from external service"
# Refactor
git commit -m "refactor(hooks): extract useAuth logic into separate hook"
If argument provided: $ARGUMENTS