release-cli
FreeNo executable scriptsNot checkedRelease a new version of the opentraces CLI to PyPI, Homebrew, and GitHub. Use when the user says "release", "new release", "bump version", "publish new…
by JayFarei★ 107 GitHub starsAbout this skill
Release CLI
Automate a new opentraces CLI release across PyPI, Homebrew, and GitHub.
What this does
- Bumps the version number (patch by default, or minor/major if requested)
- Updates all version references in the repo
- Runs tests and verifies the build
- Commits, tags, and pushes
- Creates a GitHub Release (which triggers PyPI publish + Homebrew formula update)
- Monitors the publish workflow
Arguments
The user may specify:
- bump type:
patch(default),minor, ormajor - explicit version: e.g.
0.2.0(overrides bump type)
Parse from the user's message. Examples:
- "release" → patch bump
- "minor release" → minor bump
- "release 0.2.0" → explicit version
Version files to update
These three files must stay in sync:
| File | Field | Example |
|---|---|---|
src/opentraces/__init__.py |
__version__ = "X.Y.Z" |
__version__ = "0.2.0" |
packages/opentraces-schema/src/opentraces_schema/version.py |
SCHEMA_VERSION = "X.Y.Z" |
SCHEMA_VERSION = "0.2.0" |
web/site/src/lib/version.json |
{"version":"X.Y.Z"} |
{"version":"0.2.0"} |
Steps
1. Determine the true released version from remote sources
Local version files may have been bumped during development without a corresponding release. Always query the live remote sources first — they are the authoritative baseline.
# PyPI
curl -s https://pypi.org/pypi/opentraces/json | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['version'])"
# GitHub Releases
gh release list --limit 3 --json tagName,publishedAt
# Git tags
git tag -l 'v[0-9]*' --sort=-v:refname | head -3
# Homebrew
brew info JayFarei/opentraces/opentraces 2>/dev/null | head -3
The published version is the most recent version that appears on both PyPI and as a GitHub Release tag. Use this as the base for the bump, not the local file.
Then check what has changed since that tag:
LAST_TAG=$(git tag -l 'v[0-9]*' --sort=-v:refname | head -1)
git log --oneline ${LAST_TAG}..HEAD
Infer the bump type from the commit content unless the user specified one:
| Signal | Bump |
|---|---|
| Breaking flag rename, command removal | major |
| New subcommand, new option | minor |
| Bug fixes, refactors, parser hardening | patch |
Finally compare local file with the remote version:
grep '__version__' src/opentraces/__init__.py
If local is ahead of remote, note the unreleased bump and use the remote version as the base.
2. Show the user what will happen
Before making changes, print a summary:
Release plan:
Remote (published): v0.1.2 (PyPI + GitHub Release)
Local file: 0.1.3 (unreleased bump — ignored as base)
New target: v0.1.3 (patch — bug fixes since v0.1.2)
Unreleased commits since v0.1.2:
abc1234 fix(parser): harden tool_input extraction
def5678 feat(site): update messaging
Files to update:
- src/opentraces/__init__.py
- packages/opentraces-schema/src/opentraces_schema/version.py
- web/site/src/lib/version.json
After commit: tag v0.1.3, push, create GitHub Release
This triggers: PyPI publish + Homebrew formula update
STOP HERE. Do not edit any files, run any commands, or take any action until the user explicitly confirms. Accept "y", "yes", "go", "ship it", "looks good", or equivalent. If the user wants to adjust the version, bump type, or anything else, update the plan and re-present it. Only proceed once you have an unambiguous green light.
3. Update version files
Edit all three files listed above with the new version string.
4. Run tests
source .venv/bin/activate
pytest tests/ -q
If tests fail, stop and fix before continuing.
5. Verify build
source .venv/bin/activate
cd packages/opentraces-schema && rm -rf dist && python -m build && cd ../..
rm -rf dist && python -m build --wheel
Both builds must succeed. If either fails, stop and investigate.
6. Commit
git add src/opentraces/__init__.py packages/opentraces-schema/src/opentraces_schema/version.py web/site/src/lib/version.json
git commit -m "release: opentraces vX.Y.Z"
7. Tag and push
git tag -a vX.Y.Z -m "opentraces vX.Y.Z"
git push origin main --tags
8. Create GitHub Release
Note: the outer markdown fence is four backticks so the inner triple-backtick fences are literal. Do NOT backslash-escape the inner backticks when running this command — in a single-quoted heredoc they pass through as literal \ characters and break the rendered release notes on the site.
gh release create vX.Y.Z --title "opentraces vX.Y.Z" --notes "$(cat <<'EOF'
## Install
```bash
pipx install opentraces==X.
Install release-cli in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the release-cli skill do?
Release a new version of the opentraces CLI to PyPI, Homebrew, and GitHub. Use when the user says "release", "new release", "bump version", "publish new version", "release opentraces", "cut a release", or "release-cli". This handles the CLI package only, not the schema package separately. For a full coordinated release of schema + CLI + site together, use /release-pack instead.
How do I install the release-cli skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the release-cli skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic