commit-standards
Standards for writing clear, concise git commit messages. Use when creating commits, reviewing commit history, or establishing git workflow conventions.
When & Why to Use This Skill
This Claude skill provides a comprehensive framework for crafting professional, clear, and concise Git commit messages. It enforces industry best practices—such as using imperative verbs and character limits—to ensure version histories are readable, searchable, and maintainable for development teams.
Use Cases
- Standardizing Team Workflows: Establishing a unified convention for commit messages across a distributed engineering team to improve codebase auditability.
- Automated Message Refinement: Analyzing staged changes via 'git diff' to generate descriptive, context-aware commit messages that follow professional standards.
- Code Review Enhancement: Providing a benchmark for reviewers to evaluate the quality of commit documentation, ensuring every change is clearly communicated without AI-attribution noise.
- Project History Cleanup: Using the standards to rewrite or squash local commit history before merging into main branches to maintain a high-quality project log.
| name | commit-standards |
|---|---|
| description | Standards for writing clear, concise git commit messages. Use when creating commits, reviewing commit history, or establishing git workflow conventions. |
Commit Standards
Standards for writing clear, concise git commit messages that communicate changes effectively.
Key Principles
- Start with an imperative verb - adds, fixes, updates, removes, refactors
- Keep it short - First line under 50 characters
- Be specific - Describe what changed, not what was wrong
- Use simple language - Avoid fancy or technical jargon when plain words work
- Add context when needed - Use bullet points in the body to explain why
Instructions
When creating a commit message:
- Analyze the staged changes with
git diff --staged - Review recent commits with
git log -5 --onelineto match project style - Choose the appropriate verb based on change type:
- Adds - New files, features, or functionality
- Fixes - Bug fixes or corrections
- Updates - Changes to existing features
- Refactors - Code cleanup without changing behavior
- Removes - Deleting files or features
- Improves - Performance or quality enhancements
- Keep the first line under 50 characters
- Add bullet points in the body for complex changes
- ABSOLUTELY CRITICAL: Never mention AI, Claude, or other tools in commit messages - NO attribution text, NO co-author lines, NO emoji, NO exceptions
Examples
Good Commit Messages
Adds user authentication
- Creates login and registration pages
- Adds JWT token handling
- Stores user session in localStorage
Fixes payment processing error
- Validates amount before charging
- Handles network timeouts
- Shows error message to user
Updates installation instructions
Bad Commit Messages
❌ update stuff
❌ fix bug
❌ WIP
❌ Refactors authentication logic with help from Claude
Related Files
message-format.md- Detailed commit message format rulesexamples.md- Good and bad commit message examplesbest-practices.md- Git workflow best practices