ghost-him/zerolaunch-rs/bump-version
Claude Code and agent skill by ghost-him/zerolaunch-rs
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
变更 ZeroLaunch-rs 的版本号(含 workspace 根、src-tauri/Cargo.toml 及 tauri.conf.json等),运行 just style,自动 commit 并打 tag
Install
npx vskill@latest install ghost-him/zerolaunch-rs/bump-versionSKILL.md
bump-version — 版本号变更
变更工作区、Tauri 配置的版本号,自动格式化代码,提交并创建 Git Tag。
触发方式
执行流程
- 前置检查 (Pre-flight Check):
- 检查当前 Git 工作区是否干净(无未提交的修改)。如果不干净,提示用户先 commit 或 stash 现有修改,并退出该流程。
- 解析并验证版本号格式(必须是有效的 semver,如
X.Y.Z,自动去除可能存在的v前缀)。 - 参数中版本号之外的内容即「发布重点」(可选,可多行/多行分隔),原样写入 tag 注释。
- 更新版本号:
- 工作区根 `Cargo.toml`:更新
[workspace.package] version = "X.Y.Z"(所有version.workspace = true的 crate 自动继承,无需逐一修改) - `src-tauri/Cargo.toml`:
- 先检查是否为
version.workspace = true。 - 如果不是(当前为独立版本),更新其
version = "X.Y.Z"。 - 如果是(未来改为继承后),则跳过此项(根 Cargo.toml 已覆盖)。
- `src-tauri/tauri.conf.json`:更新根级
"version"为"X.Y.Z"(字段在根层,如"version": "1.0.0")。 - `src-tauri/tauri.conf.portable.json`:同上,更新根级
"version"为"X.Y.Z"。 - `package.json`(根目录):更新
"version"为"X.Y.Z"。
- 同步 Lockfile 与格式化:
- 运行
cargo check(或更新 lockfile 的命令),确保Cargo.lock得到更新。 - 运行
just style进行代码格式化和 clippy 修复。
- 提交前安全校验:
- 运行
git diff --stat展示即将提交的文件变更列表。 - 必须 通过
ask工具询问用户确认,例如:
> 以下文件将被提交(含 just style 格式化后的改动): > (展示 git diff --stat 输出) > 是否确认提交?
- 如果用户拒绝,中断流程并提示用户可手动检查或恢复。
- 如果用户确认,继续下一步。
- Git 提交与 Tag:
git add -Agit commit -m "chore: 变更版本号为 v{version}"- 创建注释型 tag(轻量 tag 没有注释,AI 摘要拿不到发布重点):
- 无发布重点:
git tag -a v{version} -m "release v{version}" - 有发布重点:`git tag -a v{version} -m "release v{version}
{发布重点原样多行文本}"`
- tag 注释由
.github/workflows/release.yml的Generate AI summary读取,作为最高优先级决定 AI 摘要写哪些内容:建议写 1-3 条用户可感知的改动(如“重点:…”“次重点:…”),不要把内部重构写进去。 - tag 已推送后要改注释须
git tag -f -a+ 强推,会改写远端 tag;仅未推送时安全,推送了就留到下个版本。 - 提示用户:已完成本地提交和 Tag 创建,请确认无误后手动执行
git push --follow-tags。
错误处理
- 如果未提供参数,提示用法。
- 如果版本号格式不合规,中止并提示。
- 如果
just style或任意前置步骤失败,中断并保留现场,提示用户错误信息。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.omp/skills/bump-version/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ghost-him/zerolaunch-rs/bump-version)