Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

release-schema

FreeNo executable scriptsNot checked

Release a new version of the opentraces-schema package to PyPI. Use when the user says "release schema", "bump schema", "schema release", "publish schema"…

JayFareiby JayFarei★ 107 GitHub stars

About this skill

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_VERSION not __version__)
  • A different tag format (schema-vX.Y.Z not vX.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, or major
  • 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

Full SKILL.md on GitHub

Install release-schema 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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the release-schema skill do?

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.

How do I install the release-schema 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-schema skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare release-schema with