/skills:cutting-releasesfrom skills
For a project that has shipped and tracks releases in GitHub milestones. How a release's GitHub milestone becomes a version bump, a tag and a GitHub Release. Load BEFORE cutting a release.
Ships in skills. 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.
Turn a finished milestone into a version users can install, and leave a record of what is in it.
Cutting a release is the owner's call. Do it only when asked.
Versions follow semantic versioning, and each number counts up without limit, so
0.9.0 is followed by 0.10.0. GitHub's latest release is the version users
have.
release=0.1.0
gh api "repos/{owner}/{repo}/milestones?state=open" \
--jq ".[] | select(.title == \"$release\") | \"#\(.number) \(.open_issues) open\""
An open issue left in it is the owner's to move or finish. Name each one and stop. Never move one to the next release yourself.
AGENTS.md names every file that carries the version, such as package.json,
its lock file and a plugin manifest. Set each to the release's version. Where
AGENTS.md says a specification's version moves once a release, bump it in the
same pull request.
Find any file AGENTS.md missed before trusting the list:
git grep -nE '"version":\s*"[0-9]+\.[0-9]+\.[0-9]+"' -- ':!**/node_modules/**'
Load the writing-pull-requests skill before gh pr create. Run the
project's checks, because a test can pin the version.
Merging follows the project's own rules for merging.
Once the pull request merges, read the merge commit and confirm that main's
own run for it passed. A tag on a red commit ships the failure.
sha=$(gh pr view <n> --json mergeCommit --jq .mergeCommit.oid)
gh run list --branch main --commit "$sha" --json conclusion,status --jq '.[]'
gh release create "v$release" --target "$sha" --title "$release" --generate-notes
Tag the merge commit, not main. main may have moved since, and the release
would then hold work its milestone never planned.
number=$(gh api "repos/{owner}/{repo}/milestones" \
--jq ".[] | select(.title == \"$release\") | .number")
gh api -X PATCH "repos/{owner}/{repo}/milestones/$number" -f state=closed
Then say which release is next. Where the owner has named it, create its milestone; where not, ask.
AGENTS.md — the files that carry the version, and whether a specification's
version moves with a releasewriting-pull-requests skill — the version bump's pull request bodytriaging-issues skill — how the next release's issues are chosenWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jacygao/skills --plugin skills12 skills in this plugin
/executing-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a planned milestone's issue tree yields the issues ready to work, which working-issues then dispatches. Load BEFORE executing a milestone./planning-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a named milestone there becomes an epic issue and one sub-issue per subtask. Load BEFORE planning a milestone or filing its issues./triaging-issuesFor a project that has shipped and tracks releases in GitHub milestones. How open GitHub issues get a priority and a release milestone, and how a release's issues are made small enough for one pull request each. Load BEFORE triaging issues or planning a release./working-issuesHow GitHub issues become worktrees, subagent briefs, and verified pull requests — one issue, or every ready issue in a milestone. Load BEFORE dispatching implementation work to subagents./writing-agents-mdWhat goes in a project's AGENTS.md or CLAUDE.md, what goes elsewhere, and how the file is laid out. Load BEFORE creating, restructuring or adding a section to one./writing-issuesHow a GitHub issue is written. Load BEFORE running gh issue create.