一键导入
release
Release strauss-rs: bump version in Cargo.toml, commit, tag, push to trigger cross-platform GitHub Actions build. Usage: /release [version]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Release strauss-rs: bump version in Cargo.toml, commit, tag, push to trigger cross-platform GitHub Actions build. Usage: /release [version]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | release |
| description | Release strauss-rs: bump version in Cargo.toml, commit, tag, push to trigger cross-platform GitHub Actions build. Usage: /release [version] |
| allowed-tools | Bash, Read, Edit |
Automate the full release flow: version bump -> commit -> tag -> push.
The push triggers the GitHub Actions release.yml workflow which builds cross-platform binaries and creates a GitHub Release.
/release 0.2.0), use that version.Cargo.toml and extract the current version value.Before proceeding, check ALL of the following. If any check fails, STOP and inform the user:
git status --porcelain. If output is non-empty, STOP — user must commit or stash first.git tag -l "v{version}". If the tag exists, STOP — that version is already released.git branch --show-current. Warn if not on master but allow the user to proceed if they confirm.Use the Edit tool to change the version = "..." line in Cargo.toml to the new version.
Run cargo check to update Cargo.lock with the new version. This is necessary because Cargo.lock embeds the package version.
cargo check
git add Cargo.toml Cargo.lock
git commit -m "chore: bump version to {version}"
git tag "v{version}"
IMPORTANT: Before pushing, ask the user to confirm. Pushing triggers the GitHub Actions workflow and is irreversible.
After confirmation:
git push origin master --follow-tags
Print a summary:
Release v{version} initiated!
- Commit: chore: bump version to {version}
- Tag: v{version}
- GitHub Actions: https://github.com/j7-dev/strauss-rs/actions
- Release page: https://github.com/j7-dev/strauss-rs/releases/tag/v{version}
GitHub Actions is now building binaries for Linux, macOS (Intel + Apple Silicon), and Windows.
Once complete, the release will appear with downloadable binaries.
git push fails (e.g., network error), tell the user to retry: git push origin master --follow-tagsgit tag -d v{version} && git reset --soft HEAD~1v prefix (e.g., 0.2.0 not v0.2.0). The v prefix is added only for git tags.