agentleFS
tuliosousaprotuliosousapro/SaaS-blueprint/skills/semantic-versioning/SKILL.md

semantic-versioning

Skill5 starsChanged 9 months agoMITView on GitHub

Manages project versioning following Semantic Versioning (SemVer) principles. Calculates increments based on changes and synchronizes version across documentation and metadata. Use when the user asks to "bump the version", "prepare a release", or when the `changelog` skill calls for a release.

3 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

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Read the latest version from CHANGELOG.md (e.g., the most recent header ## [X.Y.Z]).

    line 12
  2. Very specific:

    Read the version from .github/repository-metadata.json.

    line 13
  3. Distinctive:

    If they differ, flag the mismatch to the user and ask which is authoritative.

    line 14
  4. Very specific:

    If using changelog skill: Look at the items under [Unreleased] or the new version block being prepared.

    line 20
  5. Distinctive:

    If using git log: Scan for Conventional Commits types.

    line 21
  6. Distinctive:

    Follow these priority rules:

    line 25
  7. Very specific:

    No Change: If only docs, chore, style, test, build, or ci changes are found, default to PATCH unless the user specifies otherwise.

    line 30
  8. Distinctive:

    Update the following files in a single pass:

    line 34
  9. Very specific:

    .github/repository-metadata.json: Update the "version" field.

    line 37
  10. Distinctive:

    No regression in version number.

    line 42
  11. Distinctive:

    All version-tracking files are synchronized.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 3 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 Skill

Instructions

1. Detect Current Version

  • Read the latest version from CHANGELOG.md (e.g., the most recent header ## [X.Y.Z]).
  • Read the version from .github/repository-metadata.json.
  • If they differ, flag the mismatch to the user and ask which is authoritative.

2. Analyze Changes

Scan the changes since the last release:

  • If using changelog skill: Look at the items under [Unreleased] or the new version block being prepared.
  • If using git log: Scan for Conventional Commits types.

3. Determine Increment Type

Follow these priority rules:

  1. MAJOR (X.0.0): Any "BREAKING CHANGE" footer or ! after the type (e.g., feat!:).
  2. MINOR (x.Y.0): Any feat commit or "Added" entry in the changelog.
  3. PATCH (x.y.Z): Any fix, perf, refactor commit or "Fixed"/"Changed" entry in the changelog.
  4. No Change: If only docs, chore, style, test, build, or ci changes are found, default to PATCH unless the user specifies otherwise.

4. Apply Version Update

Update the following files in a single pass:

  • CHANGELOG.md: Rename the ## [Unreleased] section to ## [NEW_VERSION] - CURRENT_DATE or update the latest entry.
  • .github/repository-metadata.json: Update the "version" field.

Quality Gates

  • Version follows MAJOR.MINOR.PATCH format.
  • No regression in version number.
  • All version-tracking files are synchronized.
  • Date in CHANGELOG.md is in YYYY-MM-DD format.

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.