Skip to content
Back to skills

Commit Message

ASecurity

Write a conventional commit message from the actual diff — subject ≤50 chars, honest body.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Ashutosh0428/pi-agent --skill commit-message --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Message?

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

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

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-message
description: Write a conventional commit message from the actual diff — subject ≤50 chars, honest body.
trigger: when the user asks for a commit message or to commit changes
---
## When to use
The user asks for a commit message, or asks you to commit staged work.

## How
1. Look at the real change first: `git diff` / `git status` via the git tool
   (or read the files just edited). Never write from memory of the chat.
2. Format — Conventional Commits:
   - `type(scope): subject` — type ∈ feat/fix/docs/refactor/test/build/ci/chore.
   - Subject ≤50 chars, imperative mood ("add", not "added"), no period.
   - Body only when the *why* isn't obvious from the subject — wrap at 72.
3. One logical change per message; if the diff mixes concerns, say so and
   suggest splitting.
4. Breaking change → `!` after type/scope + `BREAKING CHANGE:` footer.

## Avoid
- Describing the diff line-by-line — the diff already shows *what*.
- Vague subjects: "fix stuff", "update code", "wip".
- Inventing scope names not used in the repo's history (`git log --oneline`
  shows the convention).

## Done well
`git log --oneline` reads like a changelog: each subject states one change
precisely, and bodies explain non-obvious whys.

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 ai-agents →

Comments

Loading comments…

Newsletter

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