Git Commit Message Generator
Description
Automatically generates meaningful, conventional commit messages by analyzing staged changes. Follows the Conventional Commits specification with type prefixes like feat, fix, docs, refactor, etc.
Code
Skill Code
When asked to commit, analyze the staged changes using git diff --staged and generate a commit message following this format: type(scope): brief description - Detailed bullet points of changes - Another change Types: feat, fix, docs, style, refactor, test, chore
Usage Examples
Examples
User: commit my changes Claude: *analyzes staged files* "feat(auth): add OAuth2 login support - Add Google OAuth provider - Create login callback handler - Store refresh tokens securely"
Installation
Add the following to your CLAUDE.md file (project root or ~/.claude/CLAUDE.md for global):
CLAUDE.md
# Git Commit Message Generator When I ask you to commit changes: 1. Run `git diff --staged` to analyze staged changes 2. Generate a commit message following Conventional Commits: - type(scope): brief description - Types: feat, fix, docs, style, refactor, test, chore 3. Include bullet points for detailed changes 4. Ask for confirmation before committing
Comments (0)
No comments yet. Be the first to share your thoughts!
Leave a Comment