release-schema
БесплатноБез исполняемых скриптовНе проверенRelease a new version of the opentraces-schema package to PyPI. Use when the user says "release schema", "bump schema", "schema release", "publish schema"…
от JayFarei★ 107 звёзд на GitHubОб этом скилле
Release Schema
Automate a new opentraces-schema release to PyPI and GitHub.
How this differs from /release-cli
The schema package (opentraces-schema) versions independently. It uses:
- A different version file (
SCHEMA_VERSIONnot__version__) - A different tag format (
schema-vX.Y.ZnotvX.Y.Z) - Its own changelog and rationale documents
- A separate PyPI publish (can be triggered alone via workflow dispatch)
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 schema" → patch bump
- "minor schema release" → minor bump
- "release schema 0.2.0" → explicit version
Semver rules for this schema
- MAJOR: Breaking changes to existing fields (rename, remove, type change)
- MINOR: New optional fields, new models, new enum values
- PATCH: Docstring fixes, validation constraint tweaks, computed field bugs
During pre-1.0, MINOR bumps may include breaking changes.
Files to update
| File | What to change |
|---|---|
packages/opentraces-schema/src/opentraces_schema/version.py |
SCHEMA_VERSION = "X.Y.Z" |
packages/opentraces-schema/CHANGELOG.md |
Add new version entry, move [Unreleased] items |
packages/opentraces-schema/RATIONALE-X.Y.Z.md |
Create new rationale doc for this version |
packages/opentraces-schema/FIELD-MAPPINGS.md |
Update if fields were added/renamed/removed |
web/site/src/lib/schema-versions.ts |
Add new version object with field definitions |
web/site/src/components/SchemaExplorer.tsx |
Update inline schema example if fields changed |
Also check whether the CLI's dependency constraint in pyproject.toml needs widening:
dependencies = [
"opentraces-schema>=0.1.0", # may need updating
]
Steps
1. Determine the true released schema version from remote sources
Local version files may have been bumped during development without a corresponding publish. Always query the live remote sources first.
# PyPI
curl -s https://pypi.org/pypi/opentraces-schema/json | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['version'])"
# Git tags
git tag -l 'schema-v*' --sort=-v:refname | head -3
The published version is the most recent version appearing on both PyPI and as a schema-v* git tag. Use this as the base for the bump, not the local file.
Then check what changed since that tag:
LAST_TAG=$(git tag -l 'schema-v*' --sort=-v:refname | head -1)
git log --oneline ${LAST_TAG}..HEAD -- packages/opentraces-schema/src/
git diff --name-only ${LAST_TAG}..HEAD -- packages/opentraces-schema/src/opentraces_schema/models.py
Infer the bump type from the diff unless the user specified one explicitly:
| Signal | Bump |
|---|---|
| Field removal, rename, or type change in models.py | major (minor during pre-1.0) |
| New optional field, new model, new enum value | minor |
| Docstring fixes, validation constraint tweaks | patch |
Finally compare local file with the remote version:
grep 'SCHEMA_VERSION' packages/opentraces-schema/src/opentraces_schema/version.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
Schema release plan:
Remote (published): v0.1.1 (PyPI + schema-v0.1.1 tag)
Local file: 0.1.2 (unreleased bump — ignored as base)
New target: v0.2.0 (minor — new optional fields added)
Changes since schema-v0.1.1:
abc1234 feat(schema): add quality_summary field to TraceRecord
Files to update:
- packages/opentraces-schema/src/opentraces_schema/version.py
- packages/opentraces-schema/CHANGELOG.md
- packages/opentraces-schema/RATIONALE-0.2.0.md (new)
- packages/opentraces-schema/FIELD-MAPPINGS.md (fields changed)
- web/site/src/lib/schema-versions.ts
- pyproject.toml (if constraint needs widening)
After commit: tag schema-v0.2.0, push, publish via workflow dispatch
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 file
Edit packages/opentraces-schema/src/opentraces_schema/version.py.
4. Update CHANGELOG.md
Read the current changelog format. Add a new version header with the date, move any [Unreleased] items under it. Generate change entries from git log since the last schema tag:
git log --oneline $(git tag -l 'schema-v*' --sort=-v:refname | head -1)..HEAD -- packages/opentraces-schema/
5. Create RATIONALE document
Create packages/opentraces-schema/RATIONALE-X.Y.Z.md documenting the design decisions for this version. Read th
Установить release-schema в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл release-schema?
Release a new version of the opentraces-schema package to PyPI. Use when the user says "release schema", "bump schema", "schema release", "publish schema", "release-schema", or when schema models have changed and need publishing independently of the CLI. This handles the schema package only, not the CLI. For a full coordinated release of schema + CLI + site together, use /release-pack instead.
Как установить скилл release-schema?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл release-schema запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…
от 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…
от 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…
от 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…
от Anthropic