Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

release-cli

БесплатноБез исполняемых скриптовНе проверен

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…

JayFareiот JayFarei★ 107 звёзд на GitHub

Об этом скилле

Release CLI

Automate a new opentraces CLI release across PyPI, Homebrew, and GitHub.

What this does

  1. Bumps the version number (patch by default, or minor/major if requested)
  2. Updates all version references in the repo
  3. Runs tests and verifies the build
  4. Commits, tags, and pushes
  5. Creates a GitHub Release (which triggers PyPI publish + Homebrew formula update)
  6. Monitors the publish workflow

Arguments

The user may specify:

  • bump type: patch (default), minor, or major
  • 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.
Полный SKILL.md на GitHub

Установить release-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл release-cli?

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.

Как установить скилл release-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл release-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить release-cli с