Conventional Commits is a specification for commit messages. Its structure makes history readable by people and by tools.
Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Types
featadds a feature (a minor version in SemVer).fixfixes a bug (a patch version).docs,style,refactor,perf,test,build,ci,chorefor the rest.- A
!after the type, or aBREAKING CHANGE:footer, marks a breaking change (a major version).
Examples
feat(upload): reject files over 100 MB
fix(login): accept emails with a plus sign
refactor(billing)!: rename invoice status valuesWhy it works with agents
A format is easy to follow when it is written down. Put it in the instruction file, and agents will produce consistent messages. The body should say why, not only what.
Source
Related: semantic versioning explained and a changelog that helps.