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?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sycatle-commit)
---
name: commit
description: Commit as small Conventional Commits that each build and explain why. Use whenever committing, and before pushing a branch or opening a pull request.
---
# Commit
History is read far more often than it is written: in a review, in a `git bisect`, by the next person
asking why this line exists. A small commit that explains itself answers them; a large "fix stuff"
commit makes them read the whole diff and guess.
## A good commit
- **One change.** A refactor, a feature and a formatting pass are three commits. If the message needs
"and", it is probably two.
- **It stands alone.** The project builds and its tests pass at every commit, so a bisect never lands on a
broken step. Tests go in the same commit as the code they cover: a test committed before its code
fails the build or the typecheck on its own, which is exactly the broken step a bisect lands on. When a
repository's history splits them, that is not a reason to keep doing it.
- **Conventional subject:** `<type>(<scope>)?: <what>`, with a type among feat, fix, docs, refactor, test,
chore, ci, build, perf, style, revert, and `!` for a breaking change. The git hook refuses anything else,
because release notes and versions are computed from it.
- **The body says why**: the problem, the reason for this approach, what was ruled out. The diff already
says what.
## Steps
1. Run `senior-mode check` (the `verify` skill) on what you are about to commit. Done when it passes.
2. Stage selectively: review `git diff --staged` and leave out what belongs to another change, debug
output, and anything generated you did not mean to touch.
3. Commit with a subject and a body. Done when the hooks accepted it.
## Hooks are the floor
The git hooks refuse a secret, a non-conventional subject and a direct push to the default branch.
**No secret committed**: when the secret scan fires, move the value to the environment or a secret store.
Never skip the hooks with `--no-verify`: fix what they report. A real false positive takes
`senior-mode: allow-secret` on its line, where the review will see it.