About git-commit-convention
git-commit-convention guides agents through planning and validating commits in the Conventional Commits 1.0.0 format. It covers commit boundaries, message structure, version implications, and AI attribution.
Key features
- 01Plans commit boundaries from the change set
- 02Validates messages against staged changes
- 03Explains format, types, and version implications
- 04Covers breaking changes and footer syntax
- 05Requires AI co-author attribution when applicable
Use cases
- 01Splitting a large change set into coherent commits
- 02Checking a message against its staged diff
- 03Recording breaking changes and issue references
- 04Attributing agent contributions in commits
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ edram/ skills --skill git-commit-conventionAfter installing, type/git-commit-conventionin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/core-format.mdcore-planning.mdcore-types.mdfeatures-ai-attribution.mdfeatures-breaking.mdfeatures-footers.mdDetails
From the project READMEConventional Commits 1.0.0 defines a human-readable and machine-parseable commit message format. Before writing a message, plan the commit boundary from the complete change set; a multi-round conversation may produce several coherent commits rather than one catch-all commit. In the spec, feat implies MINOR, fix implies PATCH, and breaking changes imply MAJOR; other type-to-version mappings are project conventions.
- Only
typeanddescriptionare required; everything else is optional - Scope narrows the affected area:
feat(auth):,fix(api): - Breaking changes use
!suffix orBREAKING CHANGE:footer (or both) - Footer tokens follow Git trailer convention
- Default to English, but match the project's existing convention — check
git logand follow whatever language recent commits use - Decide commit boundaries from purpose and dependency, not from the number of conversation rounds
- Validate each message against the staged diff: every staged change must belong to the stated purpose, and every material claim must be supported by the diff
- When asked to commit, state the proposed commit plan before creating any commit; then validate each staged commit separately
<type>[optional scope][!]: <description>
[optional body]
[optional footer(s)]
Core
| Topic | Description | Reference |
|---|---|---|
| Commit Planning | Inspect, group, split, and validate changes before committing | core-planning |
| Format | Full grammar, header/body/footer rules, length limits | core-format |
| Types | Common types, project-level SemVer impact, and when to use each | core-types |
Features
| Topic | Description | Reference |
|---|---|---|
| Breaking Changes | ! syntax and BREAKING CHANGE footer — when and how | features-breaking |
| Footers | Token format rules, issue references, common tokens | features-footers |
| AI-Generated Changes | Required Co-Authored-By attribution whenever an agent contributes to the commit | features-ai-attribution |