Check and fix commit messages against Conventional Commits 1.0.0 with ten rules (C001-C010) and safe auto-fix suggestions. Use when the user asks to write, review or validate a commit message, or to set up commit message rules.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Findings are printed sorted by line, then rule id, as C00x name: message (line N).
<type>[(scope)][!]: <description>
[body]
[footer(s)]!,
a colon, one space, then a description that starts with a non-space character.: or #.
A token is BREAKING CHANGE or a word made of letters, digits and - (for example Refs: #12, Closes #12).! or a footer token is BREAKING CHANGE or BREAKING-CHANGE.CRLF is converted to LF; everything from a git scissors line (# ---- >8 ----) onward is dropped;
lines starting with # are dropped; trailing blank lines are stripped. An empty result is C001.
Headers starting with Merge , Revert ", fixup! or squash! produce no findings by default.
The first line does not match the grammar. When C001 fires, only C001 and C007 are evaluated.
Updated the parser | good: fix: handle empty input in the parserfeat add parser (no colon) | good: feat: add parserThe type (compared in lowercase) is not in the configured list. Default list: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.
feature: add login | good: feat: add loginFix: correct rounding | good: fix: correct roundingThe header is longer than --max-header code points (default 72). Move detail to the body.
fix: correct rounding. | good: fix: correct roundingfeat(): add parser | good: feat(parser): add parser or feat: add parserThe second line of the message must be blank when a body or footer follows.
bad: good:
fix: correct rounding fix: correct rounding
Rounds half up now.
Rounds half up now.A line in the last paragraph that reads like a breaking-change footer (breaking change:,
Breaking-Change #1, in any case) but is not exactly BREAKING CHANGE or BREAKING-CHANGE.
Breaking change: v1 removed | good: BREAKING CHANGE: v1 removedOnly when --scopes is given: the scope is not in the list.
Only with --require-scope: the header has no scope.
A suggestion is printed only when applying these fixes, in order, makes the message lint clean: map type alias and lowercase it; add the missing space after the colon; drop one trailing period; insert the blank line after the header. If the result still has findings, no suggestion is made. Aliases: feature to feat, bugfix to fix, fixes to fix, doc to docs, tests to test.
Input is limited to 65,536 bytes. Only the header, footers and blank-line structure are checked; the quality of the description and body is a human judgement.