# Git Commit Convention

> Reference for writing structured git commit messages. Use when asked to write a commit, generate a commit message, review commit style, or work with conventional commits format.

- Skill: `edram/git-commit-convention` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add edram/git-commit-convention`
- Raw SKILL.md: https://api.skillmd.com/api/skills/edram/git-commit-convention/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: edram (https://skillmd.com/u/edram)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/edram/git-commit-convention

---


Conventional Commits 1.0.0 — a specification for writing commit messages that are human-readable and machine-parseable. Maps directly to Semantic Versioning: `feat` → MINOR bump, `fix`/`perf` → PATCH bump, breaking changes → MAJOR bump.

- Only `type` and `description` are required; everything else is optional
- Scope narrows the affected area: `feat(auth):`, `fix(api):`
- Breaking changes use `!` suffix or `BREAKING CHANGE:` footer (or both)
- Footer tokens follow Git trailer convention
- Default to English, but match the project's existing convention — check `git log` and follow whatever language recent commits use

```
<type>[optional scope][!]: <description>

[optional body]

[optional footer(s)]
```

## Core

| Topic | Description | Reference |
|-------|-------------|-----------|
| Format | Full grammar, header/body/footer rules, length limits | [core-format](references/core-format.md) |
| Types | All 11 types with SemVer impact and when to use each | [core-types](references/core-types.md) |

## Features

| Topic | Description | Reference |
|-------|-------------|-----------|
| Breaking Changes | `!` syntax and `BREAKING CHANGE` footer — when and how | [features-breaking](references/features-breaking.md) |
| Footers | Token format rules, issue references, common tokens | [features-footers](references/features-footers.md) |
| AI-Generated Changes | `Co-Authored-By` attribution for agent-authored commits — mandatory once it applies, fixed value format, and what not to add | [features-ai-attribution](references/features-ai-attribution.md) |

