Command Palette

Search for a command to run...

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

release-pack

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

Full coordinated release of all opentraces packages — schema, CLI, the opentraces-pi npm extension, and the marketing site — in a single orchestrated flow…

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

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

Release Pack

Orchestrate a complete release: schema → CLI → site, with verification.

When to use this vs. individual skills

  • /release-pack — releasing everything together (the normal case)
  • /release-schema — schema-only change with no CLI changes
  • /release-cli — CLI-only change, schema unchanged
  • /deploy-site — site copy/design change with no package release

Arguments

The user may specify bump type and whether to skip the schema release:

Input Meaning
"release pack" auto-detect bump type from commits
"minor release pack" force minor bump on both
"release pack, skip schema" CLI + site only, no schema release
"release pack CLI minor, schema patch" explicit per-package bump types
"release pack 0.2.0" explicit target version for CLI

Parse these from the user's message before starting. The user-supplied bump type overrides the auto-detected one but the remote version is always the base.


Step 0: Resolve branch and worktree context

Development often happens on feature branches or in git worktrees. Before touching any files or querying remote versions, establish where you are.

# Current branch and worktree
git branch --show-current
git worktree list

# Is this a worktree?
git rev-parse --git-dir

If you are on a feature branch (not main):

  1. Do not cut a release from the branch. Releases must be tagged on main.
  2. Check whether the branch has already been merged: git log main..HEAD --oneline
  3. If unmerged, stop and ask the user: "You're on branch BRANCH. Should I land this to main first, or were you planning to release from main after merging?"
  4. If the user confirms they want to release and the branch is already merged, switch to main: git checkout main && git pull origin main
  5. If in a worktree, all git operations (tags, pushes) still operate against the shared repo, but git push will use the worktree's checked-out branch. Confirm the right branch is checked out before pushing tags.

Only proceed to Step 1 once you are on main and it reflects the intended release state.


Step 1: Determine the true released versions from remote sources

Local version files cannot be trusted as the baseline — they may have been bumped during development without a corresponding release. Always query the live remote sources first.

Fetch remote versions

# PyPI — most authoritative for published state
curl -s https://pypi.org/pypi/opentraces/json | python3 -c "import sys,json; d=json.load(sys.stdin); print('CLI PyPI:', d['info']['version'])"
curl -s https://pypi.org/pypi/opentraces-schema/json | python3 -c "import sys,json; d=json.load(sys.stdin); print('Schema PyPI:', d['info']['version'])"

# GitHub — last CLI release tag and last schema release tag
gh release list --limit 5 --json tagName,publishedAt | python3 -c "import sys,json; [print(r['tagName'], r['publishedAt']) for r in json.load(sys.stdin)]"
git tag -l 'v[0-9]*' --sort=-v:refname | head -3
git tag -l 'schema-v*' --sort=-v:refname | head -3

# Homebrew — what the tap currently pins
brew info JayFarei/opentraces/opentraces 2>/dev/null | head -3

# npm — published Pi extension version
npm view opentraces-pi version

# Live site — version displayed (relies on PyPI at deploy time, so PyPI is authoritative)
curl -s https://opentraces.ai | grep -o '"version":"[^"]*"' | head -1

Collect all of these. The published CLI version is the most recent version that appears on BOTH PyPI and as a GitHub Release tag. The published schema version is the most recent version on PyPI for opentraces-schema. If the sources disagree (e.g. PyPI has 0.1.2 but GitHub Release only has 0.1.1), flag the discrepancy — do not silently pick one.

Compare with local files

grep '__version__' src/opentraces/__init__.py
grep 'SCHEMA_VERSION' packages/opentraces-schema/src/opentraces_schema/version.py

If local files are ahead of the remote (e.g. local is 0.1.3-dev but PyPI is 0.1.2), note that the local bump was unreleased and use the remote version as the true baseline. The new release target will be computed from the remote baseline, not from the local file.


Step 2: Determine what changed and derive the appropriate bump

Use the remote version's corresponding git tag as the boundary. Everything committed since that tag is unreleased.

CLI changes since last CLI tag

LAST_CLI_TAG=$(git tag -l 'v[0-9]*' --sort=-v:refname | head -1)
git log --oneline ${LAST_CLI_TAG}..HEAD
git diff --stat ${LAST_CLI_TAG}..HEAD

Schema changes since last schema tag

LAST_SCHEMA_TAG=$(git tag -l 'schema-v*' --sort=-v:refname | head -1)
git log --oneline ${LAST_SCHEMA_TAG}..HEAD -- packages/opentraces-schema/src/
git diff --name-only ${LAST_SCHEMA_TAG}..HEAD -- packages/opentraces-schema/src/opentraces_schema/models.py

If there are no schema source changes since LAST_SCHEMA_TAG, default to skipping the sche

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Full coordinated release of all opentraces packages — schema, CLI, the opentraces-pi npm extension, and the marketing site — in a single orchestrated flow. Use when the user says "release everything", "full release", "release pack", "release all", "cut a full release", "ship it all", "release-pack", or when doing a versioned release that should touch all packages at once. This is the right skill any time you want to go from current code to a published, verified release across PyPI (schema + CLI), npm (opentraces-pi), GitHub Releases, Homebrew, and Vercel in one pass. It handles version bumps, docs checks, ordered publishing, propagation waits, and post-release verification of pipx, brew, and npm installs automatically.

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

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

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

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

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

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