Release a new version

VerifiedCaution

Release a new version: bump version, update docs, commit, push, and tag.

Sby Skills Guide Bot
DevOpsIntermediate
7/22/2026
Claude Code
#release-management#semver#cargo#changelog#git-tag

Recommended for

Automated summary

Automates publishing a new mdeck version: computes the semver bump, runs pre-flight checks, refreshes docs and CHANGELOG, then commits, pushes, and tags the release.

Strengths

  • Chains Rust quality gates (cargo fmt, clippy with -D warnings, workspace tests) and aborts on any failure
  • Explicitly verifies that the format spec, README, gallery, and CLAUDE.md are current before bumping
  • Updates CHANGELOG by renaming the [Unreleased] section to a dated version entry
  • Finishes with a pushed tag and reminds the user what the GitHub Actions release workflow will do

Limitations

  • Tightly bound to mdeck: hardcoded paths (crates/mdeck/doc/mdeck-spec.md, GALLERY.md) and project-specific cargo commands
  • Assumes a direct push to main and covers neither release branches nor rollback if something fails after tagging
  • Requires the bump type as an explicit argument and stops otherwise
When to use it

Use it when shipping a major, minor, or patch release of mdeck end to end with quality checks and documentation updates included.

When not to use it

Avoid it on repositories other than mdeck, or when releases must go through a pull request review before tagging.

Security analysis

Caution
Quality score82/100

The skill uses powerful tools (cargo, git push, git tag) but all for legitimate release automation. It does not exfiltrate secrets, obfuscate payloads, or perform destructive filesystem operations. The main caution is that steps like 'git push' and 'git tag ... && git push origin' publish changes without an explicit confirmation gate, and 'cargo update' mutates dependencies. These are standard release actions but warrant human oversight.

Findings
  • •Runs git push and pushes tags to main without confirmation
  • •Runs cargo update which mutates dependency lockfile
How this analysis is made

Examples

Patch release
/release patch
Minor release with doc refresh
Bump mdeck to the next minor version and cut the release
Major release
/release major

name: release description: "Release a new version: bump version, update docs, commit, push, and tag" argument-hint: "<major|minor|patch>"

Release a new version of mdeck.

Input

$ARGUMENTS must be one of: major, minor, patch. If empty or invalid, stop and ask.

Steps

1. Determine the new version

  • Read the current version from the version field in the workspace Cargo.toml
  • Apply the semver bump based on $ARGUMENTS:
    • patch: 0.2.0 -> 0.2.1
    • minor: 0.2.0 -> 0.3.0
    • major: 0.2.0 -> 1.0.0
  • Show the user: "Releasing mdeck v{OLD} -> v{NEW}"

2. Pre-flight checks

  • Run cargo update to update dependencies to the latest compatible versions
  • Run cargo fmt --all -- --check — abort if formatting issues
  • Run cargo clippy --workspace -- -D warnings — abort if warnings
  • Run cargo test --workspace — abort if any test fails
  • Run git status — abort if there are uncommitted changes that are NOT documentation or version files

3. Verify documentation and spec are up to date

  • crates/mdeck/doc/mdeck-spec.md: Review the format spec against current features. Run cargo run -p mdeck -- spec and cargo run -p mdeck -- spec --short to verify the output looks correct and covers all implemented features. If new visualizations, layouts, directives, or keyboard shortcuts have been added since the last release, update the spec (and the short reference in commands/spec.rs) before proceeding.
  • README.md: Verify features list, command reference, visualization table, and gallery preview images are current.
  • GALLERY.md: If rendering has changed, re-export gallery slides (cargo run -p mdeck -- export sample-presentations/gallery.md --output-dir media/gallery) and verify screenshots reflect current rendering.
  • CLAUDE.md: Verify architecture, commands, and patterns sections are accurate.
  • If any documentation is out of date, update it now before proceeding to the version bump.

4. Bump version numbers

  • Update version in the root Cargo.toml [workspace.package] section

5. Update CHANGELOG

  • CHANGELOG.md: Rename the [Unreleased] section to [{NEW_VERSION}] - {TODAY} (YYYY-MM-DD format). If there is no [Unreleased] section, create a new dated entry summarizing changes since the last release

6. Verify the build

  • Run cargo build --workspace to ensure everything compiles with the new version
  • Run cargo test --workspace once more after version bump

7. Commit, push, and tag

  • Stage all changed files: Cargo.toml, Cargo.lock, CHANGELOG.md, and any updated docs
  • Commit with message: Release v{NEW_VERSION}
  • Push to main: git push
  • Create and push tag: git tag v{NEW_VERSION} && git push origin v{NEW_VERSION}

8. Confirm

  • Tell the user the release is tagged and pushed
  • Remind them that the GitHub Actions release workflow will now build binaries, publish to crates.io, and update the Homebrew tap

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/release-a-new-version-mrwakdlu/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/release-a-new-version-mrwakdlu' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/release-a-new-version-mrwakdlu/download' --output '.skill-downloads/release-a-new-version-mrwakdlu/SKILL.md.part' && mv '.skill-downloads/release-a-new-version-mrwakdlu/SKILL.md.part' '.skill-downloads/release-a-new-version-mrwakdlu/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/release-a-new-version-mrwakdlu/SKILL.md' && test -s '.skill-downloads/release-a-new-version-mrwakdlu/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/release' && cp -R '.skill-downloads/release-a-new-version-mrwakdlu' '.claude/skills/release'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/release-a-new-version-mrwakdlu'

openskills read 'release-a-new-version-mrwakdlu'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/release-a-new-version-mrwakdlu/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills