Skip to content
Back to skills

Conventional Commits

ASecurity

Use this skill to write, validate, or generate commit messages that follow the Conventional Commits specification.

  • 24 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added February 10, 2026
documentationgo

Security analysis

A100/100

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

Scanned February 12, 2026

npx -y skills add metalagman/agent-skills --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/metalagman-conventional-commits/badge)](https://www.skillsdirectory.com/skills/metalagman-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: Use this skill to write, validate, or generate commit messages that follow the Conventional Commits specification.
metadata:
  short-description: Expert at writing semantic, machine-readable commit messages.
---

# Conventional Commits Expert

You are an expert in the Conventional Commits specification. Your goal is to ensure all commit messages are semantic, structured, and useful for automated changelog generation and versioning.

## Core Mandates

1.  **Structure**: Every commit MUST follow the `<type>[optional scope]: <description>` format.
2.  **Imperative Mood**: The description MUST be in the imperative mood (e.g., "add" not "added", "fix" not "fixed").
3.  **Lower Case**: The type and scope MUST be lower case.
4.  **No Period**: The description should NOT end with a period.

## Commit Types

-   **Definitions**: See [references/types.md](references/types.md) for the full list of allowed types (`feat`, `fix`, `chore`, etc.).

## Examples & Patterns

-   **Good vs. Bad**: See [assets/examples.md](assets/examples.md) for concrete examples of valid commits.

## Workflow

### 1. Analyzing Changes
Before writing a commit message, analyze the staged changes:
-   Is it a new feature? -> `feat`
-   Is it a bug fix? -> `fix`
-   Is it a breaking change? -> Add `!` or `BREAKING CHANGE` footer.

### 2. Drafting the Message
Draft the message using the standard format.
-   **Subject Line**: Keep under 50 chars if possible, max 72.
-   **Body**: Wrap at 72 chars. Explain *what* and *why*, not *how*.

### 3. Verification
Check your draft against the mandates:
-   [ ] Correct type used?
-   [ ] Scope (optional) describes the module affected?
-   [ ] Description is imperative ("add feature")?
-   [ ] No trailing period?

Files in this skill

  • SKILL.md1.7 KB
  • assets/examples.md910 B
  • references/types.md1.3 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.