Git Commit Message Format

lesson workflow active workflow/git-commit-format.md View on GitHub

Git Commit Message Format

Rule

All commit messages must follow Conventional Commits format with a type prefix, optional scope, and short description.

Context

When creating git commits in any workspace or repository.

Detection

Observable signals indicating incorrect commit format:

Pattern

type(scope): short description

Optional longer description explaining why,
not just what changed.

Common types: feat, fix, docs, style, refactor, test, chore

Examples:

feat(auth): add JWT-based authentication
fix(shell): preserve output when last line lacks trailing newline
docs(lessons): add absolute-paths lesson
refactor(context): migrate shell scripts to Python
test(tasks): add integration tests for task state machine
chore: update dependency lockfile

Breaking changes (use ! suffix and/or BREAKING CHANGE: footer):

feat(api)!: rename /v1/query to /v1/ask

BREAKING CHANGE: /v1/query endpoint removed; use /v1/ask instead.

With body (when context helps):

fix(api): handle rate limit errors gracefully

Add exponential backoff for 429 responses.
Includes retry logic with configurable max attempts.

Outcome

Following this pattern ensures:

Related

Match Keywords

conventional commits commit message format write commit message commit type prefix feat fix docs commit