Skip to content
Skills Library
DevOps & cloud · Automation

05-release

/05-release

Calculate the next semantic version, prepare CHANGELOG.md and version manifests via the project's branch/PR flow, and tag the updated default branch. Activate when preparing a release or running /05-release.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Calculate the next semantic version, prepare CHANGELOG.md and version manifests via the project's branch/PR flow, and tag the updated default branch. Activate when preparing a release or running /05-release.

Original author description

Calculate the next semantic version, prepare CHANGELOG.md and version manifests via the project's branch/PR flow, and tag the updated default branch. Activate when preparing a release or running /05-release.

How it works

  1. Constraints & execution scope
  2. Execution steps
  3. Output contract & verification gate (tag-ready state)
Original SKILL.md headings · 51 lines, 593 words
SKILL.md preview
---
name: 05-release
description: Calculate the next semantic version, prepare CHANGELOG.md and version manifests via the project's branch/PR flow, and tag the updated default branch. Activate when preparing a release or running /05-release.
metadata:
  lifecycle_stage: "05-release"
  mode: "interactive"
  recommended_flags: "--effort low"
---

# 05 — Release

## Constraints & execution scope
- **Tone:** Follow [strict-technical-tone.md](../../fragments/strict-technical-tone.md).
- **Permission:** Edit `CHANGELOG.md` and version strings in build manifests in CWD.
1. **No re-auditing**: Assume `/04-audit` is complete and all `P0` blockers are resolved. Do not re-audit documentation, CI workflows, governance files, or code quality.
2. **Verification gate**: Never commit on or push the default branch. Never execute `git commit`, `git tag`, or `git push` without explicit user confirmation.

## Execution steps

### 1. Pre-flight & SemVer calculation
- Verify a clean working tree (`git status --porcelain` is empty) and run `git fetch`.
- Inspect the latest tag with `git describe --tags --abbrev=0`:
  - **No tags yet (first release):** Use the version provided as an argument, or propose `0.1.0`.
  - **Non-SemVer tag** (does not match `vX.Y.Z`, e.g., `release-3`): Ask the user for the target version instead of guessing.
- Otherwise inspect commits from `<last-tag>..HEAD` and calculate the next `X.Y.Z` Semantic Version (unless passed as an argument):
  - `MAJOR`: Breaking CLI, API, schema, or behavioral changes (while `MAJOR` is `0`, breaking changes bump `MINOR` instead).
  - `MINOR`: Backwards-compatible new features or subcommands.
  - `PATCH`: Backwards-compatible bug fixes, performance improvements, or security patches.

### 2. Release readiness check & artifact updates
Inspect `CHANGELOG.md` and project manifests (`pom.xml`, `build.gradle`, `package.json`, `Cargo.toml`, `pyproject.toml`, `CMakeLists.txt`). Leave build-time or tag-injected version fallbacks (e.g., `"dev"`) untouched.

- **If release artifacts need updating** (`CHANGELOG.md` does not yet have `## [X.Y.Z]` or still has entries under `## [Unreleased]`, or a manifest has an older hardcoded version):
  1. Run `date +%F` for `YYYY-MM-DD` (never infer the date).
  2. Update hardcoded manifest version strings to `X.Y.Z` (and lockfiles if required by the toolchain).
  3. Update `CHANGELOG.md` following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) (creating it with `## [Unreleased]` and `## [X.Y.Z] - YYYY-MM-DD` if it does not exist):
     - Move entries under `## [Unreleased]` (or compile notable user-facing changes since the last tag, preserving `` (`#<id>`) `` references) into `## [X.Y.Z] - YYYY-MM-DD`, leaving an empty `## [Unreleased]` heading above it.
     - Group entries under `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
     - Update reference compare links at the bottom only if existing reference links are already present, matching their host and URL format. Leave compare links out if none exist or if this is a first release.
  4. **Stop without proposing a tag.** Output the calculated version and modified files, and instruct the user to:
     - Commit (`chore(release): prepare vX.Y.Z`) and merge via the project's branch/PR flow (if on the default branch, branch first via `git-brx` or the project's convention).
     - Update the default branch and re-run `/05-release`.

- **If already ready** (`## [X.Y.Z]` already exists in `CHANGELOG.md` with an empty `## [Unreleased]`—even if the PR date differs from today—and manifests match `X.Y.Z`, or the repository has no hardcoded manifest versions or `CHANGELOG.md` to update):
  1. Do not treat `chore(release): prepare vX.Y.Z` as unreleased work.
  2. Verify the working tree is on the default branch and `HEAD` matches `origin/<default>`. If behind or diverged, stop and tell the user to update the default branch before tagging.

## Output contract & verification gate (tag-ready state)
Before executing any mutating Git commands, output:
1. **Calculated version:** `vX.Y.Z` (with a 1-sentence technical justification based on the commit log).
2. **Target commit:** Exact `HEAD` commit from `git log -1 --oneline` so the user can verify what is being tagged.
3. **Proposed commands:**
   ```bash
   git tag -a vX.Y.Z -m "Release vX.Y.Z"
   git push origin vX.Y.Z
   ```

Wait for explicit confirmation before executing `git tag` or `git push`. Publishing a release on a Git host is up to the user.

Versions

The database has no other skills named 05-release.

Database snapshot: 13.11.2026 · package version a3aff35160fe (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100semantic-release
    Automates versioning and publishing: reads commit messages, picks the next semantic version, writes release notes and a changelog, tags the commit, publishes to npm and creates the GitHub release. Use when a user asks to automate npm publishing, set up semantic-release in GitHub…
  • 100release
    Release a new paperus version (0.0.N) - check it is ready, set the versions, write the changelog, tag, and watch the Release workflow publish it. Use when asked to release, publish or tag a version.
  • 100release
    Create a release branch from dev with version bumps and changelog. Use when the user wants to prepare a new release, bump a version, or cut a release. Triggers on phrases like "release 17.1.2", "cut a release", "prepare a release", "version bump", or just "/release".
  • 100cutting-a-release
    Use when cutting or publishing a tycoon release: opening the next version branch, finalizing CHANGELOG.md and docs/releases/, merging the release branch to main, pushing the version tag, or troubleshooting the PyPI trusted-publishing workflow.
  • 100release
    Bump VERSION, fold Unreleased changelog entries into that version, tag, and publish a GitHub release. Use when the user asks to release, bump the version, cut a tag, publish vX.Y.Z or a prerelease (beta/rc), or move the current Unreleased changelog into the latest version.
  • 100changelog-generator
    Use when producing release notes from Conventional Commits, computing the next semantic version from a commit stream, generating CHANGELOG.md, or automating release notes in CI. Triggers on "generate the changelog", "what version bump do these commits require", "release notes",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.