usage-monitor-for-claude: Command for Claude Code

.claude/commands/commit-message.md

commit-message is a command for Claude Code from jens-duttke/usage-monitor-for-claude. It costs 0 tokens per session (429 once invoked), scanned A, original, MIT.

A command that examines staged Git changes and the current branch, then drafts a Conventional Commits message. Conventional Commits is a standard format such as `fix:` or `feat:` that describes the kind of change.

In plain words
What is it for?
Use it before committing staged work to create a concise subject and an optional explanation of why the change was made.
Why use it?
It saves time writing consistent commit messages while keeping them grounded in the actual code difference.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is jens-duttke/usage-monitor-for-claude's own configuration. It tells Claude Code how to work on usage-monitor-for-claude itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything usage-monitor-for-claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jens-duttke/usage-monitor-for-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jens-duttke/usage-monitor-for-claude/main/.claude/commands/commit-message.md
Clone the repo
git clone --depth 1 https://github.com/jens-duttke/usage-monitor-for-claude

Made for: Claude Code.

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/commands/jens-duttke/usage-monitor-for-claude/commit-message/github.svg)](https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/commit-message)
Your own site
<a href="https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/commit-message"><img src="https://agentmods.dev/badge/commands/jens-duttke/usage-monitor-for-claude/commit-message/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit-message

Your own site · 80×15
<a href="https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/commit-message"><img src="https://agentmods.dev/badge/commands/jens-duttke/usage-monitor-for-claude/commit-message.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00429
Opus 5 $0.00000 $0.00215
Sonnet 5 $0.00000 $0.00086
Haiku 4.5 $0.00000 $0.00043

Measured 11d ago against content hash 0d489575baa1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

commit-message scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

On Windows, Python's urllib often fails to verify SSL certificates when downloading the Real-ESRGAN model due to missing system CA certificates. Using certifi provides Mozilla's trusted CA bundle, which resolves the SSL_
.claude/commands/commit-message.md · 63 lines

How it starts

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

Analyze the staged changes by running git diff --cached and the current branch name by running git branch --show-current, then generate a commit message according to the following rules:

Follow Conventional Commits format with a descriptive body:

<type>: <short description>

<body explaining WHY this change was made>

Types

Type Use for
feat New features
fix Bug fixes
docs Documentation changes
refactor Code refactoring (no behavior change)
test Adding or updating tests
chore Maintenance tasks

Structure

Subject line (required):

  • Lowercase, no period at end
  • Maximum ~72 characters
  • Imperative mood ("add feature" not "added feature")

Body (optional):

  • Blank line after subject
  • No hard line breaks - write as flowing prose, separate paragraphs with a blank line
  • Explain WHY the change was made, not just WHAT changed

Footer (optional):

  • BREAKING CHANGE: description for breaking changes

Rules

  • Base message ONLY on the actual code changes in the diff
  • Never invent issue numbers, ticket references, or external links
  • Never include code snippets or file contents in the message
  • Describe the change's purpose and impact, not implementation details

Examples

fix: use certifi for SSL certificate verification on model download

On Windows, Python's urllib often fails to verify SSL certificates when downloading the Real-ESRGAN model due to missing system CA certificates. Using certifi provides Mozilla's trusted CA bundle, which resolves the SSL_CERTIFICATE_VERIFY_FAILED error.
feat: add automatic token refresh to prevent session expiration

Users were being logged out during active sessions when their access token expired. Automatic refresh keeps sessions alive without requiring re-authentication.
refactor: rename user endpoints for REST consistency

BREAKING CHANGE: /users/list renamed to /users, /users/get/:id renamed to /users/:id

Read the full file on GitHub · 63 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. 11d ago First seen · 63 lines · 0 tokens per session scan A 0d489575baa1

Subscribe to this mod's changes

commit-message is a command published in the GitHub repository jens-duttke/usage-monitor-for-claude (281 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 429 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.