Index of every page on this site: llms.txt
All skills
Run it yourself

This skill should be used when the user asks to "create a release tag", "bump version", "tag a release", "release major/minor/patch", "bump major", "bump minor", "bump patch", "create version tag", or "/release-tag". Bumps semantic version, invokes changelog, and creates annotated git tag.

Requires /changelog
  • 1 file
  • 3.7 KB
  • Updated 2 days ago
  • GitHub
Use this Skill: https://skilld.dev/gh/utkudarilmaz/claude-code-setup/release-tag

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈76 tokens for metadata: the name and description. ≈867 when used: this file.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈304 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Release Tag Skill

Purpose

Bump a semantic version tag, update CHANGELOG.md via the /changelog skill, and create an annotated git tag with a commit summary message. Keeps the tag prefix the repository already uses (1.2.3 or v1.2.3) and handles initial tagging from 0.0.0 when no tags exist.

Invocation

/release-tag <major|minor|patch>

A bump type argument is required. Reject invocation without one.

/release-tag patch   # 1.2.3 -> 1.2.4, v1.2.3 -> v1.2.4
/release-tag minor   # 1.2.3 -> 1.3.0
/release-tag major   # 1.2.3 -> 2.0.0

Workflow

Execute these steps sequentially:

Step 1: Determine current version

git tag --sort=-version:refname | head -1

Find the tag prefix from the latest tag:

  • Tag starts with v (for example v1.2.3): the prefix is v
  • Otherwise (for example 1.2.3): there is no prefix

If no tags exist, use 0.0.0 as the base version and ask the user whether the first tag should have a v prefix. Go modules need the v prefix, so recommend it when the repository has a go.mod file.

Step 2: Calculate new version

Strip the prefix, parse the current version into major.minor.patch components and apply the bump:

Bump type Rule
patch Increment patch, keep major and minor
minor Increment minor, reset patch to 0, keep major
major Increment major, reset minor and patch to 0

Add the prefix back to get the new tag name. Use this full tag name as <new-version> in every later step.

Report to the user: Bumping <current> -> <new>

Step 3: Verify clean working tree

git status --porcelain

If the working tree has uncommitted changes, stop and report the issue. Do not proceed with a dirty tree. The user must commit or stash changes first.

Step 4: Invoke changelog

Use the Skill tool to invoke core:changelog. This updates CHANGELOG.md with the latest changes.

After changelog completes, stage and commit the changelog update:

git add CHANGELOG.md
git commit -m "docs: update changelog for <new-version>"

Step 5: Build tag message

Gather commits since the last tag (or all commits if no previous tag):

git log <last-tag>..HEAD --oneline
# or if no previous tag:
git log --oneline

Group commits by conventional commit type (feat, fix, docs, refactor, etc.) for the tag message. Format as a readable summary.

Step 6: Create annotated tag

git tag -a <new-version> -m "<tag-message>"

Report success: Created tag <new-version>

Step 7: Push

Push the changelog commit and the tag in one atomic push, so the tag never reaches the remote without its commit:

git push --atomic origin HEAD <new-version>

Never force push. If the push is rejected, stop and report it; the local tag stays.

Rules

  • Keep the tag prefix: Follow the prefix of the latest tag; never add or drop a v on your own
  • Annotated tags only: Always use git tag -a, never lightweight tags
  • Clean tree required: Refuse to tag with uncommitted changes (step 3)
  • Changelog first: Always invoke /changelog before creating the tag (step 4)
  • Push after tagging: Push the commit and the tag from the main conversation (step 7); never force push
  • No AI attribution: Never add Co-Authored-By or AI references to the changelog commit
  • Bump argument required: Reject invocation without major, minor, or patch

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 7ee2637. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 days ago

README badge

README badge for utkudarilmaz/claude-code-setup/release-tag