AGENT SKILL
release
Prepare a new version release — bump Cargo.toml, scaffold UPDATES.md section, commit, and tag
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- release
- description
- Prepare a new version release — bump Cargo.toml, scaffold UPDATES.md section, commit, and tag
- disable-model-invocation
- true
02 资源文件 10
- 脚本condition-based-waiting-example.ts4.9 KB
- 参考文档condition-based-waiting.md3.4 KB
- 参考文档CREATION-LOG.md4.2 KB
- 参考文档defense-in-depth.md3.6 KB
- 脚本find-polluter.sh1.5 KB
- 参考文档root-cause-tracing.md5.2 KB
- 参考文档test-academic.md653 B
- 参考文档test-pressure-1.md1.9 KB
- 参考文档test-pressure-2.md2.2 KB
- 参考文档test-pressure-3.md2.6 KB
03 SKILL.md 正文
Prepare a release for the hex-terrain project. Accepts an optional version argument (e.g. /release v0.0.4). If no version is given, auto-increment the patch number from the latest git tag.
Steps
-
Determine version
- If the user provided a version argument, use it (ensure it starts with
v) - Otherwise, run
git tag --sort=-v:refname | grep -m1 '^v[0-9]'to find the latest tag, then increment the patch number - Confirm the version with the user before proceeding
- If the user provided a version argument, use it (ensure it starts with
-
Validate UPDATES.md
- Read
UPDATES.md - Check whether a
## <version>section already exists - If it exists and has bullet items, skip to step 4
- If it exists but is empty, tell the user to fill it in and stop
- If it doesn't exist, proceed to step 3
- Read
-
Scaffold UPDATES.md
- Insert a new
## <version>section at the top (after the# Updatesheading), with an empty bullet placeholder:## v0.0.X - <describe changes here> - Tell the user to fill in the release notes and run
/releaseagain. Stop here.
- Insert a new
-
Bump Cargo.toml version
- Update the
version = "..."field inCargo.tomlto match (without thevprefix) - Example: tag
v0.0.4→version = "0.0.4"
- Update the
-
Verify build
- Run
cargo clippy -- -D warnings— abort if it fails
- Run
-
Commit and tag
- Stage
Cargo.tomlandUPDATES.md - Commit with message:
release <version> - Create an annotated git tag:
git tag -a <version> -m "<version>" - Show the final state with
git log --oneline -3andgit tag --sort=-v:refname | head -5
- Stage
-
Remind about push
- Tell the user: "Run
git push && git push --tagsto trigger the Pages deploy." - Do NOT push automatically
- Tell the user: "Run