Release version
Run the release tail after a commit — bump the version with the repo's own tooling, then (only on an explicit push request) push so the configured CI trigger publishes or deploys. NOT for committing — that's the commit skill.From its SKILL.md
npx -y skills add casomoltd/tooling --skill release-versionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.4 KB, as published. Nobody here has run it
Release Workflow
The release tail that commit stops short of: bump → push →
(CI) publish/deploy. It assumes the code is already committed;
it does not commit code. Steps are mechanics + routing — follow in
order.
Intent
Run the release tail on an already-committed tree — bump the version with the repo's own tooling, then (only on an explicit push request) push so CI publishes/deploys. One job: release. Not commit.
0. Resolve the target repo
Decide which repo to release:
-C <path>given → that directory (resolved relative to the current dir, git-style; e.g.-C toolingfrom a multi-repo workspace root).- otherwise → the current directory.
cd there and confirm it's the intended repo with
git rev-parse --show-toplevel. If it isn't a git repo with a recognised
toolchain, stop and ask — guessing here is exactly how a bump lands
in the wrong directory. Every step below runs in this repo.
1. Precondition — clean working tree
git status --porcelain
Any output (uncommitted/staged changes) → stop and commit first. A clean tree is the contract between committing and releasing.
2. Detect the toolchain and the publish trigger
Decide from the files present, not a hardcoded list:
package.jsonpresent → npm repo.pyproject.toml, nopackage.json→ Python/uv repo.
Then learn what a push will do by reading the CI workflow's on:
block — it is the source of truth, so don't assume:
Read .github/workflows/*.yml # inspect the `on:` triggers
Common shapes:
- Publish on tag push (
on: push: tags: ['v*']) — pushing the annotated version tag publishes the package (e.g. via OIDC trusted publishing).git push --follow-tagscarries the tag, so the push itself triggers the release; no separate GitHub Release is needed. - Publish/deploy on branch push (
on: push: branches: [main]) — the push to the default branch is what publishes or deploys (e.g. a Vercel app). No tag trigger, no Release step. - Publish on release (
on: release:) — a GitHub Release is required to publish; the push alone won't (gh release createin step 5). - No publish workflow — versioning only (e.g. a pure ops repo): bump and tag, nothing publishes.
3. Confirm the bump level
minor if requested, else patch (default). Confirm before bumping.
Never run a major bump (npm version major / uv version --bump major) without explicit user approval.
4. Bump — with the repo's own tooling (never hand-edit)
- npm repo — atomic:
npm version patch(orminor) editspackage.json, commits, and creates an annotated tag in one step. - Python/uv repo —
uv versiononly edits files; commit and tag by hand:
The tag must be annotated (uv version --bump patch # or minor git add pyproject.toml uv.lock git commit -m "v<new-version>" git tag -a "v<new-version>" -m "v<new-version>"-a) —git push --follow-tagssilently skips lightweight tags.
5. Stop before pushing — push is outward-facing
Pushing is never automatic. After the bump, report the local state (new commit + tag) and show the command:
git push --follow-tags
Push only on an explicit request ("push", "ship it"). Invoking this
skill is not push permission. Flag the consequence first, from the
trigger detected in step 2: a tag-push or branch-push will publish;
a branch push to an app will deploy to production; a release-triggered
package needs gh release create v<new-version> after the push to
actually publish.
When the user asks, push, then confirm the tag landed and (for packages) wait for the run:
git ls-remote --tags origin | grep "v<new-version>"
gh run list -L 1
If a tag didn't reach the remote (created lightweight), push it
explicitly — git push origin v<new-version> — don't delete/recreate.
Boundaries
- vs
commit— that skill produces the committed, clean tree this one requires (step 1); this skill never commits code (only the version-bump commit its own tooling makes). Bump / push / publish is this skill's lane, notcommit's.
Guardrails
- Never major-bump without explicit approval.
- Never hand-edit the
versionfield or hand-create tags — always the repo's own tooling. - Push only on an explicit instruction, and flag the publish/deploy consequence first.
Error recovery
Never use destructive git commands to "fix" a mistake — no git tag -d,
git reset --hard, git push --force, or history rewrites. Version
numbers are cheap; clean history is not.
- Bumped twice / wrong level: accept the higher number, move on.
- Bumped in the wrong directory: accept it (harmless), then bump the intended one.
- Tag didn't reach the remote: push it explicitly; don't recreate.
- Push fails: find the cause (upstream changes, hook rejection) and resolve without rewriting history.