bump-template-version

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

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/d-oit/rust-2026-template/bump-template-version
Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template
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. 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.00961
Opus 5 $0.00000 $0.00481
Sonnet 5 $0.00000 $0.00192
Haiku 4.5 $0.00000 $0.00096

Measured 2d ago against content hash 1c3b0cedf10b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.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. 2d 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 (10 stars, last pushed 3d 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.