/lorenzh:cutting-releasesfrom lorenzh
Release workflow from version bump to verified install. Use when the user asks to "cut a release", "release x.y.z", "ship a new version" or publish to npm or another registry, or when a release was tagged but the package, the back-merge to main or the installed version still needs checking.
Ships in lorenzh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take a release from version bump to a published, installed and verified version, with the release branch merged back into main.
A release is done when the back-merge is merged and the installed version is verified, not when the tag is pushed.
Four actions need the user's explicit OK, asked right before each one: merging the release PR, pushing the tag, merging the back-merge PR, and publishing by hand. Each one changes a shared branch or publishes a version that cannot be reused. A request to "cut a release" starts the workflow; it does not approve these actions. Ask with what will happen (PR number and head SHA, tag name and commit), then wait.
Look for RELEASING.md, a release section in CONTRIBUTING.md, or release scripts in the repo. Where it exists, its commands, branch names and order win over the steps below; use these steps for what it leaves out. Copy the step list below into your task list or notes, with the project's commands filled in, so a long run does not lose its place.
Done when you have a written list of the release steps for this repo, with the commands to run.
Run the project's version script (or edit the versions it names), on a branch from the release branch. Check that every manifest shows the new version: git grep -n '"version"' or the project's equivalent.
Under 0.x, a breaking change takes a minor bump (0.10.x → 0.11.0); a patch never breaks. Caret ranges then work: ^0.x.y with x ≥ 1 accepts every later 0.x patch and no minor. ^0.0.z accepts only 0.0.z.
Done when every versioned file shows the new version on the branch.
If the release PR is a Changesets "Version packages" PR, read references/changesets.md and follow it; such a PR usually shows no checks. Otherwise, open the PR into the release branch the document names (release/x.y, main, ...). Wait for checks with timeout 30m gh pr checks <n> --watch --fail-fast. Ask the user to approve the merge, then merge.
Done when the release PR is merged with the user's OK.
Create the tag the way the document says, after the user's OK (by hand, or a workflow does it on merge). Watch the run for this tag, not the latest run of the workflow, which can be an older or unrelated one. Wait for it to appear, then watch it with a deadline:
sha=$(git rev-parse <tag>^{commit})
for i in $(seq 1 30); do
id=$(gh run list --workflow <release-workflow> --commit "$sha" --json databaseId -q '.[0].databaseId')
[ -n "$id" ] && break
sleep 10
done
[ -n "$id" ] || { echo "no run for $sha"; exit 1; }
timeout 60m gh run watch "$id" --exit-status
Before changing a failed PR or rerunning CI, read the raw job log: gh api repos/{owner}/{repo}/actions/jobs/<job-id>/logs. Compare the failure with the diff and the same workflow on the default branch. If the default branch fails the same test, report that and leave the PR unchanged. Run the failing test locally 5 times (tunable). For an unrelated failure or a transient timeout/network failure, rerun only failed jobs once with gh run rerun <run-id> --failed. Watch with a deadline; report a second failure with its log. If the unrelated test passes, offer a flaky-test issue instead of changing the PR.
If a skill or tool for bounded waits is available, use it. Keep an observable end condition and deadline for every wait. Start long waits through the harness background option, record the job ID and log, and inspect actual state if silent. On timeout, stop dependent work and report the last state. If no available capability can own the wait, name the gap and ask how to proceed.
Done when the release run has passed.
The package can lag behind the workflow. Poll with a limit:
ok=; last=
for i in $(seq 1 30); do
last=$(npm view <pkg>@<dist-tag> version 2>/dev/null)
[ "$last" = "<version>" ] && ok=1 && break
sleep 20
done
[ -n "$ok" ] || { echo "timeout: <pkg>@<dist-tag> is '$last', want <version>"; exit 1; }
echo ready
If a query fails (for example 401 because a subshell got an empty token), do not conclude that the release failed. Confirm with a second method, such as the host's package API or the registry web page, before reporting. Use the registry's own query for other ecosystems (pip index versions, cargo search). 10 minutes is a tunable default. On a timeout, stop the release here and report the last value seen; the back-merge and install steps assume the version exists.
Done when the loop printed ready. A timeout ends the run with the report.
If the release branch is not main, open a PR from the release branch into main. After its checks pass, ask the user to approve the merge, then merge it. A missed back-merge leaves main on the old version, and the next release starts from the wrong number.
Done when the back-merge PR is merged with the user's OK, or the report states that the release branch is main.
Update the installed copy the way users do (npm i -g <pkg>@<version>, claude plugin update <plugin>, ...) and check it:
<cli> --version
A running agent session can keep the old plugin's bin directory on PATH. If --version still shows the old version after the update, reload the plugins (Claude Code: /reload-plugins) or start a new session, then check again.
Done when --version prints the new version.
Release: <version> tag: <tag> workflow: <run url> passed
Registry: <pkg>@<dist-tag> = <version>
Back-merge: <PR url> merged | release branch is main
Installed: <cli> --version -> <version>
Done when every line is filled.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
27 skills in this plugin
/checking-before-publishingPrivacy check for anything about to go public. Use when about to post an issue or PR comment, opening a PR, committing, pushing, publishing a release, blog post or README, or sharing screenshots, GIFs, videos or terminal recordings; when relaying a subagent's text to a public place; or when the user asks to "check for private data", "scrub" or "redact" something before sharing./cloning-voices-with-kittenttsVoice cloning with KittenTTS 2 from a short recording and text. Use when users say "kitten tts", "Stimme klonen", "clone my voice", "sprich diesen Text mit meiner Stimme", or "text to speech with my voice" and want a speech WAV.
/competing-implementationsnpx claudepluginhub lorenzh/skills --plugin lorenzh