commit-message
Skill296 starsChanged 57 days agoMITView on GitHub
Generate a repository-conformant commit message for the currently staged changes
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
- 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
- Suuunboy/commit-message-skilltheir own version, first seen Sep 22, 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
- 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
- Lion-1209/Lion-Skills★ 5same 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.
In this repository12 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- address-pr-commentsSkill
- agentic-workflowsSkill
- create-prSkill
- nvx-benchmarkSkill
- nvx-ci-investigationSkill
- nvx-debugSkill
- nvx-host-connectSkill
- nvx-openvmm-promoteSkill
- nvx-runSkill
- rebase-and-validateSkill
- review-changesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Consider only what is in the staging area (the index).
- Distinctive: line 22
Only if a hunk is genuinely ambiguous, inspect at most one or two files and only the relevant ranges.
- Distinctive: line 31
Prefer enforceable configuration over documentation and documentation over recent history.
- Distinctive: line 41
Follow the repository's required subject structure, capitalization, punctuation, scope or type vocabulary, and length limit exactly.
- Distinctive: line 45
If no convention exists, use a concise imperative summary in sentence case with no trailing period.
- Distinctive: line 63
Never fabricate identifiers or trailers.
- Distinctive: line 77
Read the diff; do not echo it back.
- Distinctive: line 78
Consider only staged changes.
- Distinctive: line 79
If nothing is staged, report that and stop.
- Distinctive: line 80
Use repository-specific conventions only when supported by repository evidence.
- Distinctive: line 81
Do not infer motivation, issue references, validation results, or compatibility effects that the staged diff and explicit user input do not …
- Very specific: line 83
Never add CI-control directives such as [skip ci] unless the user explicitly asks.
- Distinctive: line 84
Do not run any mutating git command.
“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
Suggest a Commit Message
Generate a commit message for the currently staged changes only. Do not stage, commit, amend, or push anything — only produce the message text for the user to use.
Consider only what is in the staging area (the index). Ignore unstaged and working-tree changes entirely. If nothing is staged, say so and stop without producing a message.
Steps
- Inspect staged changes with
git diff --cached --statfirst to see scope, thengit diff --cachedfor detail. Do not paste the full diff back into the chat — read it, then write the message.- Work from the diff hunks alone when they provide enough context. Do not read whole source files merely to restate what changed.
- Only if a hunk is genuinely ambiguous, inspect at most one or two files and only the relevant ranges.
- Discover the repository's commit-message conventions from explicit contributor
guidance, templates, hooks, lint configuration, and other repository-local rules,
then inspect recent commit history for established style. Exclude merge commits
and automation-authored commits, such as
github-actions[bot]baseline updates, from that evidence. Do not assume any file location, language, package manager, hook path, lint tool, subject format, scope vocabulary, or length limit. Do not use unstaged file contents as evidence. - Prefer enforceable configuration over documentation and documentation over recent history. Treat history as a convention only when recent human-authored commits follow it consistently; when it is mixed, follow the style of commits already on the current branch, if any. Resolve the staged change's intent, then write a message that follows the discovered format and style. Use the fallback rules below only when the repository provides no convention.
- Output the final message inside one fenced ```text block so it can be copied as-is.
Subject Line
- Follow the repository's required subject structure, capitalization, punctuation, scope or type vocabulary, and length limit exactly.
- Include a type, scope, issue key, or other prefix only when repository rules or established history support it. Never invent a scope or tag.
- If no convention exists, use a concise imperative summary in sentence case with no trailing period. Keep it to 72 characters when practical.
- Describe the dominant purpose and observable effect of the staged changes. Do not combine unrelated subjects or mention unstaged work.
Body
- Include a body when repository rules require one or when it adds important context. Separate it from the subject with one blank line.
- Explain what changed and why, emphasizing behavior and intent rather than restating the diff. Match the repository's prose, wrapping, bullet, and footer style; if none exists, wrap prose at about 72 columns.
- Group details only when that improves clarity for a multi-part change.
- Reference issues, pull requests, breaking changes, co-authors, or other metadata only when justified by the staged diff, explicit user input, or your own contribution to the staged changes in the current session, and use the repository's established syntax. For example, add an assistant co-author trailer, spelled exactly as recent human-authored commits spell it, only when you helped produce the staged changes. Never fabricate identifiers or trailers.
- Mention validation commands only when evidenced and useful to future readers.
Fallback Example
Fix stale cache entries after updates
Invalidate affected entries when source records change so subsequent reads
return current data.Rules
- Read the diff; do not echo it back.
- Consider only staged changes; never describe unstaged or working-tree changes.
- If nothing is staged, report that and stop; do not produce a message.
- Use repository-specific conventions only when supported by repository evidence.
- Do not infer motivation, issue references, validation results, or compatibility effects that the staged diff and explicit user input do not establish.
- Never add CI-control directives such as
[skip ci]unless the user explicitly asks. - Do not run any mutating git command. Output the message and stop.
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.

