Back to Skills
Git Commit
Generate conventional commit messages and create commits with best practices
gitcommitworkflow
By Claude Code Community
Skill Content
# Git Commit Skill
Create well-formatted git commits following conventional commit standards.
## Usage
```
/commit
```
## Behavior
1. Analyze staged changes with `git diff --staged`
2. Generate a conventional commit message
3. Create the commit with proper formatting
## Commit Format
```
<type>(<scope>): <description>
[optional body]
[optional footer]
```
## Types
- feat: New feature
- fix: Bug fix
- docs: Documentation changes
- style: Code style changes
- refactor: Code refactoring
- test: Adding or modifying tests
- chore: Maintenance tasks
## Example Output
```
feat(auth): add password reset functionality
- Add forgot password form
- Implement email verification flow
- Add password reset endpoint
```
How to use
- Copy the skill content above
- Create a .claude/skills directory in your project
- Save as .claude/skills/commit.md
- Use /commit in Claude Code to invoke this skill