Skip to content
Back to skills

Writing Commit Messages

ASecurity

Writes a git commit message for staged changes with a 50/72 subject and body, a Conventional Commits type, footers, and issue citations, keeping any subject, type, or body line the caller fixes byte for byte. Use when the user says "write a commit message", or when the user explicitly asks for a commit message. Never infer from staged changes or a request to commit.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add bostonaholic/skills --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/bostonaholic-writing-commit-messages/badge)](https://www.skillsdirectory.com/skills/bostonaholic-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: Writes a git commit message for staged changes with a 50/72 subject and body, a Conventional Commits type, footers, and issue citations, keeping any subject, type, or body line the caller fixes byte for byte. Use when the user says "write a commit message", or when the user explicitly asks for a commit message. Never infer from staged changes or a request to commit.
effort: low
---

# Writing commit messages

- Read the staged diff (`git diff --cached`) and the recent subjects
  (`git log --oneline -10`) before you write.
- A caller can fix the subject, the type, or a body line, such as a plan
  citation. Use each fixed part byte for byte, even when it breaks a rule
  below, and apply the rules only to the parts you write.
- Write the message per [commit messages](references/messages.md), and the
  prose per the [writing standards](shared/writing.md).
- When asked to commit, write the message to a file with the file-writing
  tool, then run `git commit -F <message-file>`, never a bare `git commit`.
  Never run `git add -p` or `git add -i`: they open a prompt.
- Report the full message.

Files in this skill

  • SKILL.md1.1 KB
  • agents/openai.yaml220 B
  • references/messages.md1.9 KB
  • shared/writing.md1.8 KB

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.