Skip to content
Edit this page View source of this page

Commitizen

Commitizen checks commit messages against Conventional Commits. The template connects it to Git's commit-msg hook in prek.toml, so Git can reject an invalid subject before recording the commit.

Write or check a subject

Start with a change type and a short description. Add a scope in parentheses when it helps readers find the affected area.

  • docs: clarify local setup explains a documentation change.
  • fix(cli): handle an empty config path describes a bug fix in the CLI.
  • feat: add JSON output describes a new capability.

When cz is available, you can check a proposed message without making a commit.

cz check --message "docs: clarify local setup"

The template's mise entry script installs the standalone cz command with uv when uv is available and cz is missing. Prek runs the pinned hook in its own environment. If commits are being accepted without a check, verify that the hook is installed in your checkout.

Commitizen check command ยท Git commit hooks