| name | conventional-commit |
| description | Add and commit changes using conventional commits |
Create a git commit for the current changes using the Conventional Commits standard.
Context
Based on the conversation, determine what context is relevant for the commit message. If the user provided specific guidance about what to commit or the commit message, use that. Otherwise, analyze the changes to determine an appropriate commit message.
Process
-
Analyze the changes by running:
git status to see all modified/untracked files
git diff to see unstaged changes
git diff --staged to see already-staged changes
git log --oneline -5 to see recent commit style
-
Stage appropriate files:
- Stage all related changes with
git add
- Do NOT stage files that appear to contain secrets (.env, credentials, API keys, tokens)
- If you detect potential secrets, warn the user and skip those files
-
Determine the commit type based on the changes:
feat: New feature or capability
fix: Bug fix
docs: Documentation only
style: Formatting, whitespace (not CSS)
refactor: Code restructuring without behavior change
perf: Performance improvement
test: Adding or updating tests
build: Build system or dependencies
ci: CI/CD configuration