github-commit
Skill5 starsChanged 6 months agoMITView on GitHub
Generate Conventional Commit from staged diff. Triggers: 'commit', 'create commit', 'commit message'.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- OpenThrottle/monorepotheir own version, first seen Sep 17, 2026
- korux-ai/korux-repertoiretheir own version, first seen Aug 31, 2026
- oiiiwjh/skillstheir own version, first seen Mar 16, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- oiiiwjh/skills★ 4same name
- korux-ai/korux-repertoire★ 2same name
- OpenThrottle/monorepo★ 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 repository17 other files it gives its agents.
- celebrimborSkill
- ci-cd-generatorSkill
- clean-codeSkill
- code-debuggerSkill
- code-optimizationSkill
- code-reviewSkill
- code-security-reviewSkill
- context-optimizationSkill
- github-pr-reviewSkill
- github-release-noteSkill
- mcp-builderSkill
- obsidian-basesSkill
- obsidian-brainSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- only-planSkill
- prompt-engineeringSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
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 25
Run git diff --staged. If empty, inform the user there are no staged changes and offer help with git add.
- Distinctive: line 29
Run git diff --staged --stat for a summary of modified, added, or removed files.
- Distinctive: line 33
Look for project-specific commit configurations:
- Distinctive: line 40
If found, project conventions take precedence over default rules.
- Distinctive: line 44
Read the full diff and identify:
- Distinctive: line 89
No period at the end
- Distinctive: line 108
Wait for user approval
- Distinctive: line 109
After approval, execute git commit with the message
- Distinctive: line 113
Follow the Conventional Commits spec strictly
- Distinctive: line 114
Never invent changes — only describe what the diff shows
- Distinctive: line 118
Never enumerate files or sections in the body — the diff is the enumeration
- Distinctive: line 119
Never end the body with a question or confirmation prompt.
- Distinctive: line 123
Never commit without explicit user approval
- Distinctive: line 124
Never include the AI agent (Claude, Codex, etc.) in the commit message
- Distinctive: line 125
Never include co-authorship in the commit message
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Conventional Commit
Goal
Analyze staged changes and generate a commit message following the Conventional Commits specification, adapted to project conventions when they exist.
Inputs you must collect before starting
| Input | Required | How to obtain |
| Staged changes | Yes | git diff --staged |
| Project conventions | No | Check commitlint config, CLAUDE.md, CONTRIBUTING.md |
| Type, scope, or intent | No | Ask the user if not clear from the diff |
Procedure
Step 1 — Check staged changes
Run git diff --staged. If empty, inform the user there are no staged changes and offer help with git add.
Step 2 — Summary of changed files
Run git diff --staged --stat for a summary of modified, added, or removed files.
Step 3 — Check project conventions
Look for project-specific commit configurations:
.commitlintrc,.commitlintrc.json,.commitlintrc.yml,commitlint.config.js,commitlint.config.tscommitlintsection inpackage.jsonCONTRIBUTING.md,CLAUDE.md- Recent commit history:
git log --oneline -5
If found, project conventions take precedence over default rules.
Step 4 — Analyze the diff
Read the full diff and identify:
- What was added, removed, or modified
- The intent behind the changes (new feature, bug fix, refactor, etc.)
- Which areas of the codebase were affected
Step 5 — Determine the commit type
Choose the appropriate type:
| Type | When to use |
feat | New feature for the user |
fix | Bug fix |
refactor | Code restructuring without changing behavior |
perf | Performance improvement |
style | Formatting, whitespace, semicolons (no logic change) |
test | Adding or fixing tests |
docs | Documentation only |
build | Build system, external dependencies |
ci | CI/CD configuration |
chore | Maintenance tasks that don't fit other types |
Step 6 — Determine the scope (optional)
Identify scope from the area of the codebase affected. Examples: auth, api, ui, db, config. Use scope only if it adds clarity.
Step 7 — Compose the message
Format:
<type>(<scope>): <description>
<optional body>
<optional footer>Description (subject line) rules:
- Maximum 72 characters
- Imperative mood ("add", not "added" or "adds")
- Lowercase first letter
- No period at the end
Body rules (only when needed):
- Default to no body. Most commits should be subject-only. Add a body only if the "why" is non-obvious from subject + diff (hidden constraint, surprising trade-off, non-local consequence).
- Hard cap: ≤ 4 lines, ≤ 300 characters total, single paragraph. If you need more, split into multiple commits.
- Wrap at 72 characters, separated from the description by a blank line.
- Explain the "why", not the "what". The diff already shows what changed — do not narrate it.
- Forbidden patterns: per-file or per-section enumeration ("Three changes:", "- File A now does X", "- File B now does Y"); restating the subject in prose; describing code structure ("the function now branches on..."); meta-commentary ("Result:", "Confirma?"); trailing questions.
- Bullets allowed only when listing 3+ genuinely independent concerns that share one "why". If you can write one sentence instead, do.
Footer rules (when applicable):
BREAKING CHANGE: <description>for backward-incompatible changesRefs: #<number>to reference issues or PRs
Step 8 — Present and confirm
- Present the message in a code block
- Wait for user approval
- After approval, execute
git commitwith the message
Constraints
- Follow the Conventional Commits spec strictly
- Never invent changes — only describe what the diff shows
- Subject line must be at most 72 characters, imperative mood, lowercase, no period
- Default to subject-only. A body is the exception, not the rule. When unsure, omit it.
- Body, if present, must be ≤ 4 lines and ≤ 350 characters, wrap at 72, separated by a blank line
- Never enumerate files or sections in the body — the diff is the enumeration
- Never end the body with a question or confirmation prompt; the confirmation lives outside the message
- Project conventions take precedence
- Include
BREAKING CHANGE:in the footer when the change breaks backward compatibility - Reference issues/PRs in the footer when the user mentions them
- Never commit without explicit user approval
- Never include the AI agent (Claude, Codex, etc.) in the commit message
- Never include co-authorship in the commit message
Output format
Present the commit message in a code block followed by a confirmation prompt. See examples in EXAMPLE.md.
Example request
- "Commit my changes"
- "Create a commit for the login fix"
- "Commit these changes as a feat"
- "Commit with scope api"
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.

