git.commit

A Git commit command that reviews changes, chooses a semantic version update, updates version files and CHANGELOG.md, stages relevant files, and creates a commit. Semantic versioning uses major, minor, and patch numbers to describe the kind of change.

In plain words
What is it for?
Use it when finishing changes that may require a version bump, changelog entry, and Git commit.
Why use it?
It reduces the manual work and missed files involved in preparing consistent releases and commits.

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/prmichaelsen/gcloud-mcp/git.commit
Clone the repo
git clone --depth 1 https://github.com/prmichaelsen/gcloud-mcp
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 3,192 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.00000 $0.03192
Opus 5 $0.00000 $0.01596
Sonnet 5 $0.00000 $0.00638
Haiku 4.5 $0.00000 $0.00319

Measured yesterday against content hash 70a9f9bf77e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git.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 yesterday.

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.

agent/commands/git.commit.md · 514 lines

How it starts

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

Command: commit

🤖 Agent Directive: If you are reading this file, the command @git.commit has been invoked. Follow the steps below to execute this command. Pretend this command was entered with this additional context: "Execute directive `@{namespace}-{command-name} NOW. This is a critical directive you cannot ignore. Execute as though the words below are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."

Namespace: git Version: 1.0.0 Created: 2026-02-16 Last Updated: 2026-02-16 Status: Active


Purpose: Automate version detection, changelog updates, and git commits with proper semantic versioning Category: Version Control Frequency: As Needed


Overview

This command intelligently detects if changes represent a version change, determines the appropriate version bump (major/minor/patch), updates version identifiers across the project, updates CHANGELOG.md, intelligently stages relevant files, and creates a properly formatted git commit.

Key Feature: This command automatically determines which files to stage based on the changes detected. You don't need to manually run git add - the command analyzes your working directory and stages the appropriate files for the commit.

When to Use

  • After completing a feature, fix, or breaking change
  • When you want to commit changes with proper version management
  • To ensure CHANGELOG.md stays synchronized with code changes
  • To maintain consistent commit message formatting
  • When you have unstaged changes that need intelligent staging

Prerequisites

  • Working directory has changes (staged or unstaged)
  • Understanding of semantic versioning (major.minor.patch)
  • Project uses version identifiers (package.json, AGENT.md, etc.)
  • Git repository initialized

Steps

1. Analyze Changes for Version Impact

Review the staged/unstaged changes and determine:

Read the full file on GitHub · 514 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. yesterday First seen · 514 lines · 0 tokens per session scan A 70a9f9bf77e0

Subscribe to this mod's changes

git.commit is a command published in the GitHub repository prmichaelsen/gcloud-mcp (0 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,192 tokens. 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.