prepare-release
Prepare a new release of inspect_evals by creating a release branch, collecting changelog fragments, and opening a PR. Use when user asks to…
от UKGovernmentBEIS★ 763 звезды на GitHub
Установить prepare-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Prepare a Release
This workflow prepares a new release of inspect_evals. It creates a release branch, collects changelog fragments, bumps the version tag, and opens a PR. After merge it tags the merge commit and creates a GitHub release.
Reference: PACKAGE_VERSIONING.md
Prerequisites
- The
ghCLI must be authenticated - You must have push access to the repository
- There must be changelog fragments in
changelog.d/(beyond.gitkeepandTEMPLATE.md)
Phase 1 — Prepare the release branch
Ensure
mainis up to date:git fetch origin git checkout main git merge --ff-only origin/mainIf the merge fails, stop and inform the user that their local
mainhas diverged fromorigin/main.Check for changelog fragments:
List files in
changelog.d/excluding.gitkeep,TEMPLATE.md, andREADME.*. If there are no fragments, stop and tell the user there is nothing to release.Determine the new version:
Find the current version from the latest
v*git tag:git tag --sort=-v:refname --list 'v*' | head -1Ask the user what kind of bump this is, presenting the semver table from
PACKAGE_VERSIONING.md:Component When to bump Examples Major Breaking changes Removing an eval, API changes, scorer output format changes Minor New features Adding new evals, new task parameters, new utilities Patch Bug fixes Eval fixes, scorer fixes, dataset loading fixes Compute the new version string (e.g.
0.4.0,0.3.107). Confirm with the user.
Create the release branch:
The branch name is
release-YYYY-MM-DDusing today's date.git checkout -b release-YYYY-MM-DD
Phase 2 — Collect the changelog
Run scriv collect:
uv run scriv collect --version <NEW_VERSION>This removes the individual fragment files from
changelog.d/and prepends a new section toCHANGELOG.md.Present the changelog diff to the user for review:
git diff CHANGELOG.mdTell the user: "Please review the collected changelog above. You can edit
CHANGELOG.mddirectly — let me know when you are satisfied, or tell me what changes to make."Do not proceed until the user confirms the changelog is ready.
Normalise the collected changelog:
changelog.d/fragments are excluded from themdformatandmarkdownlint-fixpre-commit hooks (fragments are partial documents), so a hand-edit during review — or an unusual fragment — can leaveCHANGELOG.mdin a state those hooks would rewrite. That turns the Markdown Lint and README check jobs red onmainafter the release PR merges (see #2225, #2329). Run the hooks overCHANGELOG.md, then confirm a second pass is clean:uv run --group dev pre-commit run mdformat --files CHANGELOG.md || true uv run --group dev pre-commit run markdownlint-fix --files CHANGELOG.md || true # A second pass must be clean: applying fixes is fine, failing to # converge means a real error that would still break main. uv run --group dev pre-commit run mdformat --files CHANGELOG.md uv run --group dev pre-commit run markdownlint-fix --files CHANGELOG.mdIf the second pass still reports changes, resolve them before committing.
Stage and commit:
git add CHANGELOG.md changelog.d/ git commit -m "Prepare release v<NEW_VERSION>"
Phase 3 — Push and open a PR
Push the branch:
git push -u origin release-YYYY-MM-DDOpen a draft PR:
Extract the new version's section from
CHANGELOG.md(everything from the version heading up to but not including the next##heading). Use this as the PR body:gh pr create --draft \ --title "Release v<NEW_VERSION>" \ --body "<EXTRACTED_CHANGELOG_SECTION>"Important: The PR title must start with
Release v(e.g.Release v0.4.0) — this is how therelease-on-merge.ymlworkflow identifies release PRs.Tell the user the PR URL and that it is in draft. They should mark it ready for review when appropriate.
Phase 4 — After the PR is merged (automated)
Once the release PR is merged into main, the .github/workflows/release-on-merge.yml GitHub Actions workflow automatically:
- Tags the merge commit with
v<NEW_VERSION> - Creates a GitHub release with the changelog section as the body
- Builds and publishes the package to PyPI
- Notifies Slack
No manual action is required. The package version is derived from the new tag by setuptools_scm.
Notes
- The package version is derived entire
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prepare-release?
Prepare a new release of inspect_evals by creating a release branch, collecting changelog fragments, and opening a PR. Use when user asks to cut/prepare/create a new release or version bump.
Как установить скилл prepare-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prepare-release запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…