Make small, reviewable commits with clear messages and nothing unrelated in them. Use before committing, when splitting work into commits, or when asked to tidy a branch.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Commit Hygiene?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/naidx0-commit-hygiene)
---
name: commit-hygiene
description: Make small, reviewable commits with clear messages and nothing unrelated in them. Use before committing, when splitting work into commits, or when asked to tidy a branch.
---
# Commit hygiene
1. One change per commit: a fix, a slice of a feature or a refactor, never a mix.
2. Stage files by name and read the staged diff before committing. Leave out generated files, logs and anything secret.
3. The subject says what the change does, in under 72 characters; the body says why.
4. Run the project's checks before committing, and never skip its hooks.
5. Never rewrite history that someone else may have pulled.