release
Cut a release of the workbench plugin. For maintainers of the template's plugin only. Judges the size of the deliverable (major, minor, patch) from the commits since the newest v* tag, bumps plugin.json and the root marketplace.json entry, writes the CHANGELOG section, commits and creates an annotated tag locally. Use when the user asks to release, tag or bump the version. Never pushes.
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- release
- description
- Cut a release of the workbench plugin. For maintainers of the template's plugin only. Judges the size of the deliverable (major, minor, patch) from the commits since the newest v* tag, bumps plugin.json and the root marketplace.json entry, writes the CHANGELOG section, commits and creates an annotated tag locally. Use when the user asks to release, tag or bump the version. Never pushes.
02 资源文件 2
- 脚本scripts/release.py8.7 KB
- 脚本tests/test_release_skill.py12.7 KB
03 SKILL.md 正文
release
This skill is for maintainers of the template's workbench plugin. One script does the
whole release. It judges, you confirm, it writes. It finds the template root from its own
location (the root must hold .claude-plugin/marketplace.json) and errors clearly when run
from a copy outside a template tree. Plugin releases bump the one root marketplace, so
versions never disagree.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/release/scripts/release.py" --dry-run
python3 "${CLAUDE_PLUGIN_ROOT}/skills/release/scripts/release.py" [--level major|minor|patch]
Size
Commits since the newest v* tag (with no tag yet: since the last commit touching
"version" in plugins/workbench/.claude-plugin/plugin.json, else the root commit):
- major: any breaking commit (
type!:subject or aBREAKING CHANGE:footer), or a commit that deletes aplugins/workbench/skills/<name>/directory or aplugins/workbench/agents/<name>.mdfile. - minor: any
feat. - patch: everything else.
It prints the level and the commits that drove it. --level overrides; the override is
printed and recorded in the release commit body and the tag message.
Steps
- Run with
--dry-run: read the level, drivers, next version and changelog section. Nothing is written. - If the judged level is wrong, re-run with
--level. - Run for real. It bumps
versioninplugins/workbench/.claude-plugin/plugin.jsonand theworkbenchentry in the root.claude-plugin/marketplace.json, prepends## vX.Y.Z - YYYY-MM-DDtoplugins/workbench/CHANGELOG.md(created if missing; Breaking / Features / Fixes / Other;chore(ticket)anddocs(record|plan)commits omitted), commitschore(release): vX.Y.Z, then creates the annotated tagvX.Y.Zwhose message is that section.
Refusals
A dirty tree, a branch other than main, an existing tag vX.Y.Z, or no commits since the
range start. The script never pushes: pushing the commit and tag is the user's call.
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.