# Conventional Commits explained, with examples

Canonical: [Conventional Commits explained, with examples](https://contextingo.com/blog/conventional-commits-explained)

Locale: en

Purpose: Conventional Commits is a commit message format: type, optional scope, description. Examples, breaking changes, and links to versions and changelogs.

Content updated: 2026-10-22

Source revision: content.ts 2026-10-22

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/blog.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

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

- `feat` adds a feature (a minor version in SemVer).
- `fix` fixes a bug (a patch version).
- `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore` for the rest.
- A `!` after the type, or a `BREAKING 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 values
```

## Why 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

- [Conventional Commits 1.0.0](https://www.conventionalcommits.org)

Related: [semantic versioning explained](/blog/semantic-versioning-explained) and [a changelog that helps](/blog/changelog-that-helps).

## Questions

### Do I need a tool to enforce it?

A commit-message linter helps. Without one, review catches most mistakes.

### Does it replace a changelog?

It can feed one, but users still need entries written for them.
