commit-message-writer
Skill0 starsChanged 4 months agoMITView on GitHub
Write short, accurate Git commit messages in English. Use when the user asks to commit, create a PR, or write a commit message. ALWAYS check the actual git diff first. ALWAYS write the commit message in English regardless of what language the user speaks.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- Lethe044/agentskill-kittheir own version, first seen Nov 1, 2026
- Laffey-82/cn-agent-skillstheir own version, first seen Aug 29, 2026
- bestdeejay-design/agent-skillstheir own version, first seen Aug 9, 2026
- michaelm7456/claude-skillstheir own version, first seen Jul 19, 2026
- RandyRawgust/ai-knowledge-base-templatetheir own version, first seen May 22, 2026
- sujithq/skillstheir own version, first seen May 20, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Lethe044/agentskill-kit★ 48same name
- bestdeejay-design/agent-skills★ 6same name
- Laffey-82/cn-agent-skills★ 1same name
- RandyRawgust/ai-knowledge-base-template★ 1same name
- kakarot-oncloud/claude-dev-skills★ 0same name
- michaelm7456/claude-skills★ 0same name
- sujithq/skills★ 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 repository3 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Write concise, accurate Git commit messages based on real file changes.
- Distinctive: line 16
Run this command immediately:
- Distinctive: line 22
If nothing is staged:
- Distinctive: line 39
NEVER guess or fabricate changes: Only write what you actually see in the diff.
- Distinctive: line 43
Check git diff --name-only or git diff --staged --name-only.
- Distinctive: line 45
First try to fit into 1-2 commits: If all changes are related (e.g., all in the same feature or all are small fixes), one commit is better …
- Distinctive: line 49
All files in same component/feature → 1 commit
- Distinctive: line 61
All files in same feature/component?
- Distinctive: line 64
Only 2-4 files? → 1 commit usually enough
- Distinctive: line 71
If user says "commit everything together", one commit for everything
- Distinctive: line 73
Example: If git diff --name-only shows:
- Distinctive: line 93
Use this format (Conventional Commits):
- Distinctive: line 171
Always English. Always accurate.
“Common” is measured: kept by at least 6 in 10 of the 6 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 Writer
Purpose
Write concise, accurate Git commit messages based on real file changes. Never fabricate. Never write long paragraphs.
Instructions
Step 1 — Read actual changes FIRST
Run this command immediately:
git diff --stagedIf nothing is staged:
git diffIf still nothing:
git log --oneline -5Step 2 — Analyze changes
Look at:
- Which files changed
- What actually changed (added, removed, modified)
- The real diff content
NEVER guess or fabricate changes. Only write what you actually see in the diff.
Step 3 — Group changes wisely (1-2 commits preferred)
Check git diff --name-only or git diff --staged --name-only.
First try to fit into 1-2 commits. If all changes are related (e.g., all in the same feature or all are small fixes), one commit is better than 4 unnecessary splits.
Split only when changes are clearly unrelated:
- A new feature AND a docs update AND a dependency change → 2-3 commits max
- All files in same component/feature → 1 commit
| Group | Example files | Type |
| New feature files | feat-*.ts, api/*.ts | feat |
| Bug fixes | fix-*.ts | fix |
| Styling/CSS | *.css, *.scss, tailwind classes | style |
| Refactoring | files where only structure changed | refactor |
| Config/build | package.json, .gitignore, configs | chore |
| Docs | *.md, README, comments | docs |
Decision guide:
- All files in same feature/component? → 1 commit
- One feature + some styling? → 1 commit (feat: add feature and update styles)
- Feature + docs + package change? → 2-3 commits max
- Only 2-4 files? → 1 commit usually enough
- Many files with clearly different concerns? → 2-3 commits max
How to execute:
- Decide groups (aim for 1-2, max 3)
- Show plan to user
- Wait for approval
- If user says "commit everything together", one commit for everything
Example: If git diff --name-only shows:
src/api/login.ts
src/api/logout.ts
src/styles/button.css
src/styles/form.css
README.md
package.jsonThen propose 4 commits:
feat(api): add login and logout endpoints
style: update button and form styling
docs: update readme
chore: update package.jsonStep 4 — Write each commit message
Use this format (Conventional Commits):
<type>(<scope>): <short description>| Type | When to use |
feat | New feature |
fix | Bug fix |
refactor | Code change without fix/feature |
style | Formatting, CSS |
docs | Documentation |
chore | Build, deps, config |
perf | Performance improvement |
Rules:
- Short description: max 10 words, no period at end
- Body (optional): max 2 lines, each line under 72 chars
- ALWAYS write the commit message in English — regardless of what language the user speaks (Urdu, Hindi, Chinese, Spanish, Arabic, etc.)
- One logical change = one commit. Don't bundle unrelated changes together
Step 5 — Show user before committing
Show the plan (splits + messages) and wait for approval before running git commit.
Examples
User says:
"I changed the button color and removed extra spacing"
You write:
style(button): update color and remove extra spacingUser says:
"commit everything"
You check diff, find files:
src/auth/login.ts
src/auth/register.ts
src/styles/button.css
README.mdPropose:
1. feat(auth): add login and register pages
2. style: update button styling
3. docs: update readmeUser says:
"commit all changes"
You check diff, then:
refactor(api): clean up unused endpointsWhat NOT to do
- Long commit messages like "This commit adds a new feature for the login functionality which include..."
- Fabricating changes you didn't see in the diff
- Writing commit messages in any language other than English
- Writing "fix: fix some issues" — be specific about what was fixed
- Writing commit for files that haven't changed
Expected Output
type(scope): short description (max 10 words)
Optional body (max 2 lines)Always English. Always accurate. Always short.
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.

