Git Commit Message Coach Skill
Review commit messages against Conventional Commits and clarity heuristics, then suggest rewrites that preserve the author’s intent.
What this skill does
Local message linter
Check type, scope, subject and body with the bundled Python script.
Context-aware rewrites
Improve messages while respecting repo conventions and avoiding invented motivations.
Coaching notes
Explain issues and suggest when a change should be split or squashed.
What to provide & what you get
- Input
- Commit messages, optional diff context and the repository’s commit conventions.
- Expected output
- Lint findings, ready-to-paste rewrites and coaching notes explaining each proposed change.
Installation
- Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only
SKILL.md. - Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.
Codex
- This project
.agents/skills/git-commit-message-coach/SKILL.md- All your projects
~/.agents/skills/git-commit-message-coach/SKILL.md
Claude Code
- This project
.claude/skills/git-commit-message-coach/SKILL.md- All your projects
~/.claude/skills/git-commit-message-coach/SKILL.md
- Check the final path. It must match one of the paths above, with one
git-commit-message-coach/folder directly underskills/. Avoid an extra ZIP-name folder around it. - Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.
Before the first run
- An agent that can load local skills
- Python 3 to run the optional standard-library checker
- Commit messages and optional relevant diff context
The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.
What's in the download
8 files across 1 skill folder. Includes git-commit-message-coach/SKILL.md and supporting directories:
examples/references/scripts/templates/
File integrity (SHA256):
54b1dfb556f24e98490048300ec9c26f267b536c338716422df23c224fab59f8How to use
- Provide the original message and enough diff context to explain the change.
- Run the bundled checker or ask the agent to review its findings with the references.
- Review the suggested message and paste it into your normal commit workflow.
Try it in your agent
Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.
Codex
Use $git-commit-message-coach. Review this commit message using our repository conventions. Explain the findings and suggest a rewrite; do not change Git history: [message and diff context].
Claude Code
Use /git-commit-message-coach. Review this commit message using our repository conventions. Explain the findings and suggest a rewrite; do not change Git history: [message and diff context].
Check the result: Confirm the proposed message matches the actual diff and does not expose private details. The checker is heuristic.
Worked example · Editorial fixture
Rewrite a message against the actual diff
Fictional inputs and an editorially prepared output for this exact Skill package. No end-to-end agent or model run was performed; the Skill remains structure-checked. The bundled helper was run locally on the supplied files; its results cover only the checks stated here.
Example input
Repository convention: lowercase Conventional Commit type and a short imperative subject. Original message: Fix: WIP updated cache. The complete supplied diff changes only the cache key from query to locale + ":" + query. Request a clearer message without making a commit or changing Git history.
Prepared output
Prepared message: fix(cache): key results by locale Keep responses for different locales in separate cache entries. The original message is temporary and uses an uppercase type. The prepared message describes only the supplied key change; it claims no speed, correctness benchmark, or unrelated feature. The bundled linter was run locally on both messages; inspect helper-results.json for its actual findings. No Git commit was created.
What to check in this case
- Compare the new subject with fixture.diff; it must describe locale separation.
- Check the linter results for the original and corrected messages.
- A clean message-lint result does not establish that the cache implementation is correct.
References: Community source and author
Keep in mind
- The checker cannot establish the intent or correctness of a code change.
- The skill does not amend commits, rebase history or force-push without a separate request.


