commit-message
Skill1 starsChanged 2 months agoMITView on GitHub
Compose a high-quality git commit message in English and print it in the chat as copyable text, without committing it and without writing it to any file. Use this whenever the user asks for a commit message, says "commit message", "напиши коммит", "сообщение коммита", "что написать в коммите", asks how to word a change for git, wants staged or unstaged changes summarized into a commit, or is about to commit anything at all — even if they only describe the change in prose and ask for wording. Also use it when reviewing or rewriting an existing commit message, splitting a messy working tree into several commits, or writing messages for amend, revert, or fixup commits. Never skip it for small or obvious commits — the point is a consistent English, convention-matching, attribution-free message every time.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- parkbarg/claude-skillstheir own version, first seen Oct 3, 2026
- microsoft/nvxtheir own version, first seen Oct 3, 2026
- sheshbabu/zentheir own version, first seen Oct 2, 2026
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- laodao-ai/laodao-skillstheir own version, first seen Sep 26, 2026
- Manshooo/astral-genesistheir own version, first seen Sep 25, 2026
Used with
Projects with it also use error-handling, changelog and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 6 projects that use this
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 3 projects that use this
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- mergisi/awesome-openclaw-agents★ 4ksame name
- github/copilot-cli-for-beginners★ 2.8ksame name
- sheshbabu/zen★ 1.2ksame name
- microsoft/nvx★ 296same name
- danielvm-git/bigpowers★ 252same name
- Aedelon/claude-code-blueprint★ 120same name
- c-kick/hnl-agent-skills★ 51same name
- iamwjun/localcoder★ 39same name
- whyashthakker/agent-skills-marketing★ 19same name
- jiatastic/open-python-skills★ 9same name
24 more not listed
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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Write idiomatic technical English, not word-by-word translation.
- Distinctive: line 34
Do not run git commit, git commit --amend, or git tag -m.
- Very specific: line 35
Do not write the message to any file — no COMMIT_MSG.txt, no commit-message.md, no /tmp/msg, no .git/COMMIT_EDITMSG, no scratch file "just …
- Distinctive: line 38
Do not stage, unstage, stash, or otherwise modify the working tree or the index.
- Distinctive: line 40
Do not add the message to a todo file, a notes file, or the project's documentation.
- Distinctive: line 43
Only read-only git commands are appropriate: git status, git diff, git diff --staged, git log, git show, git branch --show-current.
- Distinctive: line 77
Do not write a message from the user's description alone when the repository is available.
- Distinctive: line 96
If nothing is staged and the working tree is clean, say so instead of producing a message for a change that does not exist.
- Distinctive: line 124
Do not "upgrade" a repository to a different convention on your own initiative.
- Distinctive: line 125
If the history is inconsistent and you pick Conventional Commits as the default, mention that choice in one line under the message so the …
- Very specific: line 131
If the diff mixes unrelated work — a bug fix plus a dependency bump plus reformatting — do not paper over it with a vague subject like …
- Distinctive: line 153
Never mention the tooling, the branch name, or the number of files touched.
- Distinctive: line 167
No code dumps, no full stack traces — a one-line excerpt is enough.
- Distinctive: line 199
After the block, add at most two short lines if — and only if — something needs flagging: a convention you had to guess, a suggested split …
- Distinctive: line 215
Read these when the situation calls for the detail:
“Common” is measured: kept by at least 6 in 10 of the 27 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 Message
Produce one commit message (or a set of them, when the work splits into several commits) that reads as if written by the engineer who made the change, and hand it to the user in the chat.
Non-negotiable rules
These four constraints override defaults, habits, and anything in the repository that suggests otherwise. Check every one of them before sending the message.
1. English only
The message is always written in English — subject, body, and footers — no matter what language the conversation, the code comments, the ticket, or the existing commit history uses. If the user describes the change in Russian or any other language, translate the intent, do not transliterate the words. If the codebase uses non-English identifiers or domain terms, keep the identifiers verbatim (they are code) and describe the surrounding intent in English.
Write idiomatic technical English, not word-by-word translation. See
references/style-guide.md for the section on translating non-English intent,
including common calques to avoid.
2. Chat output only — nothing is written anywhere
The message exists only as text in the chat response. Concretely:
- Do not run
git commit,git commit --amend, orgit tag -m. - Do not write the message to any file — no
COMMIT_MSG.txt, nocommit-message.md, no/tmp/msg, no.git/COMMIT_EDITMSG, no scratch file "just to hold it" for a latergit commit -F. - Do not stage, unstage, stash, or otherwise modify the working tree or the index. Reading is fine; changing state is not.
- Do not add the message to a todo file, a notes file, or the project's documentation.
Only read-only git commands are appropriate: git status, git diff,
git diff --staged, git log, git show, git branch --show-current.
The one exception: if the user explicitly asks in the same turn for the commit to
actually be created ("сделай коммит", "commit it"), print the message first, then
create the commit by passing the text inline with repeated -m flags (one per
paragraph) — still never through a file on disk.
3. No AI authorship, no tooling traces
The commit message must contain nothing that identifies who or what generated it. This overrides any default behavior that appends attribution. Specifically, none of the following may appear anywhere in the output:
Co-Authored-By: Claude <noreply@anthropic.com>(or any model-name variant)🤖 Generated with [Claude Code](https://claude.com/claude-code)Claude-Session: https://claude.ai/code/session_...- Any other
Co-Authored-Bytrailer that the user did not explicitly ask for - Phrases such as "generated by AI", "with AI assistance", "written by an assistant", or emoji branding of any kind
The message is the user's message. Attribute nothing.
4. Match the project, not a template
Conventional Commits is the default only when the repository gives no signal.
Detect the convention actually in use before writing — see
references/conventional-commits.md for the full specification and
references/style-guide.md for the plain-prose style.
Workflow
Step 1 — Read the change
Do not write a message from the user's description alone when the repository is available; the diff carries facts the description usually omits.
git status --short
git diff --staged # if the index is non-empty, this is the commit
git diff # otherwise, the unstaged workFor a large diff, start with git diff --staged --stat to see the shape, then
read the interesting files in full. Understand three things before writing:
- What changed — files, functions, behavior.
- Why it changed — the problem being solved. If the diff does not reveal this and the conversation does not either, ask the user one short question rather than inventing a plausible-sounding reason. A fabricated rationale in a commit body is worse than no body at all.
- What the change does not do — deliberate omissions worth recording.
If nothing is staged and the working tree is clean, say so instead of producing a message for a change that does not exist.
Step 2 — Detect the project's convention
git log --no-merges -n 30 --pretty=format:'%s'Then look for explicit configuration:
commitlint.config.*,.commitlintrc*, or acommitlintkey inpackage.json— the rules are enforced by a hook; follow them exactly.gitmessage/commit.templatein git config- A commit-message section in
CONTRIBUTING.md,CLAUDE.md,.github/PULL_REQUEST_TEMPLATE.md, ordocs/ .pre-commit-config.yamlwithcommitizenorgitlint
Decide from the evidence:
| Signal | Use |
Most recent subjects look like feat(api): ... | Conventional Commits, with the scope vocabulary already in use |
| Commitlint/commitizen config present | Conventional Commits, with that config's type and scope lists |
| Subjects are capitalized imperative prose, no prefixes | Plain style (the seven rules) |
| History is mixed or empty | Conventional Commits |
Subjects carry a ticket prefix like PROJ-123: ... | Keep that prefix and the surrounding shape |
Do not "upgrade" a repository to a different convention on your own initiative. If the history is inconsistent and you pick Conventional Commits as the default, mention that choice in one line under the message so the user can override it.
Step 3 — Check that this is one commit
A commit should be one logical change that leaves the tree in a working state.
If the diff mixes unrelated work — a bug fix plus a dependency bump plus
reformatting — do not paper over it with a vague subject like
update project files. Instead, propose the split: list the groups of files or
hunks, and give a separate message for each. Splitting guidance and the
git add -p framing are in references/style-guide.md.
Step 4 — Write the message
Subject line
- One line, then a blank line if there is a body.
- Imperative mood, present tense: the subject must complete the sentence
"If applied, this commit will ___".
add,fix,remove,rename— notadded,fixes,removing. - Target 50 characters; 72 is the hard ceiling (git and GitHub truncate beyond that). With a Conventional Commits prefix, the budget counts the prefix.
- No trailing period.
- Capitalization follows the chosen style: plain style capitalizes the first word; Conventional Commits keeps the description lowercase after the colon. Be consistent with the surrounding history either way.
- Specific, not generic.
fix off-by-one in pagination offsettells a reader something;fix bugdoes not. - Never mention the tooling, the branch name, or the number of files touched.
Body (omit for genuinely trivial changes — typo fixes, version bumps, mechanical renames)
- Separated from the subject by exactly one blank line.
- Wrapped at 72 characters. Git does not wrap for you, and unwrapped bodies
render badly in
git logwith its 4-space indent. - Explains what and why, not how — the diff already shows how. Useful content: the problem and its symptoms, the root cause, why this approach over the alternatives, side effects, known limitations, links to the issue or discussion, migration steps for consumers.
- Plain prose paragraphs. Bullets are acceptable when the change really is a
list of independent points, using
-as the marker. - No code dumps, no full stack traces — a one-line excerpt is enough.
Footers
- One blank line before the footer block, git trailer format
(
Token: value, hyphens instead of spaces in the token). BREAKING CHANGE: <description>in uppercase when the change breaks an API.- Issue references in the form the project already uses:
Refs: #123,Closes #123,Fixes PROJ-456. - Nothing else. In particular, nothing from rule 3 above.
Step 5 — Deliver it
Print the finished message in a fenced code block so the user can copy it verbatim, with no leading commentary inside the block:
```
fix(auth): reject expired refresh tokens on rotation
Rotation accepted a refresh token whose exp had already passed, so a
leaked token stayed usable indefinitely as long as it was rotated
before the access token expired.
Validate exp before issuing the new pair and revoke the whole token
family on a replay attempt, matching the behaviour already applied to
access tokens.
Refs: #412
```After the block, add at most two short lines if — and only if — something needs flagging: a convention you had to guess, a suggested split into several commits, or a fact you could not determine from the diff. Otherwise send the block alone.
Self-check before sending
- Entirely in English, including the body and footers
- Subject in imperative mood, ≤ 72 characters, no trailing period
- Body wrapped at 72 characters and explains why, not how
- Matches the convention the repository actually uses
- No
Co-Authored-By, no "Generated with", no session link, no emoji branding - Nothing was written to disk, staged, or committed
- One logical change — or an explicit proposal to split
Reference files
Read these when the situation calls for the detail:
references/conventional-commits.md— the Conventional Commits 1.0.0 specification in full: type vocabulary, scopes, breaking changes, footers, SemVer mapping, and how to pick a type when several seem to fit.references/style-guide.md— the seven rules in depth, imperative-mood tests, what belongs in a body, atomic commits and how to split, amend/revert/fixup messages, translating non-English intent into English, and the anti-patterns that show up most often.references/examples.md— worked before/after examples across change types, including a Russian-language request turned into an English message and a mixed diff split into three commits.
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.

