| name | release |
| description | Release workflow for kvn-tui: bump version in Cargo.toml and PKGBUILD, regenerate Cargo.lock, commit, and tag. |
Triggers
Activate this skill when the user says any of the following:
- "bump (major|minor|patch) version"
- "prepare release"
- "update release"
- "release X.Y.Z"
Workflow
Follow these steps exactly:
- Read current version from
Cargo.toml (version = "X.Y.Z").
- Determine new version:
- If user said "patch" → increment patch (
0.6.2 → 0.6.3)
- If user said "minor" → increment minor, reset patch to 0 (
0.6.2 → 0.7.0)
- If user said "major" → increment major, reset minor and patch to 0 (
0.6.2 → 1.0.0)
- If user provided an explicit version (e.g. "release 0.7.1") → use that version
- Update files (replace the old version with the new one):
Cargo.toml — version = "X.Y.Z"
pkg/arch/PKGBUILD — pkgver=X.Y.Z
- Regenerate
Cargo.lock by running cargo check.
- Stage changes:
git add Cargo.toml Cargo.lock pkg/arch/PKGBUILD
- Commit:
git commit -m "chore(release): bump version to X.Y.Z"
- Tag:
git tag -a vX.Y.Z -m "Release vX.Y.Z"
- Ask the user whether to push:
git push && git push origin vX.Y.Z
Validation
- Ensure the version string follows semantic versioning (
MAJOR.MINOR.PATCH).
- Do not create a release tag if the working tree is dirty (uncommitted changes exist).
- Always run
cargo check so Cargo.lock is updated and the build is validated.