Skip to content
Back to skills

Semantic Versioning

ASecurity

Works out the next version number from the real changes since the last tag, applies semver rules to breaking changes and drafts the release notes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgogitdatabaseperformance

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill semantic-versioning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Versioning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Versioning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-semantic-versioning/badge)](https://www.skillsdirectory.com/skills/workspace-templates-semantic-versioning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: semantic-versioning
description: Works out the next version number from the real changes since the last tag, applies semver rules to breaking changes and drafts the release notes.
---

# Semantic versioning

Decide the bump from what consumers can observe, not from commit prefixes.

## Steps

1. Find the last release: `git describe --tags --abbrev=0` and its tag. If versions below 1.0.0, say so: 0.x allows breaking changes in minor releases, but still note them.
2. Read the change since then: `git diff <tag>..HEAD --stat` and the diff of every file that is part of the public surface (exports, CLI flags, config keys, HTTP routes, database or file formats, environment variables).
3. Classify each change:
   - **Major**: removed or renamed public item, changed argument order or type, narrower accepted input, different return shape, changed default that alters results, dropped runtime or platform support, new required config.
   - **Minor**: new optional feature, new export, wider accepted input, new optional field, deprecation (with the old path still working).
   - **Patch**: bug fix that restores documented behavior, performance work, internal refactor, docs.
4. The highest class wins. A fix that changes behavior people relied on is a major, even if it was a bug.
5. Check internal consistency: update the version in every place it lives (`package.json`, lockfile, `pyproject.toml`, `Cargo.toml`, a version constant), the changelog, and any migration note a major bump needs.
6. Pre-releases use `-rc.1` style suffixes; build metadata uses `+` and never affects ordering.

## Rules

- Do not create the tag or publish. Propose the version and the file edits.
- If a change is ambiguous, list it under "judgment calls" and choose the higher bump.

## Report

The version, the list of changes grouped by class with the file for each, the judgment calls, and draft release notes written for users.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.