Skill library / For developers
Claude Code skill for commit messages
For developers who want a readable git history without spending time on every message.
Good commit history makes debugging and changelogs painless. This skill reads your staged diff and writes a Conventional Commits message that explains the why, not just the what.
Use this skill nowSee the SKILL.md
Answer up to 4 quick questions, add your email, and get a version written around you, ready to paste into Claude Code. Free, no account needed.
What it's good for
- Keeping history clean on solo projects
- Teams that auto-generate changelogs from commits
- Splitting a large diff into logical commits
The SKILL.md file
Save as commit-message/SKILL.md. It follows the open Agent Skills format.
---
name: commit-message
description: "Writes Conventional Commits messages from staged changes, with a concise subject and a body explaining why. Use when the user asks to commit, write a commit message, or summarise staged changes."
---
# Commit Message
## Workflow
1. Run git diff --staged
2. Pick the type (feat, fix, refactor, docs, test, chore) and scope
3. Write a subject in imperative mood, ≤72 characters
4. Add a body explaining motivation and any breaking change
5. Suggest splitting if the diff mixes unrelated changes
## Rules
- Never commit without showing the message first
- Mark breaking changes with BREAKING CHANGE: in the footer
- Don't mention file names the diff already makes obvious
How to install it in Claude Code
Unzip into .claude/skills/ in your project (or ~/.claude/skills/ for all projects) and invoke it with /skill-name.
Example
Illustrative example. This shows the kind of request and result to expect. It is not a real conversation, and your result will depend on what you give it.
You ask: “commit this”
What you get back: fix(auth): refresh token before expiry to prevent silent logouts, plus a 2-line body.
Pro tip
If your repo uses ticket IDs, add the pattern to the rules so it appends them automatically.
Make your own version
This prompt is a good start, but it doesn't know you. Answer a few quick questions about your situation and how you like things done, and we'll write a version that does. It appears on screen with a Copy button and setup steps for your AI, and we email you a copy. Free, up to 10 a month.
Make my own version freeQuestions
What format does it use?
Conventional Commits, such as feat:, fix: and docs:, with a subject line and a short body explaining the reason for the change.
Does it commit for me?
Use it to draft the message. Read it before committing, especially on shared branches.
How do I install it in Claude Code?
Unzip into .claude/skills/ in your project (or ~/.claude/skills/ for all projects) and invoke it with /skill-name.
Is it free?
Yes. You can copy the prompt on this page for free, with no sign-up. If you want a version written around you, our generator is free too (up to 10 a month, no account needed): answer a few questions and we email you a copy.