Bump Version Workflow
Use this skill when preparing a version bump for the project. The repository's current
release flow is defined in AGENTS.md; this skill only covers choosing the bump,
updating version files, refreshing site images that show the version, and running the
baseline validations that make the version-bump change ready for normal review. Do not
duplicate commit, tag, push, or pull workflow steps here.
Workflow
- Version Selection
- Use the version or bump already specified by the user, including an accepted
decision from earlier in the session. Otherwise select a bump using the release
pattern below. Ask only when the release intent cannot be inferred from the change
and session context.
- Use the current repository release pattern when advising:
- Prefer
patchby default for fixes, small UX improvements, refactors, docs
updates, model/config changes, and other incremental work within the current
0.y line.
- Use
minorfor milestone cuts: new top-level workflows, pages, modes, or
cross-cutting runtime/protocol changes that feel like a new product phase.
- Treat this as a pragmatic pre-
1.0policy. The changelog history shows patch
releases may still include additive features or removals while the project
remains below 1.0.0.
- When the change is not clearly milestone-sized, select
patch. - The published library crates share this version and depend on each other with caret
requirements, so a patch release must not break their public API. Before bumping,
run prek run cargo-semver-checks --all-files --hook-stage manual. It needs
network access and cargo-semver-checks at the version
.github/actions/setup-rust-prek/action.yml pins. While the version still equals
the newest crates.io release, the hook checks for changes a patch release allows.
When it reports a breaking change, select minor instead. Crates without a
crates.io release yet have no baseline, so the hook skips them.
- Version Bump
- Run
cargo run -p ag-release -- prepare X.Y.Z --date "$(TZ=America/Los_Angeles date +%F)".
It moves [workspace.package].version and every versioned internal path dependency
to the selected version, refreshes Cargo.lock, and adds the
## [vX.Y.Z] - YYYY-MM-DD changelog heading below ## [Unreleased]. The Pacific
date follows the repository's PST/PDT release calendar.
- Update any other generated metadata affected by the bump. Check that no internal
workspace dependency still pins the previous version.
- Changelog
- Fill in the new
CHANGELOG.mdentry, moving any notes still under
## [Unreleased] into it.
- Ensure content adheres to Keep a Changelog.
- Add a
### Contributorssection under the new release entry with a bullet list of
GitHub usernames (example: - @minev-dev).
- Build the contributor list from commits since the previous tag and deduplicate
names.
- Versioned Site Images
- The marketing demo (
docs/site/static/demo/demo.gifanddemo.png) and the
sessions and tab_tour recordings under docs/site/static/features/ come from
the generators in crates/agentty/tests/showcase/ and show the real package
version in the top bar. After the version bump, regenerate all three GIFs with the
AGENTTY_MARKETING_ASSETS command in the "Regenerate Marketing Assets" section of
skills/refresh-feature-recordings/references/recording.md, then extract each
same-named PNG poster. Follow skills/refresh-feature-recordings/SKILL.md and that
page for the recording environment, frame selection, and poster extraction. Never
record on the bare host or substitute an ad hoc container invocation. If the
recording environment is unavailable, report each GIF and PNG still showing the
previous version as blocked.
- Open every other PNG under
docs/site/static/, including thefeatures/posters
and social-card.png. Check for outdated information: release versions, model or
agent names, CLI versions, dates, renamed UI, and hero text. FeatureTest posters
show the fixed v<test> version label, so that label is current. Refresh stale
images through their owning procedure: skills/refresh-feature-recordings/SKILL.md
for feature recordings, or the social-card.png command in
docs/site/content/docs/contributing/managing-docs-with-zola.md. Report each image
you checked and each image you refreshed.
- Base Validation
- Run the baseline repository validations from the
prekhook catalog in
.pre-commit-config.yaml:
prek run --all-filesprek run test-workspace --all-files --hook-stage manualprek run test-doc --all-files --hook-stage manual- Check the crates.io release after the version bump. Both hooks need network access:
prek run package-crates --all-files --hook-stage manualpackages every
publishable crate and builds it from its tarball, as cargo publish would.
prek run cargo-semver-checks --all-files --hook-stage manualconfirms the
selected bump allows every public API change.
- Pull-request CI runs the same two hooks when a change moves the workspace version,
and the release tag runs them again before anything is published.
- If validation fails, fix the underlying issue and rerun the failing hook before
handoff.