/hb:to-release [PR-number] [--pre alpha|beta|rc]from hb
Prepares a library release on its PR (version bump, changelog, draft GitHub release) for review, then tags and publishes after merge. Handles semver, pre-releases, and multi-manifest projects.
Ships in hb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For libraries and other versioned packages. One command, two runs; the PR's state picks the phase: open → prepare, merged → publish. You review and merge in between. This skill never merges.
gh auth status fails → stop: "Run gh auth login, then /hb:to-release again." PR from $ARGUMENTS, else the current branch's: gh pr view <PR> --json number,state,headRefName,baseRefName,mergeCommit,title,body. Closed unmerged → stop.
Versions follow semver: MAJOR.MINOR.PATCH, pre-releases X.Y.Z-<id>.N with alpha < beta < rc < the release. git fetch origin --tags, then sort with git -c versionsort.suffix=- tag --sort=-v:refname: plain v:refname ranks 1.0.0 below its own -rc. The first line is the previous tag; the first without a - suffix is the previous stable. New tags match their format (v1.2.3 or 1.2.3). No tag yet → first release at the manifest version.
Checks: gh pr checks <PR> red or pending → stop and report.
Version: a manifest in the PR (package.json, .claude-plugin/plugin.json, Cargo.toml, pyproject.toml, …) is ahead of the previous tag → use it. Otherwise:
! or BREAKING CHANGE → major, feat → minor, else patch. Below 1.0.0, major becomes minor.--pre <id>: previous tag is a pre-release of the same base → same <id> increments N, a later <id> restarts at .0, an earlier one stops and reports. Otherwise apply the base bump, then -<id>.0.--pre and the previous tag is a pre-release → promote its base (1.0.0-rc.2 → 1.0.0).Bump every file that carries the version, including copies the repo's docs require, in each file's own syntax (PEP 440 writes 1.0.0a0; the tag stays semver), and commit chore(release): <tag>. Done when every version-bearing file reads the new version.
Changelog: CHANGELOG.md exists without an entry for this version → prepend one in its format and commit. No file → the release notes are the changelog; don't create one.
Notes: shaped like the previous release (gh release view <previous> --json name,body): its title, sections, voice, and closing PR ref. Write them from the PR body and the commits since the previous tag; a stable release spans everything since the previous stable, pre-releases included. No previous release → ## Added / ## Changed / ## Fixed, empty ones omitted.
Draft: gh release create <tag> --draft --title <title> --notes-file <file>, plus --prerelease for a pre-release so it never becomes Latest; a draft for this tag exists → gh release edit <tag> --notes-file <file>. A draft creates no tag. Push the branch.
Stop with the version, the PR URL, and the draft URL: "Review the PR and the draft release, merge, then /hb:to-release <PR> again."
The tag is the version the files carry at mergeCommit. Not ahead of the previous tag → stop: the bump never merged. No draft for it → write the notes per step 5 first.
release: published → publish below; it runs after. A workflow that creates the release on push: tags, or release-please, changesets, semantic-release, or goreleaser config → it owns the release: delete the draft, push the tag only, watch its run.gh release view <tag> --json body, so your edits survive. This is the only question.mergeCommit, one line per change the notes span: git tag -a <tag> <sha> -F <file>, then git push origin <tag>. The tag already exists on that commit → skip. On another commit → stop and report; never move a pushed tag.gh release edit <tag> --draft=false --verify-tag. Already published → skip.gh run watch. Red → report the failing job; don't retry.Return the release URL.
Next: /hb:retro in this session, before /clear.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
release-management, version-bump, changelog, github-release, semver
npx claudepluginhub helderberto/agent-skills --plugin hb43 skills in this plugin
/a11y-auditAudit accessibility (WCAG) in frontend code. Use when asked to "check accessibility", "audit a11y", "check WCAG", or find accessibility issues. Don't use for backend code, bundle size (/perf-audit), or translations (/i18n)./architecture-auditSurface architectural friction across a codebase and propose deep-module refactors as RFCs./buildImplement the next unblocked ticket test-first and commit it, or fan every ticket out to parallel subagents with `--all`./checkValidate code quality — auto-fix formatting/lint, verify types, run tests. Use when asked to "validate code", "check code", or validate before committing; also lint-only asks ("run linter", "fix lint errors"). Don't use for committing (/commit), pushing (/to-pr), or writing new tests (/tdd)./codebase-designShared vocabulary for designing deep modules — interface, seam, depth. Use when designing or improving a module's interface, placing a seam, or deciding what an API hides. Don't use for codebase-wide audits (/architecture-audit), behavior-preserving cleanup (/refactor), or UI components (/frontend-ui-engineering)./code-reviewReview a PR or branch on two axes only, quality and spec, in parallel subagents reported side by side.Other plugins' skills for the same job