agentleFS
avizmarlonavizmarlon/agent-skills/skills/version-bump-rules/SKILL.md

version-bump-rules

Skill2 starsChanged 6 months agoMITView on GitHub

Keep versions up-to-date — every production change bumps the version in the same commit. Semantic versioning rules. Special handling for WXT browser extensions (version in wxt.config.ts, not package.json). Use when working with version, release, semver, changelog, MAJOR.MINOR.PATCH, breaking change, or deploying code.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every software project must maintain a version number.

    line 8
  2. Distinctive:

    When in doubt between MINOR and PATCH?: If the end user will notice → MINOR.

    line 38
  3. Very specific:

    Add entry to CHANGELOG.md with the new version at the top

    line 53
  4. Distinctive:

    Gate before commit: if code is shipping, version must bump.

    line 57
  5. Distinctive:

    Monorepo edge case: if multiple packages are affected but release independently, bump each.

    line 58
  6. Distinctive:

    Validation: after bumping, run a quick check (grep, parse JSON/TOML, read source) to confirm the new version is in place and matches the …

    line 59
  7. Distinctive:

    All software projects, all AI agents (Claude, Codex, Cursor, Gemini), all sessions.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Version Control — Mandatory Practice

Every software project must maintain a version number. Every change that reaches production or main branch must bump the version in the same commit — no exceptions, no deferral.

Where version lives (by project type)

Project TypeVersion File Location
Node.js / npm packagepackage.json → "version" field
WXT (browser extension)wxt.config.ts → manifest: { version: "x.y.z" } — NOT package.json
Monorepo (multiple packages)each affected package.json + manifest.json if extension
Pythonpyproject.toml → [project] version OR __version__ in __init__.py
Rust / CargoCargo.toml → version field
Mobile (Expo)app.json / app.config.ts → version + buildNumber / versionCode
Bash / Python script (standalone)comment at top: # v1.2.3
Custom setup (no standard file)VERSION file in root, one line

Critical: WXT extension gotcha

Browser extensions built with WXT read the version from wxt.config.ts in the manifest block, not from package.json. Bumping only package.json leaves the manifest at the old version, so users see stale version info in the browser extension UI.

Always verify wxt.config.ts when working with WXT projects.

Semantic versioning rules

MAJOR.MINOR.PATCH
  │      │     └── bug fix, cosmetic adjustment, refactor with no external impact
  │      └──────── new feature, backwards-compatible (new behavior, new UI, new integration)
  └─────────────── breaking change (removed behavior, changed public interface, mandatory migration)

When in doubt between MINOR and PATCH? If the end user will notice → MINOR. If only internal code changed → PATCH.

Anti-patterns (mandatory to avoid)

  • Committing a new feature without bumping the version → forbidden
  • "I'll bump it later" → deferral is not allowed. Bump in the same commit or merge commit
  • Version frozen at 0.0.1 while product evolves → traceability failure
  • Multiple packages in a monorepo with different versions without justification → align them if they release together

Required workflow

  1. Session delivers production-bound change (feature, bugfix, release)
  2. Identify the project's version file(s) from the table above
  3. Decide the bump level (MAJOR / MINOR / PATCH) using the semver rule
  4. Bump the version before committing the code (or include in the commit)
  5. Add entry to CHANGELOG.md with the new version at the top

Implementation notes for AI agents

  • Gate before commit: if code is shipping, version must bump. If version hasn't bumped, the commit is incomplete.
  • Monorepo edge case: if multiple packages are affected but release independently, bump each. If they always release together, keep versions in sync.
  • Validation: after bumping, run a quick check (grep, parse JSON/TOML, read source) to confirm the new version is in place and matches the old version + bump you applied.
  • CHANGELOG discipline: version number in CHANGELOG must match the version file after the bump. If they diverge, the next AI session or developer has incomplete information about what version contains which features.

Applies to

All software projects, all AI agents (Claude, Codex, Cursor, Gemini), all sessions.

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.