conventional-commits

conventional-commits

Standardized commit message format following Conventional Commits specification. Use this skill when creating commits, reviewing commit history, or generating changelogs.

0Sterne
0Forks
Aktualisiert 1/17/2026
SKILL.md
readonlyread-only
name
conventional-commits
description

Standardized commit message format following Conventional Commits specification. Use this skill when creating commits, reviewing commit history, or generating changelogs.

Conventional Commits

Standardized commit message format for readable history and automated changelogs.

When This Skill Activates

  • Creating git commits
  • Reviewing commit message quality
  • Generating changelogs
  • Setting up commit hooks

Commit Message Format

<type>(<scope>): <subject>

[optional body]

[optional footer(s)]

Types

Type Description Changelog Section
feat New feature Added
fix Bug fix Fixed
docs Documentation only -
style Formatting, no code change -
refactor Code change, no feature/fix Changed
perf Performance improvement Changed
test Adding/updating tests -
chore Build, deps, config -
ci CI/CD changes -
revert Revert previous commit -

Scope (Optional)

Indicates the area affected:

feat(auth): add OAuth2 login
fix(api): handle null response
refactor(contracts): extract base class

Common scopes:

  • Component/module name
  • contracts, frontend, api
  • deps, config, ci

Subject Line Rules

  • Imperative mood: "add" not "added" or "adds"
  • Lowercase first letter
  • No period at end
  • Max 50 characters (72 hard limit)

Good:

feat(market): add limit order support
fix(vault): prevent double withdrawal
refactor(sdk): simplify type exports

Bad:

feat(market): Added limit order support.   # past tense, period
Fix vault bug                              # not specific
update stuff                               # vague

Body (Optional)

Explain the "why" when not obvious:

fix(settlement): handle edge case in payout calculation

The previous implementation failed when market resolved
to INVALID with partial fills. Now correctly refunds
the proportional collateral.

Breaking Changes

Use ! after type or BREAKING CHANGE: footer:

feat(api)!: change response format to v2

BREAKING CHANGE: Response now returns `data` wrapper.
Clients must update parsing logic.

Footer References

Link to issues/PRs:

fix(auth): resolve session timeout issue

Closes #123
Refs #456

Examples

Simple Feature

feat(orderbook): add price level aggregation

Bug Fix with Context

fix(crossing): prevent self-trade in atomic match

Orders from same address were incorrectly matching
against each other when prices crossed.

Closes #89

Refactor

refactor(contracts): extract shared validation logic

Move duplicate checks from Market and Vault into
BaseValidation contract.

Breaking Change

feat(sdk)!: require explicit chain ID in config

BREAKING CHANGE: chainId is now required in SDK init.
Auto-detection removed for security reasons.

Migration: Add chainId to your SDK configuration.

Chore/Dependencies

chore(deps): upgrade viem to 2.0

chore(ci): add gas snapshot to PR checks

Quick Reference

feat:     New feature (MINOR version bump)
fix:      Bug fix (PATCH version bump)
!:        Breaking change (MAJOR version bump)
docs:     Documentation
style:    Formatting
refactor: Code restructure
perf:     Performance
test:     Tests
chore:    Maintenance

Commit Hooks Setup

Add to .husky/commit-msg:

#!/bin/sh
npx commitlint --edit $1

Or with simple regex check:

#!/bin/sh
if ! grep -qE "^(feat|fix|docs|style|refactor|perf|test|chore|ci|revert)(\(.+\))?(!)?: .{1,50}" "$1"; then
  echo "Invalid commit message format"
  exit 1
fi

Changelog Generation

Commits automatically map to changelog:

Commit Changelog
feat(x): add Y Added: Y
fix(x): resolve Z Fixed: Z
refactor(x): improve W Changed: W
feat!: breaking BREAKING: ...

You Might Also Like

Related Skills

create-pr

create-pr

170Kdev-devops

Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.

n8n-io avatarn8n-io
Holen

Guide for performing Chromium version upgrades in the Electron project. Use when working on the roller/chromium/main branch to fix patch conflicts during `e sync --3`. Covers the patch application workflow, conflict resolution, analyzing upstream Chromium changes, and proper commit formatting for patch fixes.

electron avatarelectron
Holen
pr-creator

pr-creator

92Kdev-devops

Use this skill when asked to create a pull request (PR). It ensures all PRs follow the repository's established templates and standards.

google-gemini avatargoogle-gemini
Holen
clawdhub

clawdhub

87Kdev-devops

Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.

moltbot avatarmoltbot
Holen
tmux

tmux

87Kdev-devops

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

moltbot avatarmoltbot
Holen
create-pull-request

create-pull-request

57Kdev-devops

Create a GitHub pull request following project conventions. Use when the user asks to create a PR, submit changes for review, or open a pull request. Handles commit analysis, branch management, and PR creation using the gh CLI tool.

cline avatarcline
Holen