Skip to content
Back to skills

Conventional Commits

ASecurity

The Conventional Commits v1.0.0 grammar. Use when writing, formatting, or validating a git commit message so it declares type, optional scope, description, body, and breaking-change footer correctly.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 1, 2026
ai-agentsgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 1, 2026

npx -y skills add matthews-wong/claude-code-plugins --skill conventional-commits --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conventional Commits?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conventional Commits
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/matthews-wong-conventional-commits/badge)](https://www.skillsdirectory.com/skills/matthews-wong-conventional-commits)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conventional-commits
description: The Conventional Commits v1.0.0 grammar. Use when writing, formatting, or validating a git commit message so it declares type, optional scope, description, body, and breaking-change footer correctly.
---

# Conventional Commits

A commit message MUST follow this structure:

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

[optional body]

[optional footer(s)]
```

## Rules

- **type** — one of: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`,
  `test`, `build`, `ci`, `chore`, `revert`. `feat` and `fix` map to semver
  minor and patch respectively.
- **scope** — optional noun in parentheses naming the affected area, e.g.
  `feat(auth):`.
- **description** — imperative mood, lower-case start, no trailing period,
  ideally <= 72 characters.
- **body** — optional, separated by one blank line; explains *why* and *what*.
- **breaking change** — signal with a `!` before the colon
  (`feat(api)!: ...`) and/or a `BREAKING CHANGE: <detail>` footer. Either
  triggers a semver major bump.
- **footers** — `Token: value` or `Token #value` (e.g. `Refs: #123`,
  `Reviewed-by: name`). `BREAKING CHANGE` is the only multi-word token.

## Examples

```
feat(parser): add array literal support
fix: prevent race condition on token refresh
refactor(store)!: drop deprecated sync API

BREAKING CHANGE: syncNow() is removed; use flush() instead.
```

See `reference/spec-details.md` for edge cases, revert format, and validation
regex. See `reference/type-guide.md` for choosing the right type.

Files in this skill

  • SKILL.md1.5 KB
  • reference/spec-details.md1.2 KB
  • reference/type-guide.md954 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…