Skip to content
Back to skills

Writing Commit Messages

ASecurity

Write a commit message that describes the focus of the change, not its supporting work. Use when committing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsdocumentation

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add elitongadotti/cockpit --skill writing-commit-messages --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Commit Messages?

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

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

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: writing-commit-messages
description: Write a commit message that describes the focus of the change, not its supporting work. Use when committing.
when_to_use: writing a commit, "commit this", amending a message, squashing
---
# Writing Commit Messages
The subject line answers "what changed and why", in the imperative. The body is
only for what the subject can't hold: the reason, the trade-off, the thing that
will look wrong to whoever reads the diff later.

**Describe the focus, not the scaffolding.** When the commit isn't itself a test
or docs change, keep test and doc edits out of the subject and body — they're
supporting work.

- Tests: `*_test.*`, `*.bats`, `tests/`, `test/`.
- Docs: `*.md`, `README*`, `docs/`, and comment-only diffs.
- Never append "and tests", "+ docs", "with documentation" to a subject. No body
  paragraph enumerating test or doc files.
- If a test or doc change *explains* the focus — a test isolating the bug being
  fixed — describe the behavior, not the artifact.

No "fix stuff", no "wip", no restating the diff line by line. If you can't name
the focus in one line, the commit is probably two commits.

## Pairs with

- `pr-from-diff` — same discipline, larger unit: say what a reader needs, skip the noise.

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.

Comments

Loading comments…

Newsletter

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