conventional-commit
Skill2 starsChanged 2 months agoMITView on GitHub
Use when creating atomic git commits adhering to the Conventional Commits specification, staging selective hunks, or writing commit messages. Don't use for merge commits or branch cleanup.
- Reads credentials
20 other projects use a version of this.
Adopted by
Most recently taken up by
- NethServer/agentstheir own version, first seen Oct 5, 2026
- rlespinasse/agent-skillstheir own version, first seen Oct 4, 2026
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- navikt/copilottheir own version, first seen Sep 14, 2026
- ZRMYDYCG/ClaudeCodetheir own version, first seen Sep 13, 2026
- dbrennand/skillstheir own version, first seen Aug 30, 2026
Used with
Projects with it also use api-design and grill-me.
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.
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 3 projects that use this
AWSSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- github/awesome-copilot★ 40ksame name
- termio-sh/termio★ 538same name
- navikt/copilot★ 54same name
- marcelorodrigo/agent-skills★ 19same name
- marc-ing/marc-skills★ 14same name
- rlespinasse/agent-skills★ 12same name
- flpbalada/fb-skills★ 8same name
- jjxmonster/skills★ 8same name
- jgamaraalv/delivery-loop★ 4same name
- EndogenAI/dogma★ 2same name
10 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 repository24 other files it gives its agents.
- brainstormingSkill
- codebase-designSkill
- code-reviewSkill
- copy-web-designSkill
- executing-plansSkill
- frontend-designSkill
- i18nSkill
- laravelSkill
- prototypeSkill
- reactSkill
- s13nSkill
- security-auditSkill
- summarizeSkill
- systematic-debuggingSkill
- technical-writingSkill
- testing-patternsSkill
- ui-motionSkill
- ui-ux-reviewSkill
- unslopSkill
- upsert-codebase-docsSkill
- verification-before-completionSkill
- workspace-onboardingSkill
- writing-for-agentsSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 16 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
16
Distinctive
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
- could be automatic: a setting could enforce it
- Distinctive: line 9
Commit the working tree as atomic commits following the Conventional Commits 1.0.0 specification with concise imperative subjects.
- Distinctive: line 13
Do not add a co-author trailer unless explicitly requested or mandated by repository policy.
- Distinctive: line 14
Never use git commit -a. Stage files deliberately so unrelated edits cannot leak into history.
- Distinctive: line 15
Never run git add . or git add -A blindly.
- Distinctive: line 16
Never commit without reading the diff.
- Distinctive: line 18
Never amend, rebase, or force-push commits created in previous sessions.
- Distinctive: line 25
Run status and diff inspections to evaluate the tree:
- Distinctive: line 46
Ensure one logical change per commit so each commit remains independently revertable.
- Distinctive: line 54
Test additions for separate features are mixed together.
- Distinctive: line 56
Do not split when changes form a single atomic unit, such as a bug fix accompanied by its regression test.
- Distinctive: line 68
When a single file contains mixed concerns, stage individual hunks interactively:
- Very specific: line 74
Use s to split hunks into the smallest possible units.
- Distinctive: line 91
Use when the subject line alone conveys complete intent, or when the user / repository standard requires compact commit history.
- Distinctive: line 92
Do NOT include empty lines, bodies, descriptions, or footers.
- Very specific: line 106
Use when detailing complex reason, migration guides, breaking changes (BREAKING CHANGE:), or tracking issue references (Closes: #123).
- Distinctive: line 123
Place the trailer at the bottom of the footers block separated by a blank line:
- Distinctive: line 141
Commit using a heredoc so multi-line messages and blank lines are preserved:
- Distinctive: line 171
If co-author trailers were not requested, ensure no accidental trailers were committed:
“Common” is measured: kept by at least 6 in 10 of the 18 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
Conventional commit
Commit the working tree as atomic commits following the Conventional Commits 1.0.0 specification with concise imperative subjects.
Invariants
- Do not add a co-author trailer unless explicitly requested or mandated by repository policy. Never fabricate an identity.
- Never use
git commit -a. Stage files deliberately so unrelated edits cannot leak into history. - Never run
git add .orgit add -Ablindly. Inspect the working tree diff first. - Never commit without reading the diff. The commit message must describe actual changes on disk.
- Consult
references/commit-types.mdfor standard commit types. Never invent custom types or fake scopes. - Never amend, rebase, or force-push commits created in previous sessions.
- Consult
references/resolving-conflicts.mdto resolve merge or rebase conflicts before staging.
Workflow
Step 1. Inspect before staging
Run status and diff inspections to evaluate the tree:
git status --short --branch
git diff --stat
git diff --cached --statFor large diffs, read changes file by file:
git diff -- <path>
git diff --cached -- <path>Identify any credential files (.env, *.pem, credentials.json) or build output (dist/, build/). If secrets are present, unstage them immediately using git restore --staged <path> and alert the user.
Completion criterion. The diff and status are inspected, secrets and build artifacts are unstaged, and the change boundary is identified.
Step 2. Decide commit count
Ensure one logical change per commit so each commit remains independently revertable.
Split the changes when:
- The working tree spans multiple commit types, such as
featalongsidefix. - Changes touch unrelated subsystems that belong in separate reviews.
- A mechanical formatting sweep is mixed with behavioral code. Always split these, because reviewers cannot spot logic changes inside wide formatting diffs.
- Dependency manifest updates are mixed with code consuming the dependency.
- Test additions for separate features are mixed together.
Do not split when changes form a single atomic unit, such as a bug fix accompanied by its regression test.
Completion criterion. A planned commit count where each planned commit contains exactly one logical, revertable change.
Step 3. Stage one logical change
Stage specific files cleanly:
git add <path1> <path2>When a single file contains mixed concerns, stage individual hunks interactively:
git add -p <path>Use s to split hunks into the smallest possible units. Verify staged contents before writing the commit message:
git diff --cached --stat
git diff --cachedCompletion criterion. Only the specific files or hunks for the target logical change appear in git diff --cached.
Step 4. Choose format mode and compose message
Determine whether the project or user prefers oneline or multiline commits:
Format Options
- Oneline Mode (Single-line):
- Format:
<type>[optional scope]: <description> - Use when the subject line alone conveys complete intent, or when the user / repository standard requires compact commit history.
- Do NOT include empty lines, bodies, descriptions, or footers.
- Example:
feat(ui): add custom-select blade component
- Format:
- Multiline Mode:
Format:
<type>[optional scope][!]: <description> [optional body] [optional footer(s)]- Use when detailing complex reason, migration guides, breaking changes (
BREAKING CHANGE:), or tracking issue references (Closes: #123).
Rules for message components
Rules for message components:
- Type. Pick one standard type documented in
references/commit-types.md(feat,fix,refactor,perf,test,build,ci,docs,style,chore,revert). - Scope. Add a scope only when changes are isolated to a single bounded module, package, or directory. Use lowercase kebab-case naming, such as
fix(auth):orfeat(api):. Omit the scope for repository-wide changes. - Breaking change marker. Add
!immediately before the colon when upgrading requires consumers to modify their code. Always pair!with aBREAKING CHANGE:footer detailing the migration. - Description. Use imperative present tense (
addinstead ofadded,fixinstead offixes). Start with lowercase, omit trailing periods, and keep the line under 72 characters. - Body. Optional. Wrap at 72 characters. Explain the motivation and constraints rather than restating the diff.
- Footers. Optional. Include issue references (
Closes: #123) or migration guides (BREAKING CHANGE: payload key renamed to data).
Optional co-author trailer:
- Include a co-author trailer only when the user requests it or repository guidelines require attribution.
- Resolve identity strictly from real sources, including explicit user prompt, git configuration (
git config --get coauthor.name), or existing repository history. If no real identity exists, omit the trailer. - Place the trailer at the bottom of the footers block separated by a blank line:
Co-authored-by: Name <email@example.com>Completion criterion. A commit message matching Conventional Commits syntax with a lowercase imperative subject under 72 characters.
Step 5. Commit
For Oneline Commits (Single-line):
git commit -m "feat(ui): add custom-select blade component"For Multiline Commits:
Commit using a heredoc so multi-line messages and blank lines are preserved:
git commit -F - <<'EOF'
fix(auth): reject expired refresh tokens on rotation
Validate expiry timestamp before generating a replacement token pair.
Returns 401 instead of propagating stale sessions.
Closes: #341
EOFCompletion criterion. A newly minted git commit recorded in HEAD with the exact drafted message.
Step 6. Repeat and verify
Loop back to Step 1 until the working tree is clean. Validate the resulting git history:
git status --short
git log --oneline -5Verify subjects mechanically:
git log --format='%s' -5 | grep -vE '^[a-z]+(\([a-z0-9-]+\))?!?: .+$' && echo 'INVALID SUBJECTS' || echo 'all subjects valid'If co-author trailers were not requested, ensure no accidental trailers were committed:
git log --format='%B' -5 | grep -iE 'co-authored-by|generated with' && echo 'UNWANTED TRAILER' || echo 'clean'Completion criterion. Working tree status is completely clean and the subject verification command returns all subjects valid.
Common mistakes
| Mistake | Consequence | Correct approach |
Running git add . indiscriminately | Bundles unrelated edits and generated files | Stage specific paths or use git add -p |
Vague subject like fix: bug fix | Changelog provides zero actionable context | Describe what was repaired, like fix(cart): clear discounts on logout |
| Scope used on broad sweep | Misrepresents change blast radius | Omit scope on global changes |
Adding ! without breaking footer | Leaves consumers without migration details | Always provide a BREAKING CHANGE: footer |
| Fabricating co-author identity | Injects false attribution into permanent git log | Omit trailer when no identity is provided |
| Merging formatting and logic | Hides logic changes during code review | Split into a style: or refactor: commit first |
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.

