Bump Release
Support for both regular and beta releases.
Parameters
version: Optional explicit version to use (e.g., 2.0.0). When provided, skips automatic version inference
--beta: Create a beta release with -beta.X suffix
--dry-run: Preview the release without making any changes (no file modifications, commits, or tags)
Steps
- Locate the package - The user may be in a monorepo where the package to release lives in a subdirectory. Look for
package.json in the current working directory first; if not found, ask which package to release. All file paths (CHANGELOG.md, package.json, justfile) are relative to the package directory.
- Update the
CHANGELOG.md file with all changes since the last version release (skip this step for beta releases).
- Bump the version in
package.json:
- Regular release: Follow semantic versioning (e.g., 1.2.3)
- Beta release: Add
-beta.X suffix (e.g., 1.2.3-beta.1)
- Format files - If a
justfile exists in the repository, run just full-write to ensure CHANGELOG.md and package.json are properly formatted
- Commit the changes with a message like "docs: release "
- Create a new git tag by running
git tag -a v<version> -m "<version>"
Note: When --dry-run flag is provided, display what would be done without making any actual changes to files, creating commits, or tags.
Tasks
Process
Check for arguments - Determine if version was provided, if this is a beta release (--beta), and/or dry-run (--dry-run)
Check for clean working tree - Run git status --porcelain to verify there are no uncommitted changes unrelated to this release. If there are, run the commit skill to commit them before proceeding
Write Changelog - Examine diffs between the current branch and the previous tag to write Changelog. Then find
relevant PRs by looking at the commit history and add them to each changelog (when available). If package.json contains
a files field, only include changes within those specified files/directories. If no files field exists, include all
changes except test changes, CI/CD workflows, and development tooling
Follow format - Consult references/common-changelog.md for the Common Changelog specification
Check version - Get current version from package.json
Bump version - If version argument provided, use it directly. Otherwise, if unchanged since last release, increment per Semantic Versioning rules:
For regular releases:
- PATCH (x.x.X) - Bug fixes, documentation updates
- MINOR (x.X.x) - New features, backward-compatible changes
- MAJOR (X.x.x) - Breaking changes
For beta releases (--beta flag):
- If current version has no beta suffix: Add
-beta.1 to the version
- If current version already has beta suffix: Increment beta number (e.g.,
-beta.1 → -beta.2)
- If moving from beta to release: Remove beta suffix and use the base version
When unsure — If the changes are ambiguous (e.g., a new feature that may also break consumers, or a mix of fixes and features), use AskUserQuestion to let the user decide the semver level:
- header: "Version"
- question: "Changes include both
<summary>. Which release level?"
- options: list the plausible semver levels with their resulting version (e.g., "1.3.0 (minor)", "2.0.0 (major)")
- multiSelect: false
Use the user's choice and skip step 7
Confirm version - When the version was confidently inferred (no explicit version argument), use AskUserQuestion to confirm before proceeding:
- header: "Version"
- question: "Release
<current> → <inferred>?"
- options:
- The inferred version label (e.g., "1.3.0 (minor)") — mark as "(Recommended)"
- One alternative that is one semver level higher (e.g., "2.0.0 (major)")
- One alternative that is one semver level lower when possible (e.g., "1.2.4 (patch)")
- multiSelect: false
If the user picks an alternative, use that version for the remaining steps. Skip this step when --dry-run is active (show the inferred version in the preview instead)
Beta Release Logic
When --beta flag is provided in the $ARGUMENTS
- Check for explicit version - If
version provided:
- If version already has beta suffix → use as-is
- If version has no beta suffix → append
-beta.1
- Otherwise, parse current version from
package.json and determine beta version:
- If current version is
1.2.3: Create 1.2.4-beta.1 (increment patch + beta.1)
- If current version is
1.2.3-beta.1: Create 1.2.3-beta.2 (increment beta number)
- If current version is
1.2.3-beta.5: Create 1.2.3-beta.6 (increment beta number)
- Skip CHANGELOG.md update - Beta releases don't update the changelog
- Commit and tag with beta version (e.g.,
v1.2.4-beta.1)
Output
For regular releases only, generate changelog entries in CHANGELOG.md following the format and writing guidelines in references/common-changelog.md. Use the Changed, Added, Removed, Fixed categories (in that order). Every entry must begin with a present-tense verb in imperative mood.
Inclusion Criteria
For regular releases only (changelog generation is skipped for beta releases):
- Files field constraint - If
package.json contains a files field, only include changes to files/directories specified in that array. All other codebase changes should be excluded from the CHANGELOG
- Production changes only - When no
files field exists, exclude test changes, CI/CD workflows, and development tooling
- Reference pull requests - Link to PRs when available for context
- Net changes only - Examine diffs between the current branch and the previous tag to identify changes
- Only dependencies and peerDependencies changes - Exclude changes to devDependencies
Examples
Regular Release
# Create a regular patch/minor/major release
/bump-release
# Preview what a regular release would do
/bump-release --dry-run
Beta Release
# Create a beta release with -beta.X suffix
/bump-release --beta
# Preview what a beta release would do
/bump-release --beta --dry-run
Explicit Version
# Specify exact version
/bump-release 2.0.0
# Specify exact beta version
/bump-release 2.0.0-beta.1
# Combine with flags
/bump-release 2.0.0 --dry-run
Version Examples
| Current Version |
Release Type |
New Version |
1.2.3 |
Regular |
1.2.4 (patch) |
1.2.3 |
Beta |
1.2.4-beta.1 |
1.2.3-beta.1 |
Beta |
1.2.3-beta.2 |
1.2.3-beta.5 |
Regular |
1.2.3 |
1.2.3 |
2.0.0 |
2.0.0 |
1.2.3 |
2.0.0 + Beta |
2.0.0-beta.1 |
Resources
references/common-changelog.md — Common Changelog format and writing guidelines
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: bump-release-33description: This skill should be used when the user asks to "bump release", "cut a release", "tag a release", "bump version", "create a new release", or mentions release versioning, changelog updates, or version tagging workflows. Use when this capability is needed.4---56# Bump Release78Support for both regular and beta releases.910## Parameters1112- `version`: Optional explicit version to use (e.g., `2.0.0`). When provided, skips automatic version inference13- `--beta`: Create a beta release with `-beta.X` suffix14- `--dry-run`: Preview the release without making any changes (no file modifications, commits, or tags)1516## Steps17180. **Locate the package** - The user may be in a monorepo where the package to release lives in a subdirectory. Look for `package.json` in the current working directory first; if not found, ask which package to release. All file paths (`CHANGELOG.md`, `package.json`, `justfile`) are relative to the package directory.191. Update the `CHANGELOG.md` file with all changes since the last version release (**skip this step for beta releases**).202. Bump the version in `package.json`:21 - **Regular release**: Follow semantic versioning (e.g., 1.2.3)22 - **Beta release**: Add `-beta.X` suffix (e.g., 1.2.3-beta.1)233. **Format files** - If a `justfile` exists in the repository, run `just full-write` to ensure `CHANGELOG.md` and `package.json` are properly formatted244. Commit the changes with a message like "docs: release <version>"255. Create a new git tag by running `git tag -a v<version> -m "<version>"`2627**Note**: When `--dry-run` flag is provided, display what would be done without making any actual changes to files, creating commits, or tags.2829## Tasks3031## Process32331. **Check for arguments** - Determine if `version` was provided, if this is a beta release (`--beta`), and/or dry-run (`--dry-run`)342. **Check for clean working tree** - Run `git status --porcelain` to verify there are no uncommitted changes unrelated to this release. If there are, run the `commit` skill to commit them before proceeding353. **Write Changelog** - Examine diffs between the current branch and the previous tag to write Changelog. Then find36 relevant PRs by looking at the commit history and add them to each changelog (when available). If `package.json` contains37 a `files` field, only include changes within those specified files/directories. If no `files` field exists, include all38 changes except test changes, CI/CD workflows, and development tooling394. **Follow format** - Consult `references/common-changelog.md` for the Common Changelog specification405. **Check version** - Get current version from `package.json`416. **Bump version** - If `version` argument provided, use it directly. Otherwise, if unchanged since last release, increment per Semantic Versioning rules:42 - **For regular releases**:43 - **PATCH** (x.x.X) - Bug fixes, documentation updates44 - **MINOR** (x.X.x) - New features, backward-compatible changes45 - **MAJOR** (X.x.x) - Breaking changes46 - **For beta releases** (`--beta` flag):47 - If current version has no beta suffix: Add `-beta.1` to the version48 - If current version already has beta suffix: Increment beta number (e.g., `-beta.1` → `-beta.2`)49 - If moving from beta to release: Remove beta suffix and use the base version50 - **When unsure** — If the changes are ambiguous (e.g., a new feature that may also break consumers, or a mix of fixes and features), use `AskUserQuestion` to let the user decide the semver level:5152 - header: "Version"53 - question: "Changes include both `<summary>`. Which release level?"54 - options: list the plausible semver levels with their resulting version (e.g., "1.3.0 (minor)", "2.0.0 (major)")55 - multiSelect: false5657 Use the user's choice and skip step 7587. **Confirm version** - When the version was confidently inferred (no explicit `version` argument), use `AskUserQuestion` to confirm before proceeding:5960 - header: "Version"61 - question: "Release `<current>` → `<inferred>`?"62 - options:63 - The inferred version label (e.g., "1.3.0 (minor)") — mark as "(Recommended)"64 - One alternative that is one semver level higher (e.g., "2.0.0 (major)")65 - One alternative that is one semver level lower when possible (e.g., "1.2.4 (patch)")66 - multiSelect: false6768 If the user picks an alternative, use that version for the remaining steps. Skip this step when `--dry-run` is active (show the inferred version in the preview instead)6970## Beta Release Logic7172When `--beta` flag is provided in the $ARGUMENTS73741. **Check for explicit version** - If `version` provided:75 - If version already has beta suffix → use as-is76 - If version has no beta suffix → append `-beta.1`772. **Otherwise, parse current version** from `package.json` and **determine beta version**:78 - If current version is `1.2.3`: Create `1.2.4-beta.1` (increment patch + beta.1)79 - If current version is `1.2.3-beta.1`: Create `1.2.3-beta.2` (increment beta number)80 - If current version is `1.2.3-beta.5`: Create `1.2.3-beta.6` (increment beta number)813. **Skip CHANGELOG.md update** - Beta releases don't update the changelog824. **Commit and tag** with beta version (e.g., `v1.2.4-beta.1`)8384## Output8586For regular releases only, generate changelog entries in `CHANGELOG.md` following the format and writing guidelines in `references/common-changelog.md`. Use the `Changed`, `Added`, `Removed`, `Fixed` categories (in that order). Every entry must begin with a present-tense verb in imperative mood.8788## Inclusion Criteria8990For regular releases only (changelog generation is skipped for beta releases):9192- **Files field constraint** - If `package.json` contains a `files` field, only include changes to files/directories specified in that array. All other codebase changes should be excluded from the CHANGELOG93- **Production changes only** - When no `files` field exists, exclude test changes, CI/CD workflows, and development tooling94- **Reference pull requests** - Link to PRs when available for context95- **Net changes only** - Examine diffs between the current branch and the previous tag to identify changes96- **Only dependencies and peerDependencies changes** - Exclude changes to devDependencies9798## Examples99100### Regular Release101102```bash103# Create a regular patch/minor/major release104/bump-release105106# Preview what a regular release would do107/bump-release --dry-run108```109110### Beta Release111112```bash113# Create a beta release with -beta.X suffix114/bump-release --beta115116# Preview what a beta release would do117/bump-release --beta --dry-run118```119120### Explicit Version121122```bash123# Specify exact version124/bump-release 2.0.0125126# Specify exact beta version127/bump-release 2.0.0-beta.1128129# Combine with flags130/bump-release 2.0.0 --dry-run131```132133## Version Examples134135| Current Version | Release Type | New Version |136| --------------- | -------------- | --------------- |137| `1.2.3` | Regular | `1.2.4` (patch) |138| `1.2.3` | Beta | `1.2.4-beta.1` |139| `1.2.3-beta.1` | Beta | `1.2.3-beta.2` |140| `1.2.3-beta.5` | Regular | `1.2.3` |141| `1.2.3` | `2.0.0` | `2.0.0` |142| `1.2.3` | `2.0.0` + Beta | `2.0.0-beta.1` |143144## Resources145146- `references/common-changelog.md` — Common Changelog format and writing guidelines147148---149> Converted and distributed by [TomeVault](https://tomevault.io/claim/paulrberg) — claim your Tome and manage your conversions.150<!-- tomevault:4.0:skill_md:2026-04-11 -->