Skip to content
Back to skills

Commit Message

ASecurity

Writes a Conventional Commits message from your staged changes, shows it to you and commits only after you say yes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --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/workspace-templates-commit-message/badge)](https://www.skillsdirectory.com/skills/workspace-templates-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: Writes a Conventional Commits message from your staged changes, shows it to you and commits only after you say yes.
argument-hint: "[optional scope or ticket id]"
user-invocable: true
disable-model-invocation: true
---

Write a commit message for the staged changes. Extra context from the user: $ARGUMENTS

1. Run `git diff --staged --stat` and then `git diff --staged`. If nothing is staged, stop and say so. Do not stage anything yourself.
2. Run `git log -n 10 --oneline` and copy the project's habits for scope names and tense.
3. Pick one type: feat, fix, refactor, perf, docs, test, build, ci, chore. If two types fit, the diff is probably two commits: say so and propose the split by file.
4. Write the subject as `type(scope): summary`, imperative mood, lower case, no period, at most 72 characters. Use the scope or ticket id from the user's text when given.
5. Add a body only when the reason is not obvious from the subject. Explain why the change was needed and any trade-off, wrapped at 72 columns. Add `BREAKING CHANGE:` in the footer if a public interface changed.

Show the message in a code block, then ask: "Commit with this message?" Run `git commit` only after a clear yes. Never use --no-verify and never amend an existing commit.

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.