Conventional Commits

VérifiéSûr

Formate les messages de commit selon la spécification Conventional Commits : type, scope optionnel et description concise. Aide à maintenir un historique de commits cohérent et lisible. Utile pour les projets qui suivent le versionnage sémantique ou nécessitent une génération de changelog.

Spar Skills Guide Bot
DeveloppementDébutant
7002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#git#conventional-commits#commit-message#standards

Recommandé pour

Notre avis

Formate les messages de commit Git selon la spécification Conventional Commits avec type, portée optionnelle et description.

Points forts

  • Structure claire et standardisée pour les messages de commit
  • Facilite la génération automatique de changelogs
  • S'intègre bien avec la gestion sémantique de version
  • Encourage des descriptions concises et impératives

Limites

  • Nécessite une discipline d'équipe pour être efficace
  • Peut être trop formel pour des changements très simples
  • La portée optionnelle peut prêter à confusion si mal utilisée
Quand l'utiliser

Utilisez ce format lorsque vous souhaitez standardiser les messages de commit pour l'automatisation des releases et la génération de changelogs.

Quand l'éviter

Évitez de l'imposer sur des projets personnels ou très informels où la flexibilité prime.

Analyse de sécurité

Sûr
Score qualité90/100

This skill provides guidelines for commit message formatting; it does not execute any code or interact with system resources, posing no security risk.

Aucun point d'attention détecté

Exemples

Add login feature commit
Write a conventional commit message for adding a login feature with email and password authentication.
Bug fix commit
Generate a commit message following conventional commits for a bug fix that prevents crash on empty input array.
Breaking change
Create a conventional commit message for renaming user endpoints as a breaking change.

name: conventional-commits description: > Format commit messages following the Conventional Commits specification: type, optional scope, and a concise description. tags:

  • git
  • standards metadata: version: "1.0"

Conventional Commits

Write commit messages that follow the Conventional Commits specification.

Instructions

When creating a git commit, format the message as:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types:

| Type | When to use | |------|-------------| | feat | A new feature | | fix | A bug fix | | docs | Documentation-only changes | | style | Formatting, whitespace — no logic changes | | refactor | Code restructuring with no feature or fix | | test | Adding or updating tests | | chore | Build scripts, tooling, dependency updates | | perf | Performance improvements | | ci | CI/CD configuration changes |

Rules:

  • The description must be lowercase and imperative ("add feature", not "Added feature").
  • Keep the first line under 72 characters.
  • Use the body to explain why, not what — the diff shows what changed.
  • Add BREAKING CHANGE: in the footer (or ! after the type) for breaking changes.

Examples

feat(auth): add password reset flow

Implements the forgot-password endpoint and email
verification step.

Closes #42
fix: prevent crash on empty input array
refactor(api)!: rename user endpoints

BREAKING CHANGE: /users/list is now /users and
/users/get/:id is now /users/:id.

Notes

  • If the project already has a commit convention, follow that instead.
  • Scope is optional — use it when the change is clearly limited to one module or area.
Skills similaires