release

A release rule for keeping the software version consistent across package.json, Git tags, the changelog, and npm. Semver is a shared format such as 1.14.0 that describes the kind and size of a release.

In plain words
What is it for?
Use it when releasing or publishing an npm package, creating a GitHub release, or checking that release files agree.
Why use it?
It prevents publishing, tagging, and documenting different versions of the same software. It also defines the order of checks and publishing steps.

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/afaraha8403/balakit/release
Clone the repo
git clone --depth 1 https://github.com/afaraha8403/balakit

Made for: Cursor.

Per session 564 This file is loaded in full into every session.
When invoked 564 The same file — it is already loaded in full.
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.00564 $0.00564
Opus 5 $0.00282 $0.00282
Sonnet 5 $0.00113 $0.00113
Haiku 4.5 $0.00056 $0.00056

Measured 2d ago against content hash c3b4db1cc911, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release 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.

.cursor/rules/release.mdc · 36 lines

What it actually says

Release version lockstep

One version. The git tag, package.json "version", CHANGELOG heading, and npm publish are the same semver. Never tag or publish a version that is not already committed in package.json.

Identity

Surface Form Example
package.json "version" no leading v 1.14.0 or 1.15.0-beta.1
git tag v + that string v1.14.0 or v1.15.0-beta.1
CHANGELOG heading ## [vX.Y.Z] (or without v) ## [v1.14.0]
npm that same package.json version [email protected] (latest) or dist-tag beta

Plugin / marketplace version fields lockstep with package.json. Skill SKILL.md version: does not. Bump package.json only, then ./sync.sh. Never hand-edit generated plugin versions.

Order

  1. Cut CHANGELOG [Unreleased] into ## [vX.Y.Z].
  2. Set package.json "version" to X.Y.Z (no v).
  3. ./sync.sh then npm test and node scripts/check-lockstep.mjs --rebuild --git.
  4. Commit. Tag that commit: git tag -a vX.Y.Z -m "vX.Y.Z".
  5. Push the tag only after the commit is on the release branch. The v* workflow creates the GitHub Release and runs npm publish. Do not also gh release create or npm publish locally — that duplicates the tag and can publish a different version than the tag.

If the tag workflow fails after the GitHub Release exists, do not publish a different version locally to "catch up." Fix the secret/token, then re-run the same tag job (make gh release create a no-op if the release already exists).

npm auth

GitHub Actions NPM_TOKEN must be an npm Automation token (bypasses 2FA). Publish/classic tokens fail CI with EOTP.

Procedure: release-deploy skill + skills/release-deploy/projects/<owner>-<repo>.md.

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 · 36 lines · 564 tokens per session scan A c3b4db1cc911

Subscribe to this mod's changes

release is a cursor rule published in the GitHub repository afaraha8403/balakit (1 stars, last pushed 4d ago), licensed MIT. It adds 564 tokens to every session, about $0.0028 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.