一键导入
release
Release a new version: bump version, generate changelog, tag, and push
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Release a new version: bump version, generate changelog, tag, and push
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Show current branch, working tree status, and any open PR
Create a GitHub issue on the rigbook repo from a description or current conversation context
Push a tagged release to rigbook-build-test repo and let the workflow build it
Checkout the master branch and pull latest changes
Run tests, squash-merge the open PR, pull master, and reset dev branch
Switch to the dev branch, creating or resetting it from master as needed
| name | release |
| description | Release a new version: bump version, generate changelog, tag, and push |
| allowed-tools | Bash(git *, gh *, uv *, cd *), Read, Edit, Write, AskUserQuestion |
NEW_VERSION — the version to release (e.g. v0.3.0). Strip any leading v for pyproject.toml (e.g. 0.3.0).Verify branch and pull latest:
git branch --show-current
If not on master, abort with an error. Then pull:
git pull
Run tests — abort if any fail:
uv run pytest
Parse current version from pyproject.toml:
Read pyproject.toml and extract the current version value.
Bump version in pyproject.toml:
Edit pyproject.toml to set the new version (without the v prefix).
Rebuild uv.lock:
uv lock
Analyze git history since last release:
git log --oneline v{OLD_VERSION}..HEAD
(Use the old version tag. If the tag doesn't exist, use git log --oneline with a reasonable range.)
Write CHANGELOG.md entry:
CHANGELOG.md.# Changelog header (before the first ## entry) with this format:
## v{NEW_VERSION} — {YYYY-MM-DD}
- Brief, user-facing summary of changes (new features, fixes, improvements)
- One bullet per logical change
- Skip internal refactors, CI tweaks, and dev-only changes unless significant
Show the new CHANGELOG entry and ask the user to confirm: Display the new entry text and ask: "Does this changelog look good? Ready to tag and push?" Wait for confirmation before proceeding. If the user wants edits, make them and re-confirm.
Commit, tag, and push:
git add pyproject.toml uv.lock CHANGELOG.md
git commit -m "Bump version to v{NEW_VERSION} and add changelog"
git tag v{NEW_VERSION}
git push
git push origin v{NEW_VERSION}
Watch the GitHub Actions build in the background:
The GitHub Actions workflow creates the release automatically from the tag. Do NOT run gh release create or gh release edit.
gh run watch $(gh run list --limit 1 --json databaseId -q '.[0].databaseId')
Run this with run_in_background: true so the user isn't blocked. When notified of completion, report the build result.
Report success with the new version and tag.