commit-message

commit-message is a skill for Claude Code, Codex from tommyvo/useful-prompts. It costs 29 tokens per session (762 once invoked), scanned A, original, Unlicense.

A guide for drafting a structured commit message—a summary of changes recorded in version control. It first reviews all uncommitted changes, then identifies whether the project is React, Rails, or another type.

In plain words
What is it for?
Use it to prepare a commit message that describes relevant changes in React, Rails, or general projects, leaving out sections that do not apply.
Why use it?
It bases the message on the actual code changes instead of guessing from the conversation or a file name.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tommyvo/useful-prompts/commit-message
Any agent
npx skills add tommyvo/useful-prompts --skill commit-message
Clone the repo
git clone --depth 1 https://github.com/tommyvo/useful-prompts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit-message

README.md
[![agentmods](https://agentmods.dev/badge/skills/tommyvo/useful-prompts/commit-message.svg)](https://agentmods.dev/skills/tommyvo/useful-prompts/commit-message)
Your own site
<a href="https://agentmods.dev/skills/tommyvo/useful-prompts/commit-message"><img src="https://agentmods.dev/badge/skills/tommyvo/useful-prompts/commit-message.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.00762
Opus 5 $0.00015 $0.00381
Sonnet 5 $0.00006 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured 3d ago against content hash 0e36dc922e24, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-message scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Claude Code/Skills/commit-message/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit message draft

Draft a commit message for all the uncommitted changes.

CRITICAL: MANDATORY FIRST STEP

YOU MUST run git diff HEAD as your FIRST action before doing anything else.

DO NOT attempt to infer changes from context or memory. DO NOT skip this step. DO NOT proceed without running this command first.

Process

  1. FIRST: Run git diff HEAD in the terminal to get ALL uncommitted changes
  2. SECOND: Analyze the diff output to understand what changed
  3. THIRD: Detect the project type from the files in the diff
  4. FOURTH: Generate the commit message using the appropriate template

Instructions:

  • If I specify "React" or "Rails", use the corresponding template below
  • If I don't specify a project type, try to infer it from the file extensions and structure:
    • React: Look for .jsx, .tsx files, component folders, package.json with React dependencies
    • Rails: Look for .rb files, controllers/, models/, db/migrate/ folders, Gemfile
  • If the project type cannot be determined, provide a generic commit message with a clear description of changes
  • Important: Omit any template sections that don't have relevant changes. Do not include a section header if there is nothing to put under it.
  • Important: Wrap every line of the commit message at 80 characters or fewer, including bullet points.
  • Important: Wrap code-like terms in backticks — class/function/variable names, file paths, commands, flags, config keys, and other symbols — so they render as code.
  • Important: Output the commit message within a fenced code block. You should use four backticks (````) for the outer code block, so that any code blocks withing will render correctly.

React Template

(feat|fix|chore): (Brief title of change)

(Brief description of the change)

Components Changes:
- (Any Components changes)

API Integration:
- (Any changes to the API integration)

UI/UX Features:
- (Any changes to the UI/UX Features)

Testing:
- (Any testing updates)

Other Changes:
- (Any other changes)

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 128 lines · 29 tokens per session scan A 0e36dc922e24

Subscribe to this mod's changes

commit-message is a skill published in the GitHub repository tommyvo/useful-prompts (3 stars, last pushed 5d ago), licensed Unlicense. It adds 29 tokens to every session and 762 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories