# commitlint

> Lint commit messages against your team's commit convention

Source: https://talira.ai/catalog/commitlint-pcb6j4ak
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / git / hooks](https://talira.ai/categories/developer-tools/git/hooks), [developer tools / linting](https://talira.ai/categories/developer-tools/linting)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Plugins: yes[^2]
- Supports: [Agent Skills](https://talira.ai/standards/agent-skills.md)[^3], [Conventional Commits](https://talira.ai/standards/conventional-commits.md)[^4]
- Backed by: [conventional-changelog](https://talira.ai/orgs/conventional-changelog.md)

commitlint checks commit messages against a convention, such as Conventional Commits through its `@commitlint/config-conventional` preset, so a team's history stays consistent and tools that read it (changelogs, version bumps) keep working. It runs on git's `commit-msg` hook, usually through [Husky](https://talira.ai/catalog/husky-zpjapvjr.md), to reject a bad message as it's written, and in CI to check every commit in a pull request. Rules are configured in a file, shared as npm-installed configs and extended with plugins, and an interactive prompt helps write a valid message. It ships an agent skill and instructions so coding agents read the rules, validate a message and fix it when the hook rejects it. It runs on Node.js, Bun or Deno.

## Links

- Website: https://commitlint.js.org/
- GitHub: https://github.com/conventional-changelog/commitlint
- Docs: https://commitlint.js.org/guides/getting-started.html

## Problems it solves

- stop teammates pushing commit messages that don't follow Conventional Commits
- reject a badly formatted commit message before the commit is made
- check every commit message in a pull request in CI
- make my AI coding agent write commit messages that follow our convention

## Features

- lints commit messages on the commit-msg git hook
- CI checks for every commit in a pull request (GitHub Actions and others)
- shareable npm configs, including a Conventional Commits preset
- configurable rules and plugins
- interactive prompt for writing a valid message
- agent skill and AGENTS.md instructions for coding agents
- Node.js, Bun and Deno

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.86, momentum 0.65, community 1.00, backing 0.30, extensibility 0.40.

- last commit 6 days ago
- 166 commits in the last 90 days
- latest release v21.2.4 42 days ago
- 18.8k GitHub stars
- 310 contributors
- backed by conventional-changelog
- has a plugin system

## Related

- Works with [Husky](https://talira.ai/catalog/husky-zpjapvjr.md)

## Alternatives

- [Commitizen](https://talira.ai/catalog/commitizen-p1hxp7j0.md): Enforce commit message rules, bump versions and generate changelogs
- [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md): A framework for managing and maintaining multi-language pre-commit hooks.
- [Commitizen (cz-cli)](https://talira.ai/catalog/commitizen-cz-cli-1y9hrtcz.md): Prompt for every required commit field at commit time, the Node.js way
- [lint-staged](https://talira.ai/catalog/lint-staged-p1rk71x0.md): Run tasks like formatters and linters against files staged in Git
- [Husky](https://talira.ai/catalog/husky-zpjapvjr.md): Native Git hooks for npm projects, in 2 kB with no dependencies

## Sources

[^1]: https://github.com/conventional-changelog/commitlint/blob/master/license.md (checked 24 Nov 2026)
[^2]: https://commitlint.js.org/reference/plugins.md (checked 24 Nov 2026)
[^3]: https://commitlint.js.org/guides/ai-agents.md (checked 24 Nov 2026)
[^4]: https://github.com/conventional-changelog/commitlint (checked 24 Nov 2026)
