conventional-commits

Enforces Atomic Conventionals Commits with git add-p and semantic formatting.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gakonst/dotfiles --skill conventional-commits-gakonst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: conventional-commits
Source: https://github.com/gakonst/dotfiles/tree/main/.codex/skills/conventional-commits
Command: npx skills add https://github.com/gakonst/dotfiles --skill conventional-commits-gakonst

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of messy, unparseable git commit history that hinders changelog generation, semantic versioning, and code review. It enforces the Conventional Commits specification, ensuring each commit represents one atomic behavior change, making project history clear and automated tooling reliable.

Core Features & Use Cases

  • Atomic Change Enforcement: Guides users to split mixed changes into single, atomic behavior units using git add -p, preventing "monolithic" commits.
  • Semantic Commit Formatting: Prescribes the <type>[scope]: <imperative> format for commit messages, enabling automated changelog generation and semantic versioning.
  • Pre-Commit Verification: Encourages verifying staged changes (git diff --cached) against the intended commit message before committing, reducing errors.
  • Use Case: When a developer has simultaneously fixed a bug and added a new feature, this Skill guides them to use git add -p to create two separate, semantically correct commits: one for the fix and one for the feat.

Quick Start

When you have mixed changes in your working directory, use 'git add -p' to stage related hunks for a single atomic behavior change, then commit with a Conventional Commit message like 'feat(auth): add magic-link login'.