agentleFS
afaraha8403afaraha8403/balakit/.cursor/rules/release.mdc

balakit / rules

Cursor rule1 starsChanged 2 months agoMITView on GitHub

Git tag, CHANGELOG heading, package.json, and npm publish must share one semver. Use when releasing, shipping, deploying, tagging, or publishing npm.

  • Commits and pushes

The file

We split this release.mdc into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit. Tag that commit: git tag -a vX.Y.Z -m "vX.Y.Z".

    line 26
  2. Very specific:

    If the tag workflow fails after the GitHub Release exists, do not publish a different version locally to "catch up." Fix the secret/token, …

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
release.mdc
---
description: Git tag, CHANGELOG heading, package.json, and npm publish must share one semver. Use when releasing, shipping, deploying, tagging, or publishing npm.
alwaysApply: true
---

# 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 | `balakit@1.14.0` (`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`.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.