commit

A Git command workflow that reviews changes and creates a local commit using the Conventional Commits format, a shared style for describing code changes.

In plain words
What is it for?
Reviewing modified files, staging the right changes, and creating commits for features, fixes, documentation, tests, refactoring, or build work without pushing them.
Why use it?
It reduces guesswork when choosing a commit type and writing a clear message. It also reminds you not to include secrets such as passwords or tokens.

Command

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 commands/galaxy-dawn/claude-scholar/commit
Clone the repo
git clone --depth 1 https://github.com/Galaxy-Dawn/claude-scholar
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 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.00014 $0.00378
Opus 5 $0.00007 $0.00189
Sonnet 5 $0.00003 $0.00076
Haiku 4.5 $0.00001 $0.00038

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

Security

Grade A, and why

commit 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 2d 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.

commands/commit.md · 54 lines

What it actually says

Commit

Stage and commit changes using Conventional Commits format.

Instructions

  1. Check Git Status

    • Run git status to review all changes
    • Run git diff to inspect modifications
  2. Analyze Changes

    • Review changed files and their content
    • Determine commit type and scope
    • Draft a concise commit message
  3. Commit Type Reference

    feat     - New feature
    fix      - Bug fix
    docs     - Documentation only
    style    - Code style (formatting, semicolons, etc.)
    refactor - Code refactoring (no feature/fix)
    perf     - Performance improvement
    test     - Adding or updating tests
    chore    - Build, CI, tooling, dependencies
    
  4. Commit Message Format

    <type>(<scope>): <subject>
    
    <body>
    
    • Subject: imperative mood, no period, max 72 chars
    • Body: explain what and why (optional for small changes)
    • Scope: affected module (data, model, config, trainer, utils, workflow)
  5. Stage and Commit

    • Stage relevant files with git add
    • Do NOT stage files containing secrets (.env, credentials, tokens)
    • Create commit with formatted message
    • Do not include Co-Authored-By footers unless the user explicitly asks for them
    • Verify with git log --oneline -1

Notes

  • This command only commits locally. Use /update-github to also push.
  • Always confirm the commit message with the user before committing.
  • If unsure about type or scope, ask the user.
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. 2d ago First seen · 54 lines · 14 tokens per session scan A 013723ee3789

Subscribe to this mod's changes

commit is a command published in the GitHub repository Galaxy-Dawn/claude-scholar (5,297 stars, last pushed 6d ago), licensed MIT. It adds 14 tokens to every session and 378 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-30.