Conventional commits

From metalagman/agent-skills · View interactive version

Conventional commits is an AI agent skill from the GitHub repository metalagman/agent-skills. Use this skill to write, validate, or generate commit messages that follow the Conventional Commits specification.

How to use this skill

Skill file

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

Examples & Patterns

Workflow

1. Analyzing Changes

Before writing a commit message, analyze the staged changes:

2. Drafting the Message

Draft the message using the standard format.

3. Verification

Check your draft against the mandates:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.