Skip to content
Back to skills

Commit

ASecurity

Commit as small Conventional Commits that each build and explain why. Use whenever committing, and before pushing a branch or opening a pull request.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 24, 2026
developmentgogit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Sycatle/senior-mode --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sycatle-commit/badge)](https://www.skillsdirectory.com/skills/sycatle-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.