bump-version

bump-version is a cursor rule for Cursor from arindamxd/camerax-android. It costs 41 tokens per session (564 once invoked), scanned A, original, Apache-2.0.

A release-version workflow for Android apps published through Google Play. It increments the upload number for the current app version, updates release records, and prepares notes from Git history.

In plain words
What is it for?
Use it when preparing another Play upload of the same version, or when explicitly creating a new major, minor, or patch version. It also helps produce release notes from commits.
Why use it?
It removes the need to manually calculate Play's version code, edit release-number files, and find the changes since the previous upload.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit Use it when preparing another Play upload of the same version, or when explicitly creating a new major, minor, or patch version. It also helps produce release notes from commits.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/arindamxd/camerax-android/bump-version
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.

Clone the repo
git clone --depth 1 https://github.com/arindamxd/camerax-android

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/arindamxd/camerax-android/bump-version/github.svg)](https://agentmods.dev/rules/arindamxd/camerax-android/bump-version)
Your own site
<a href="https://agentmods.dev/rules/arindamxd/camerax-android/bump-version"><img src="https://agentmods.dev/badge/rules/arindamxd/camerax-android/bump-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-version

Your own site · 80×15
<a href="https://agentmods.dev/rules/arindamxd/camerax-android/bump-version"><img src="https://agentmods.dev/badge/rules/arindamxd/camerax-android/bump-version.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 564 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.00041 $0.00564
Opus 5.5 $0.00016 $0.00226
Sonnet 5.5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00056

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

Security

Grade A, and why

bump-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 25d 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.

.cursor/rules/bump-version.mdc · 44 lines

What it actually says

Same workflow as .agents/skills/bump-version/SKILL.md.

Bump version (Play upload)

Trigger phrases: bump version, version bump, bump the version. Run this workflow immediately. Do not ask whether to bump offset vs name unless they named major/minor/patch.

1. Bump versionCodeOffset

Same versionName (another Play upload of X.Y.Z):

  1. In root build.gradle.kts, increment ext["versionCodeOffset"] by 1.
  2. versionCode = major * 10000 + minor * 100 + patch + offset (example: 1.7.0 + offset 5 → 10705).
  3. Update RELEASE.md Current shipping target and Play Console Version lines to the new versionCode / offset. Do not rewrite the historical “Last local verification” section as if those checks already ran on the new code.

Only bump versionMajor / versionMinor / versionPatch (and reset offset to 0) if the user explicitly asks for a new X.Y.Z.

Do not commit unless asked.

2. Changelog range (this upload vs previous)

Previous Play upload = the most recent commit whose subject is exactly version bumped before this bump (if HEAD is already that commit, use the one before it). Fallback: newest git tag (git tag --sort=-v:refname).

git log --format='%s' <previous>..HEAD

Skip subjects: version bumped, merge commits, docs-only, agent/DI/build-only churn.

3. Print Play Console notes

After the bump, reply with:

  1. One line: versionName / new versionCode / new offset.
  2. Raw bullets: remaining git subjects (changelog source).
  3. Paste-ready Play notes from .cursor/rules/play-console-release-notes.mdc and AGENTS.md: Release name: {versionName} plus an <en-US> block. User-facing highlights only (4–6 bullets). End with a stability bullet when the range includes fixes. Do not invent features.
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. 25d ago First seen · 44 lines · 41 tokens per session scan A b67637f4a1bf

Subscribe to this mod's changes

bump-version is a cursor rule published in the GitHub repository arindamxd/camerax-android (132 stars, last pushed 14d ago), licensed Apache-2.0. It adds 41 tokens to every session and 564 once invoked, about $0.0002 per session on Opus 5.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-09-21.