Instruction file imported from cleverb/agent-profiler (
.cursor/rules/commit-messages.mdc). Copyright stays with the author.
Commit messages
When proposing or composing a git commit message for this repo:
commitlint.config.jsis authoritative — it extends@commitlint/config-conventionalbut overridestype-enumandsubject-case.- Types allowed only:
feat,fix,docs,refactor,style,test,revert,chore. Do not use common extras such asbuild,ci, orperfunless the enum in config is expanded. - Subject: sentence-case after the colon (not the all-lowercase subject style often shown in conventional-commit tutorials).
- Body lines: when the message has a body, each line ≤ 100 characters (
body-max-line-lengthfrom conventional config). Wrap bullets; indent continuations if needed. - Full detail + examples: see
AGENTS.md→ Commit messages (commitlint).
Validate before git commit (pipe the full message, not only the header):
printf '%s\n' '<type>: <Subject>
- Bullet line under 95 chars.
- Long bullet wrapped on the next line with leading spaces for
continuation.' | npx commitlint