uv-versioning
uv-versioning
Safe, repeatable uv version usage for single-package and workspace projects.
Use When
- You need current package version quickly.
- You need semantic/pre-release/post/dev bump updates.
- You need workspace package bumping via
--package. - You want preview-only changes via
--dry-run.
Core Rules
- Prefer
--dry-runfirst for any non-trivial bump. - Multiple
--bumpflags are allowed; order matters. - Use
--package <name>for workspace member bumps. - Use
--output-format jsonwhen scripts consume output.
Read Version
uv version
uv version --short
uv version --output-format json
Workspace member:
uv version --package pykeepass-stubs
uv version --package pykeepass-stubs --output-format json
Bump Components
Supported components:
major,minor,patchalpha,beta,rcpost,devstable
Semantics:
major:1.2.3 -> 2.0.0minor:1.2.3 -> 1.3.0patch:1.2.3 -> 1.2.4alpha:1.2.3a4 -> 1.2.3a5beta:1.2.3b4 -> 1.2.3b5rc:1.2.3rc4 -> 1.2.3rc5post:1.2.3.post5 -> 1.2.3.post6dev:1.2.3a4.dev6 -> 1.2.3.dev7stable: clear pre/dev/post to stable core, e.g.1.2.3b4.post5.dev6 -> 1.2.3
Common Patterns
Main package:
uv version --bump major --bump alpha --dry-run
uv version --bump major --bump alpha
uv version --bump stable --dry-run
uv version --bump stable
Workspace package:
uv version --package pykeepass-stubs --bump major --bump alpha --dry-run
uv version --package pykeepass-stubs --bump major --bump alpha
uv version --package pykeepass-stubs --bump stable --dry-run
uv version --package pykeepass-stubs --bump stable
General form:
uv version [--package <workspace-member>] \
--bump <major|minor|patch|post|dev|alpha|beta|rc|stable> \
[--bump <...> ...] [--dry-run]
Release Hygiene
- Keep bump commands aligned with repo release trigger policy.
- In split-release repos, do not mix main-package and stubs-package bumps.
- After real bump, confirm workflows/tags expect same normalized version.
More from kjanat/skills
github-script
Writes secure actions/github-script workflow steps. Use when GitHub Actions needs inline JavaScript with GitHub API/context.
8changelog-writing
Write and maintain changelogs following the Keep a Changelog convention. Use when creating a CHANGELOG.md, adding entries for a release, or reviewing changelog format and completeness.
7github-docker-action
Create Docker container actions for GitHub Actions with Dockerfile, action.yml metadata, and entrypoint scripts. Use when building custom GitHub Actions with Docker, scaffolding container-based actions, or debugging Docker action workflows.
7index-knowledge
Generate hierarchical AGENTS.md knowledge base for a codebase. Creates root + complexity-scored subdirectory documentation.
6github-service-containers
Configure Docker service containers (Redis, PostgreSQL, etc.) as sidecar services in GitHub Actions workflows for integration testing. Use when adding databases, caches, or message queues to CI workflows, or debugging service container networking and health checks.
6build-skill
Create effective skills for OpenCode agents. Load FIRST before writing any SKILL.md. Provides required format, naming conventions, progressive disclosure patterns, and validation. Use when building, reviewing, or debugging skills.
5