bump-template-version

bump-template-version is a command for Claude Code, OpenCode from d-oit/rust-2026-template. It costs 0 tokens per session (961 once invoked), scanned A, original, MIT.

A command that updates the template repository's internal version in one specific changelog footer.

In plain words
What is it for?
Use it after preparing the template's Unreleased changelog section and before publishing a new batch of template changes.
Why use it?
It prevents the template version from being duplicated across files and makes a release change exactly one intended location.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/bump-template-version.sh.

Good fit Use it after preparing the template's Unreleased changelog section and before publishing a new batch of template changes.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template
agentmods
npx agentmods add commands/d-oit/rust-2026-template/bump-template-version

Made for: Claude Code, OpenCode.

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 bump-template-version

README.md
[![agentmods](https://agentmods.dev/badge/commands/d-oit/rust-2026-template/bump-template-version/github.svg)](https://agentmods.dev/commands/d-oit/rust-2026-template/bump-template-version)
Your own site
<a href="https://agentmods.dev/commands/d-oit/rust-2026-template/bump-template-version"><img src="https://agentmods.dev/badge/commands/d-oit/rust-2026-template/bump-template-version/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 bump-template-version

Your own site · 80×15
<a href="https://agentmods.dev/commands/d-oit/rust-2026-template/bump-template-version"><img src="https://agentmods.dev/badge/commands/d-oit/rust-2026-template/bump-template-version.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 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00961
Opus 5.5 $0.00000 $0.00384
Sonnet 5.5 $0.00000 $0.00192
Haiku 4.5 $0.00000 $0.00096

Measured 1mo ago against content hash 1c3b0cedf10b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bump-template-version 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 1mo 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.

.opencode/commands/bump-template-version.md · 81 lines

How it starts

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

Command: bump-template-version

Description

Bumps the template repository's own internal version — the version tracked in .template/CHANGELOG-TEMPLATE.md's link footer. This is the SOLE place where the template's version lives, by design — VERSION, CHANGELOG.md, Cargo.toml [workspace.package].version, and the README.md version badge are all kept free of any version number so a bump-template-version run mutates exactly one file.

The per-repo version that derived repos use (in their own VERSION / Cargo.toml [workspace.package].version / CHANGELOG.md) starts at 0.0.0 (the init value they inherit) and is bumped separately by scripts/bump-version.sh after a repo is initialized via init-template.sh.

When to use

After merging a batch of template improvements (CI/workflow fixes, new badges, new scripts, skill additions) and you're ready to publish the next template version. Typical cadence: few times per month, not per-PR.

Execution Protocol

  1. Pre-flight (required):

    • Ensure .template/CHANGELOG-TEMPLATE.md has a populated ## [Unreleased] section with the changes you want to publish.
    • Confirm VERSION, CHANGELOG.md, and Cargo.toml [workspace.package].version are still in their initial (untouched) state (VERSION = 0.0.0, the generated-project starter version; CHANGELOG.md = empty Keep-a-Changelog skeleton). The script will refuse to touch them, but verify as a sanity check.
  2. Dry run (always do this first):

    bash scripts/bump-template-version.sh
    

    Default: auto-increments the PATCH component of the current version. Prints exactly which lines in .template/CHANGELOG-TEMPLATE.md would change without modifying anything.

  3. Apply:

    bash scripts/bump-template-version.sh --execute
    

    Optional flags:

    • --minor, --major to bump a non-patch component.
    • --version=X.Y.Z to set an explicit version (skips auto-increment).
    • --date=YYYY-MM-DD to override today's date in the changelog.
  4. Review and commit:

    • git diff .template/CHANGELOG-TEMPLATE.md (should be exactly ONE file)
    • git add .template/CHANGELOG-TEMPLATE.md
    • git commit -m 'chore(template): bump version to X.Y.Z'
  5. Tag and push:

Read the full file on GitHub · 81 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. 1mo ago First seen · 81 lines · 0 tokens per session scan A 1c3b0cedf10b

Subscribe to this mod's changes

bump-template-version is a command published in the GitHub repository d-oit/rust-2026-template (14 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 961 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.