Analyzes commit history to suggest and prepare the next SemVer release version.

Install

mkdir -p .claude/skills/bump-version-waldekmastykarz && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10196" && unzip -o skill.zip -d .claude/skills/bump-version-waldekmastykarz && rm skill.zip

Installs to .claude/skills/bump-version-waldekmastykarz

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

This skill should be used when the user asks to "bump the version", "release a new version", "increment version", "update version number", "prepare a release", or mentions anything related to version management and semantic versioning.
235 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Analyze git logs for changes
  • Classify changes as major, minor, or patch
  • Propose version increments
  • Execute version bumps
  • Push tags to remote

How it works

It analyzes git history since the last tag to classify changes according to SemVer rules and proposes an increment.

Inputs & outputs

You give it
Version bump request
You get back
Updated version and git tag

When to use bump-version

  • Increment project version
  • Prepare a new software release
  • Analyze changes for SemVer compliance
  • Check git history for release planning

About this skill

Bump Version

This skill manages semantic versioning for the project by analyzing changes since the last release and proposing an appropriate version bump.

When to Use

Activate when the user requests a version bump or release preparation. The workflow analyzes git history to determine the appropriate SemVer increment (major, minor, or patch).

SemVer Classification

Major (X.0.0)

Breaking changes that require user action:

  • Removed or renamed public APIs
  • Changed behavior of existing features
  • Breaking config file format changes

Minor (0.X.0)

New features that are backward-compatible:

  • New exported functions, classes, or types
  • New configuration options
  • Performance improvements
  • Non-breaking dependency updates with new capabilities

Patch (0.0.X)

Bug fixes and minor improvements:

  • Bug fixes
  • Security patches
  • Documentation updates
  • Typo fixes
  • Dependency updates for security/bugs

Workflow

STOP — Complete all steps in order. Do not skip Step 5 (user confirmation).

Step 1: Find the Latest Version Tag

git describe --tags --abbrev=0

This returns the most recent version tag (e.g., v0.5.2).

Step 2: Get Changes Since Last Tag

git log <tag>..HEAD --oneline

Replace <tag> with the result from Step 1.

Step 3: Get Detailed Diff Summary

git diff <tag>..HEAD --stat

This shows which files changed and how many lines were modified.

Step 4: Classify Changes

Analyze the commit messages and changed files:

  1. Review each commit message for keywords:

    • Breaking: "BREAKING", "remove", "rename API", "migrate"
    • Features: "feat", "add", "new", "implement"
    • Fixes: "fix", "bug", "patch", "security"
  2. Review changed files:

    • src/TokenValidator.ts — Core validation logic (behavior changes = major, fixes = patch)
    • src/TokenCacheWrapper.ts — Cache logic (behavior changes = major, fixes = patch)
    • src/utils.ts — Utility functions
    • src/index.ts — Public API surface (exports changed = major)
    • package.json dependency changes require analysis
  3. Determine the highest applicable SemVer level:

    • Any breaking change → major
    • Any new feature (no breaking) → minor
    • Only fixes/docs → patch

Step 5: Present Changes and Propose Version (REQUIRED)

STOP — Present findings to user and wait for confirmation before proceeding.

Format the proposal as follows:

## Changes since <current-version>

**Commits:**
- <commit message 1>
- <commit message 2>
- ...

**Files changed:** <count>

**Classification:** <major|minor|patch>

**Proposed version:** <current> → <new>

Confirm to proceed with `npm version <increment>`?

Step 6: Execute Version Bump (After Confirmation Only)

Once the user confirms, run:

npm version <major|minor|patch>

This command:

  • Updates package.json version
  • Creates a git commit
  • Creates a git tag

Step 7: Push Changes and Tag

git push && git push --tags

This pushes both the commit and the new version tag to the remote.

Checklist

Before executing version bump:

  • Found latest version tag
  • Retrieved all commits since tag
  • Analyzed changes for SemVer classification
  • Presented summary to user
  • Received explicit confirmation
  • Ran npm version <increment>
  • Pushed commit and tag to remote

When not to use it

  • When the user has not confirmed the version bump
  • When the git history is empty

Prerequisites

Git repositorynpm

Limitations

  • Requires user confirmation before execution
  • Depends on accurate commit messages

How it compares

It provides an evidence-based approach to versioning by analyzing actual commit history rather than relying on manual guesses.

Compared to similar skills

bump-version side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
bump-version (this skill)05moReviewIntermediate
tmux202moReviewIntermediate
jira116moNo flagsBeginner
triaging-issues52moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry