Agent skill
version-bump
Bump version in Cargo.toml
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/version-bump
SKILL.md
Version Bump Skill
Use this skill when bumping the version of rhusky.
How to Bump Version
- Edit
Cargo.tomland update theversionfield - Run
cargo update --workspaceto updateCargo.lock - Commit with message:
chore(version): bump X.Y.Z -> A.B.C
Version Types
- patch: Bug fixes, minor improvements (0.0.1 -> 0.0.2)
- minor: New features, backward compatible (0.1.0 -> 0.2.0)
- major: Breaking changes (1.0.0 -> 2.0.0)
What NOT to Do
- Do NOT use
cog bump- it creates local tags which conflict with the CI workflow that creates tags after tests pass - Do NOT create git tags manually - CI creates tags after merge
- Do NOT push to remote - the user must push manually
Workflow
- Edit
Cargo.tomlversion field - Run
cargo update --workspace - Stage changes:
git add Cargo.toml Cargo.lock - Commit:
git commit -m "chore(version): bump X.Y.Z -> A.B.C" - Push the branch or create a PR
- Merge to main
- CI detects version change, creates tag, publishes release
Checking Current Version
bash
# Get version from Cargo.toml
grep '^version' Cargo.toml
After Bumping
After committing the bump, verify:
bash
git log -1 --oneline
git diff HEAD~1 --stat
Then push when ready:
bash
git push origin <branch>
Didn't find tool you were looking for?