conventional-commit-writer
Skill0 starsChanged 6 months agoMITView on GitHub
Writes Conventional Commits messages from a diff or change description, choosing the correct type and scope, writing an imperative subject, and flagging breaking changes. Use when the user asks for a commit message, wants to commit staged changes, or mentions conventional commits, semantic commits, or commit conventions.
In this repository11 other files it gives its agents.
- a11y-auditorSkill
- api-design-reviewerSkill
- changelog-writerSkill
- dockerfile-hardenerSkill
- env-secrets-auditorSkill
- error-message-explainerSkill
- pr-description-writerSkill
- readme-generatorSkill
- regex-builderSkill
- sql-query-optimizerSkill
- test-writerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 14
Write a commit message that follows the Conventional Commits 1.0.0 spec, so history is readable and tools can derive versions and …
- Distinctive: line 29
If you have repo access, base the message on the actual diff, not assumptions:
- Distinctive: line 35
If the diff is empty, note there are no staged changes and ask what was changed (or read the unstaged diff).
- Distinctive: line 60
Keep scopes from a small, consistent set.
- Distinctive: line 65
No capital first letter after the colon, no trailing period.
- Distinctive: line 71
Add a body when the *why* isn't obvious from the subject.
≈ “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 Writer
Write a commit message that follows the Conventional Commits 1.0.0 spec, so history is readable and tools can derive versions and changelogs automatically.
Format
<type>(<optional scope>): <subject>
<BLANK LINE>
<optional body — what and why, not how>
<BLANK LINE>
<optional footer(s) — BREAKING CHANGE, Refs, Closes>Step 1 — Inspect the change
If you have repo access, base the message on the actual diff, not assumptions:
Staged changes: !`git diff --cached --stat`If the diff is empty, note there are no staged changes and ask what was changed (or read the unstaged diff).
Step 2 — Pick the type
| Type | Use for | SemVer impact |
feat | a new user-facing feature | MINOR |
fix | a bug fix | PATCH |
docs | documentation only | none |
style | formatting, whitespace, no logic change | none |
refactor | code change that is neither a fix nor a feature | none |
perf | a change that improves performance | PATCH |
test | adding or fixing tests | none |
build | build system or dependencies (npm, cargo, docker) | none |
ci | CI configuration and scripts | none |
chore | maintenance that doesn't touch src or tests | none |
revert | reverts a previous commit | varies |
Pick the single most important type. If a change is both a feature and a fix, prefer feat
and describe the fix in the body.
Step 3 — Scope (optional but useful)
A noun in parentheses naming the affected area: feat(auth):, fix(api):, docs(readme):.
Keep scopes from a small, consistent set. Omit the scope rather than inventing a vague one.
Step 4 — Write the subject
- Imperative mood: "add", "fix", "remove" — not "added", "fixes", "adding".
- No capital first letter after the colon, no trailing period.
- Aim for ≤50 characters; hard cap 72.
- Complete the sentence: "If applied, this commit will
<subject>."
Step 5 — Body and footers (when warranted)
Add a body when the why isn't obvious from the subject. Wrap at ~72 columns. Explain the motivation and contrast with previous behavior; the code already shows the how.
Footers reference issues and declare breaking changes:
Closes #123
Refs #456
Reviewed-by: Jane DoeStep 6 — Breaking changes
Two equivalent ways to mark a breaking change; use the footer for tooling and the ! for
visibility:
feat(api)!: drop support for legacy v1 auth tokens
BREAKING CHANGE: v1 bearer tokens are no longer accepted. Clients must
migrate to OAuth2 access tokens. See MIGRATION.md.A BREAKING CHANGE: footer (or !) signals a MAJOR version bump regardless of type.
Examples
Input: Added a /healthz endpoint that returns 200 when the DB is reachable.
Output:
feat(api): add /healthz readiness endpoint
Returns 200 when the database connection is live, 503 otherwise, so the
load balancer can route around unhealthy instances.Input: Fixed dates rendering one day off due to timezone handling. Output:
fix(reports): use UTC to prevent off-by-one dates
Report timestamps were formatted in local time, shifting dates across the
midnight boundary. Format consistently in UTC.
Closes #842Input: Bumped lodash and removed an unused helper. Output:
chore(deps): upgrade lodash to 4.17.21 and drop unused util
- Patches a prototype-pollution advisory
- Removes the now-unreferenced deepClone helperCommon edge cases
- Mixed unrelated changes: recommend splitting into separate commits; if that's not possible, lead with the most significant type and enumerate the rest in the body.
- Revert:
revert: <subject of reverted commit>with a bodyThis reverts commit <sha>. - WIP/merge commits: Conventional Commits is for meaningful history; squash WIP commits before merging.
- No issue tracker: omit footers rather than inventing references.
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.

