commit-messages
Skill4 starsChanged 4 months agoMITView on GitHub
Writes commit messages that explain why a change was made, and structures work into commits that can be reviewed and reverted independently. Use this whenever the user is committing, asks for a commit message, mentions conventional commits, or has a working tree with several unrelated changes in it. For describing a whole branch to reviewers, use pr-descriptions.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- glennawatson/CSharpAgentSkillstheir own version, first seen Oct 1, 2026
- fworks-tech/agenthoodtheir own version, first seen Sep 28, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 2026
- JoelQ/skillstheir own version, first seen Jul 22, 2026
- yoonation/ai-groundedtheir own version, first seen Jul 22, 2026
- shinzoxD/knackboxtheir own version, first seen Jul 10, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- TheDecipherist/claude-code-mastery★ 549same name
- JoelQ/skills★ 30same name
- yoonation/ai-grounded★ 4same name
- fworks-tech/agenthood★ 3same name
- lobomfz/skills★ 2same name
- glennawatson/CSharpAgentSkills★ 1same name
- Jylhis/skills★ 1same name
- israel7852/claude-code-mastery★ 0same name
- shinzoxD/knackbox★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Before writing anything, check what is staged.
- Distinctive: line 57
Do not restate the diff. "Changed the value from 30 to 60" is visible.
- Distinctive: line 67
Put the essential reasoning in the commit, and the link for the full history.
- Very specific: line 73
Look at git log before writing.
- Distinctive: line 77
If there is no convention, plain imperative subjects are the safe default.
- Distinctive: line 109
"Minor changes", "cleanup", "misc": if it is not worth describing, it may not be worth committing separately
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit messages
A commit message is read once in review and then repeatedly, years later, by someone asking "why is this line here?" The diff already says what changed. The message exists to say why.
git log --oneline should read as a plausible account of how the code got this way. If it reads
"fix", "wip", "fix again", the history has no value and neither does git blame.
1. Commit one thing
Before writing anything, check what is staged. If the change contains a bug fix and a rename and a dependency bump, it cannot be described in one sentence, because it is three commits.
Split when the parts could be reverted independently, when one is mechanical and one needs thought, or when you find yourself writing "and".
git add -p # stage selectivelyDone when: the staged change has one purpose.
2. Write the subject as an instruction
Under ~72 characters, imperative mood, no trailing period. Imperative because it completes the sentence "applying this commit will…", which is also how git's own generated messages read.
Fix timezone offset applied twice to scheduled jobs
Add retry with backoff to the payment webhook
Remove the unused legacy export pathNot Fixed, not Fixes, not fixing. Not Updated code, which says nothing.
Be specific enough to be searchable. "Fix bug" is unfindable; "Fix double timezone offset" is what someone will grep for in a year.
Done when: the subject alone tells a reader what this commit does.
3. Use the body for why
Blank line, then wrapped prose. Skip it only when the subject genuinely covers everything.
Cover:
- What was wrong, or what prompted this
- Why this approach, especially if a simpler one exists and does not work
- Consequences a reader would not expect — behaviour changes, migration required
- What you did not do, and why
Do not restate the diff. "Changed the value from 30 to 60" is visible; "Raised the timeout to 60s because the vendor's p99 is 45s and we were failing legitimate slow responses" is not.
Done when: someone reading it in a year would not have to ask a follow-up.
4. Reference, do not defer
Link the issue, but the message must stand alone. "Fixes #4821" as the whole message is a message that dies with the issue tracker.
Put the essential reasoning in the commit, and the link for the full history.
Done when: the message is useful with no network access.
5. Follow the repo's convention
Look at git log before writing. If the project uses conventional commits (feat:, fix:,
chore:), follow it — consistency matters more than the merits of any format, and tooling may
depend on it for versioning and changelogs.
If there is no convention, plain imperative subjects are the safe default.
Done when: the message matches what the last fifty commits look like.
Examples
Fix double timezone offset on scheduled jobs
Jobs scheduled from the UI ran an hour early during BST. The handler
converted the incoming time to UTC, and the scheduler converted it again
on read.
Removes the second conversion and stores everything as UTC at the
boundary. Existing rows are unaffected — they were written by the same
double conversion and are consistent with each other.Extract retry logic from the webhook handler
Pure move, no behaviour change. Preparing for the payment handler to use
the same logic in the next commit.That second one matters as much as the first: saying "pure move, no behaviour change" tells the reviewer exactly how much attention the diff needs.
What not to write
- "Fix review comments": say what was fixed. The review thread will not be there later
- "WIP", "temp", "asdf": squash before merging
- "Minor changes", "cleanup", "misc": if it is not worth describing, it may not be worth committing separately
- The whole PR description repeated in every commit
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

