git-commit-generator
Skill1 starsChanged 5 months agoMITView on GitHub
Generate Conventional Commit messages from staged git changes. Analyzes diffs and produces properly formatted commit messages following the Conventional Commits specification. USE FOR: writing commit messages, generating conventional commits, crafting git commit messages, formatting commits with type(scope): subject pattern. DO NOT USE FOR: general git operations, branching, merging, or rebasing.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- opoojkk/skillstheir own version, first seen Mar 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- opoojkk/skills★ 2same 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 repository8 other files it gives its agents.
- babysitSkill
- create-pull-requestSkill
- git-squash-rebaseSkill
- marp-presentationsSkill
- plan-visualizerSkill
- pnpm-dependency-upgrade-auditSkill
- react-useeffect-guideSkill
- split-to-prsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 11 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Run git diff --cached --name-status to identify changed files and their status
- Distinctive: line 19
Run git diff --cached to review the actual staged changes
- Very specific: line 47
Always use bullet points (prefixed with - ) when a body is included
- Distinctive: line 52
Use domain-specific terms.
- Distinctive: line 53
Never mention "staged", "diff", or counts of files/lines
- Distinctive: line 57
If the user provides a scope, use it as-is
- Distinctive: line 59
Prefer a broad scope when many files are affected across areas
- Distinctive: line 78
If the user provides a commit type, use it as-is.
- Very specific: line 82
Add a BREAKING CHANGE: <description> footer when changes remove or rename public APIs, alter expected behavior, or require migration steps …
- Distinctive: line 115
Do NOT wrap the output in markdown code fences
- Distinctive: line 116
Do NOT include any preamble or postamble (e.g.
- Distinctive: line 117
Do NOT invent changes not visible in the diff
- Distinctive: line 118
Do NOT use past tense — always imperative mood
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Commit Generator
Generate Conventional Commit messages from staged git changes.
Workflow
- Run
git diff --cached --name-statusto identify changed files and their status - Run
git diff --cachedto review the actual staged changes - Analyze the changes and generate a commit message following the rules below
- Output ONLY the commit message — no markdown, no code fences, no commentary
- Present 2-3 options to the user
Output Format
type(scope): subject
- Body sentence one
- Body sentence two
BREAKING CHANGE: description (if applicable)- Blank line between subject and body
- Blank line between body and footers
Subject Rules
- Imperative mood (e.g. "add feature", not "added feature" or "adds feature")
- Start lowercase
- No trailing period
- <= 50 characters
Body Rules
- Always use bullet points (prefixed with
-) when a body is included - Each bullet line <= 72 characters
- Imperative mood (e.g. "Update", "Add", "Fix")
- Explain WHAT and WHY, not HOW
- Omit body entirely if the subject is self-explanatory
- Use domain-specific terms; avoid generic phrases like "update files" or "make changes"
- Never mention "staged", "diff", or counts of files/lines
Scope
- If the user provides a scope, use it as-is
- Otherwise, infer a concise scope from the top-level directories or module changed
- Prefer a broad scope when many files are affected across areas
- Omit scope if unclear or when changes are global
Commit Types
| Type | Use When |
feat | New feature or significant enhancement |
fix | Bug fix |
docs | Documentation changes only |
style | Formatting, whitespace, semicolons — no logic change |
refactor | Code restructuring without behavior change |
perf | Performance improvement |
build | Build system or dependency changes |
ci | CI/CD configuration changes |
test | Adding or updating tests |
chore | Maintenance tasks, tooling, non-src changes |
revert | Reverting a previous commit |
If the user provides a commit type, use it as-is. Otherwise, infer the most appropriate type.
BREAKING CHANGE Footer
Add a BREAKING CHANGE: <description> footer when changes remove or rename public APIs, alter expected behavior, or require migration steps from consumers.
Examples
Simple change (no body needed)
fix(auth): handle expired token redirectChange with body
feat(api): add pagination to user listings
- Accept `page` and `per_page` query parameters
- Return total count in response header
- Default to 20 items per pageBreaking change
refactor(client): replace callback API with promises
- Migrate all client methods from callback pattern to async/await
- Remove deprecated callback-based public methods
BREAKING CHANGE: all client methods now return Promises instead of accepting callbacksCommon Pitfalls
- Do NOT wrap the output in markdown code fences
- Do NOT include any preamble or postamble (e.g. "Here is your commit message:")
- Do NOT invent changes not visible in the diff
- Do NOT use past tense — always imperative mood
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.

