git-commit
Create well-structured git commits with conventional commit messages
Git Commit Skill
When the user asks you to commit changes, follow this workflow:
- Run
git statusto see what files have changed - Run
git diff --stagedto review staged changes (orgit difffor unstaged) - Analyze the changes and determine the commit type:
- feat: A new feature
- fix: A bug fix
- docs: Documentation changes
- refactor: Code refactoring
- test: Adding or updating tests
- chore: Build process or auxiliary tool changes
- Write a clear commit message following Conventional Commits format:
type(scope): short description Longer description if needed. - Stage the relevant files with
git add - Create the commit with
git commit -m "message"
Important Rules
- Never use
git add .without reviewing changes first - Always check for sensitive files (.env, credentials) before committing
- Keep the subject line under 72 characters