agentleFS
BenkapnerBenkapner/claude-code-basecamp/skills/semantic-versioning/SKILL.md

semantic-versioning

Skill17 starsChanged 59 days agoMITView on GitHub

Use when committing or pushing changes and the repository needs a version bump. Analyzes commits using conventional commit prefixes to determine whether the next release is a major, minor, or patch increment. Also use when the user asks about versioning, release planning, or changelog generation.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    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:

    Before or after pushing changes (suggest the version bump)

    line 13
  2. Distinctive:

    When the user asks "what version should this be?"

    line 14
  3. Distinctive:

    When preparing a release or tag

    line 15
  4. Distinctive:

    When reviewing a set of commits for release notes

    line 16
  5. Distinctive:

    Run the analysis script:

    line 32
  6. Distinctive:

    Never auto-apply version changes without user confirmation.

    line 60
  7. Distinctive:

    If commits don't follow conventional format, fall back to keyword analysis:

    line 74
  8. Very specific:

    Use 0.y.z until the project declares stability

    line 84

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Semantic Versioning

Determine the next version from commit history when preparing a release. The highest-impact release-relevant commit drives the bump.

When to Activate

  • Before or after pushing changes (suggest the version bump)
  • When the user asks "what version should this be?"
  • When preparing a release or tag
  • When reviewing a set of commits for release notes

Version Rules

Follows Semantic Versioning 2.0.0:

BumpTriggerExamples
Major (X.0.0)Breaking changefeat!:, fix!:, BREAKING CHANGE: in body/footer
Minor (x.Y.0)New featurefeat:, feature:
Patch (x.y.Z)Everything elsefix:, chore:, docs:, style:, refactor:, test:, ci:, perf:

The highest bump wins: if any commit is major, the release is major — regardless of how many patches are in the batch.

How to Check

Run the analysis script:

uv run skills/semantic-versioning/scripts/version-bump.py [repo-path]

Options:

  • --apply — update the version file after confirmation
  • --tag — also create a git tag

Version File Detection

The script auto-detects where the version lives:

FileField
pyproject.toml[project] version = "x.y.z"
package.json"version": "x.y.z"
Cargo.toml[package] version = "x.y.z"
VERSIONPlain text file

Workflow

  1. Analyze — scan commits since last tag, classify each
  2. Report — show the bump type, commit breakdown, and suggested next version
  3. Confirm — wait for user approval before making changes
  4. Apply (if --apply) — update version file and optionally tag

Never auto-apply version changes without user confirmation.

Commit Format Guide

For best results, follow conventional commits:

<type>[optional scope][!]: <description>

[optional body]

[optional footer(s)]

If commits don't follow conventional format, fall back to keyword analysis:

  • Words like "add", "new", "feature" → minor
  • Words like "fix", "bug", "patch", "correct" → patch
  • Words like "breaking", "remove", "drop", "rename API" → major

Pre-1.0 Semantics

For versions 0.y.z (pre-stable):

  • API is considered unstable
  • Minor bumps may include breaking changes
  • Use 0.y.z until the project declares stability

Common Mistakes

MistakeFix
Bumping major for every feat! in pre-1.0Pre-1.0: breaking changes go in minor
Forgetting to tag after version bumpAlways tag: git tag v<version>
Version in multiple files getting out of syncUse the script to update all detected version files
Non-conventional commit messagesFall back to keyword analysis, but encourage conventional commits

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.