release-version-bump-auto

A release-checking rule for choosing a new software version. It uses semantic versioning, where major, minor, and patch numbers signal the size and compatibility impact of changes.

In plain words
What is it for?
Use it when preparing releases, changing package versions, creating Git tags, publishing, or deploying. It checks major, minor, patch, and custom version choices and explains mismatches.
Why use it?
It helps prevent publishing a version that does not match the changes, such as using a patch version when a breaking change requires a major version.

Cursor rule for Cursor

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 rules/usrrname/cursorrules/release-version-bump-auto
Clone the repo
git clone --depth 1 https://github.com/usrrname/cursorrules

Made for: Cursor.

Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,642 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.00067 $0.01642
Opus 5 $0.00034 $0.00821
Sonnet 5 $0.00013 $0.00328
Haiku 4.5 $0.00007 $0.00164

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

Security

Grade A, and why

release-version-bump-auto 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.

.cursor/rules/utils/release-version-bump-auto.mdc · 181 lines

How it starts

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

Release Version Bump

Critical Rules

  • Must validate version bump against change analysis
  • Must block releases when breaking changes exist but non-major version is requested
  • Must provide clear error messages for version mismatches
  • Must offer force continue options for version mismatches
  • Must calculate new version numbers based on semantic versioning
  • Must handle custom version inputs

filters:

  • type: content pattern: "(release|version|tag|bump|publish|deploy).*(create|make|generate|prepare|ready)"
  • type: git_branch pattern: "^(?!main$|master$).*$"
  • type: event pattern: "chat_start|chat_response"

actions:

  • type: generate content: |

    🔄 Version Bump Process

    I'll help you choose and validate the appropriate version bump for your release.

    1. Prompt User for Version Bump (if not specified):
      if [ -z "$VERSION_BUMP" ]; then
        # Calculate potential new versions
        MAJOR_VERSION=$(echo $CURRENT_VERSION | awk -F. '{print $1+1 ".0.0"}')
        MINOR_VERSION=$(echo $CURRENT_VERSION | awk -F. '{print $1 "." $2+1 ".0"}')
        PATCH_VERSION=$(echo $CURRENT_VERSION | awk -F. '{print $1 "." $2 "." $3+1}')
        
        echo "Choose your version bump:"
        echo "1) Major version: $CURRENT_VERSION → $MAJOR_VERSION (breaking changes)"
        echo "2) Minor version: $CURRENT_VERSION → $MINOR_VERSION (new features)"
        echo "3) Patch version: $CURRENT_VERSION → $PATCH_VERSION (bug fixes)"
        echo "4) Custom version"
        
        # Wait for user input
        read -p "Enter your choice (1-4): " USER_CHOICE
        
        case $USER_CHOICE in
          1) VERSION_BUMP="major" ;;
          2) VERSION_BUMP="minor" ;;
          3) VERSION_BUMP="patch" ;;
          4) 
            read -p "Enter custom version: " CUSTOM_VERSION
            VERSION_BUMP="custom"
            ;;
        esac
      fi
      

Read the full file on GitHub · 181 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 · 181 lines · 67 tokens per session scan A 157f6516628e

Subscribe to this mod's changes

release-version-bump-auto is a cursor rule published in the GitHub repository usrrname/cursorrules (10 stars, last pushed 4mo ago), licensed ISC. It adds 67 tokens to every session and 1,642 once invoked, about $0.0003 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.