一键导入
release
Prepare a release by updating the changelog and creating a git tag
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prepare a release by updating the changelog and creating a git tag
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | release |
| description | Prepare a release by updating the changelog and creating a git tag |
| argument-hint | <version e.g. v1.10.2> |
| disable-model-invocation | true |
| allowed-tools | Bash(git *), Bash(gh *), Read, Edit, Grep, Glob |
You are preparing release $ARGUMENTS for the cy project.
The version must match the format vX.Y.Z (e.g. v1.10.2). If it doesn't, stop and tell the user.
Run git tag --sort=-v:refname | head -1 to get the most recent release tag.
Run git log <last-tag>..HEAD --oneline to get all commits since the last release. Read through them carefully to understand what changed.
Based on the commit log, write concise changelog bullet points. Follow the existing style in CHANGELOG.md:
- bullet pointPresent the drafted changelog entries to the user and ask for approval before making any changes. Wait for their confirmation.
Insert a new section at the top of the changelog (after the # Changelog heading) with the format:
## X.Y.Z - YYYY-MM-DD
Note: the heading uses the version without the v prefix. Use today's date.
git add CHANGELOG.md
git commit -m "release: $ARGUMENTS"
git tag $ARGUMENTS
After tagging, remind the user to push the tag with:
git push origin main && git push origin $ARGUMENTS
Do NOT push automatically.