Git Commit Formatter
Automatically formats Git commit messages to adhere to project conventions, ensuring clarity and consistency.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add git-commit-formatter npx -- -y @trustedskills/git-commit-formatter
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"git-commit-formatter": {
"command": "npx",
"args": [
"-y",
"@trustedskills/git-commit-formatter"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automatically formats Git commit messages to adhere to a predefined style. It ensures consistency and clarity in project history, making it easier to understand changes over time. The formatter operates before commits are finalized, enforcing the desired structure on the message content.
When to use it
- Enforcing team standards: When a development team requires specific formatting for commit messages (e.g., prefixes like "feat:", "fix:").
- Automated changelogs: To generate consistent and structured changelog files from Git history.
- Improving code review process: Clear, formatted commit messages streamline the code review workflow by providing context upfront.
- Maintaining project consistency: Ensuring all commits follow a uniform style across a large codebase or multiple contributors.
Key capabilities
- Automatic commit message formatting
- Pre-commit hook integration
- Enforcement of predefined styles and conventions
Example prompts
- "Format my current Git commit message according to the team's standard."
- “Apply the configured git commit formatter.”
- "Ensure all future commits follow the established commit message style guide."
Tips & gotchas
This skill requires a working Git environment and may necessitate configuration adjustments based on existing project workflows. It’s crucial to understand the configured formatting rules to avoid unexpected changes to your commit messages.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.