commit-plugin

A command for committing changes to a coding-agent plugin and choosing a semantic version number. Semantic versioning uses major, minor, and patch numbers to describe breaking changes, new features, and fixes.

In plain words
What is it for?
Use it to inspect plugin changes, recommend a version bump, and prepare a correctly versioned plugin commit.
Why use it?
It removes the manual work of finding the changed plugin, reviewing its changes, checking its current version, and deciding how to increase that version.

Command for Claude Code

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/bengous/claude-code-plugins/commit-plugin
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 932 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.00011 $0.00932
Opus 5 $0.00005 $0.00466
Sonnet 5 $0.00002 $0.00186
Haiku 4.5 $0.00001 $0.00093

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

Security

Grade A, and why

commit-plugin 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.

.claude/commands/commit-plugin.md · 142 lines

How it starts

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

Commit Plugin

Commit changes to a plugin with proper semantic versioning.

Workflow

1. Identify the Plugin

If $ARGUMENTS is provided, use that as the plugin name. Otherwise, detect from staged/unstaged changes:

git status --porcelain | grep -E '^\s*[MADR?]+\s+[^/]+/' | sed 's|.*\s\+\([^/]*\)/.*|\1|' | sort -u

If multiple plugins have changes, ask the user which one to commit.

Validate the plugin exists:

test -f "<plugin-name>/.claude-plugin/plugin.json"

2. Analyze Changes

Get the diff for this plugin:

git diff HEAD -- <plugin-name>/
git diff --cached -- <plugin-name>/
git status --porcelain -- <plugin-name>/

Categorize the changes:

Change Type Version Impact Examples
Breaking MAJOR Removed commands, renamed commands, changed command behavior incompatibly
New features MINOR New commands, new skills, new agents, new significant functionality
Fixes/improvements PATCH Bug fixes, documentation, refactoring, small tweaks

3. Get Current Version

jq -r '.version' <plugin-name>/.claude-plugin/plugin.json

4. Recommend Version Bump

Based on the analysis, recommend a version bump using AskUserQuestion:

Recommend MAJOR when:

  • Commands were removed or renamed
  • Breaking changes to command arguments/behavior
  • Major architectural rewrites

Recommend MINOR when:

  • New commands added
  • New skills or agents added
  • Significant new functionality

Recommend PATCH when:

  • Bug fixes
  • Documentation updates
  • Small improvements or refactoring
  • No new user-facing features

Present the options with your recommendation first (marked as recommended) and explain why.

5. Bump Version

Calculate the new version based on user selection:

  • MAJOR: X.0.0 (reset minor and patch)
  • MINOR: x.Y.0 (reset patch)
  • PATCH: x.y.Z

Update the version in plugin.json:

jq --arg v "<new-version>" '.version = $v' <plugin-name>/.claude-plugin/plugin.json > tmp.json && mv tmp.json <plugin-name>/.claude-plugin/plugin.json

Read the full file on GitHub · 142 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 · 142 lines · 11 tokens per session scan A 693ef520205f

Subscribe to this mod's changes

commit-plugin is a command published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed 2d ago), licensed MIT. It adds 11 tokens to every session and 932 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.