Agent Skills › rustfs/rustfs › rustfs-release-version-bump

rustfs-release-version-bump

GitHub

用于 RustFS 项目发布流程的版本号更新与安装引用对齐。支持 prepare 和 post-release 阶段,精确修改 Cargo.toml、README、Helm Chart 及 RPM spec 等文件版本,并执行严格验证确保一致性。

.agents/skills/rustfs-release-version-bump/SKILL.md rustfs/rustfs

触发场景

需要更新 RustFS 项目版本号 发布后同步安装文档和制品引用

安装

npx skills add rustfs/rustfs --skill rustfs-release-version-bump -g -y
更多选项

非标准路径

npx skills add https://github.com/rustfs/rustfs/tree/main/.agents/skills/rustfs-release-version-bump -g -y

不安装直接使用

npx skills use rustfs/rustfs@rustfs-release-version-bump

指定 Agent (Claude Code)

npx skills add rustfs/rustfs --skill rustfs-release-version-bump -a claude-code -g -y

安装 repo 全部 skill

npx skills add rustfs/rustfs --all -g -y

预览 repo 内 skill

npx skills add rustfs/rustfs --list

SKILL.md

Frontmatter
{
    "name": "rustfs-release-version-bump",
    "description": "Prepare an exact RustFS Cargo version or align installation references after publication. Use for requested version bumps or the release workflow."
}

Release Version Files

Require an exact target; ask if missing or ambiguous. Reject targets containing -preview: those are tag-only. Infer post-release only from an explicit request or parent workflow; otherwise use prepare. Delivery defaults to local edit/verify; commit, push, PR, and merge follow existing authorization and Git rules.

Stage Files and constraints
prepare Only Cargo.toml and Cargo.lock: workspace package, internal dependency, and workspace member versions become <target>. External dependencies stay unchanged.
post-release Only README.md, README_ZH.md, flake.nix, helm/rustfs/Chart.yaml, and rustfs.spec. Cargo may already target the next release; leave it untouched.

Before installation edits, verify the exact non-preview Release, downloadable assets/source archive, pullable rustfs/rustfs:<target> image manifest, and published Helm chart. Block on missing artifacts. Do not downgrade defaults if a newer deliverable superseded the target. Preview preparation retains the previous published installation references; follow-up commits never replace either validated tag.

Packaging policy:

  • Docker image tags have no v prefix. Derive chart/app versions with scripts/helm_chart_version.sh <target> (beta.N -> 0.N.0; other versions unchanged). Helm CI derives versions from the final tag, so no early chart bump is required.
  • RPM Version is numeric; Release is the prerelease suffix or 1 for stable. Expanded Source0 and the unpack directory must resolve to the exact target including its suffix. Add the changelog entry using current git identity, date, and target; never copy an example identity/date.
  • Changing these mappings requires explicit confirmation.

Verification follows root tiers: prepare validates Cargo metadata with the updated lockfile and checks every workspace/internal version with no unrelated lockfile updates. post-release renders Helm with the verified image, runs scripts/test_helm_chart_version.sh for chart version edits, and checks README, Nix, and RPM references. Run git diff --check; report unresolved required checks as BLOCKED without unrelated fixes.

For authorized commits, keep stages separate: chore(release): prepare <target> or chore(release): align installation references for <target>. Report target/stage, changed files, verification, material uncertainty, and actual commit/push/PR state.

版本历史

  • 6f582b0 当前 2026-10-20 01:28

    重构了版本准备逻辑,细化了 prepare 和 post-release 阶段的文件约束与验证步骤;明确禁止使用包含 -preview 的目标版本;增加了 Helm Chart 版本推导脚本的使用说明及更严格的变更检查机制。

  • 5f4d5e8 2026-09-28 15:59

    将默认文件范围拆分为 prepare 和 post-release 两个阶段;新增对 Docker 标签格式、Helm 版本映射及 Spec Release 字段的硬性规则;增加发布前置条件验证逻辑。

  • 1880b42 2026-09-23 05:26

    将完整发布流程(含 commit/push/PR)拆分为独立的版本提升技能,当前仅负责版本文件准备与验证,发布标签归属其他技能。

  • 0fe41da 2026-08-29 02:10
  • 0d129ec 2026-08-20 14:32

同 Skill 集合

.agents/skills/adversarial-validation/SKILL.md
.agents/skills/arch-checks/SKILL.md
.agents/skills/code-change-verification/SKILL.md
.agents/skills/issue-triage/SKILL.md
.agents/skills/plugin-contract-guard/SKILL.md
.agents/skills/pr-creation-checker/SKILL.md
.agents/skills/pr-review/SKILL.md
.agents/skills/rust-code-quality/SKILL.md
.agents/skills/rustfs-logging-governance/SKILL.md
.agents/skills/rustfs-release-publish/SKILL.md
.agents/skills/security-advisory-lessons/SKILL.md
.agents/skills/test-coverage-improver/SKILL.md
.agents/skills/tier-debug/SKILL.md
.mimocode/skills/issue-triage/SKILL.md
.mimocode/skills/pr-review/SKILL.md

元信息

文件数
0
版本
6f582b0
Hash
49c1c88b
收录时间
2026-08-20 14:32

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-21 16:35
浙ICP备14020137号-1