cut-release
Cut a new TMDb release — work out the next SemVer version from the evidence, do the pre-tag housekeeping a tag would otherwise freeze in place, draft release…
от adamayoung★ 182 звезды на GitHub
Установить cut-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cut Release
Takes main from "a pile of merged PRs" to "a tagged, published release".
This skill is never headless. Every other skill in this repo may decide for
itself; this one may not. A tag is the one artifact consumers resolve against,
and publishing one is effectively irreversible: SwiftPM hands a new minor or
patch to everyone inside the current from: range the moment it exists, a new
major reaches everyone who has since bumped, and deleting a tag does not
un-fetch it from anyone who already resolved. Phases 1–5 are read-only and local.
Phase 6 is a hard stop. Phases 7–9 run only on an explicit go-ahead.
If invoked with no human able to answer, run to the hard stop, print the summary, and exit. Do not tag.
Phase 1 — Preflight
Stop on any failure; report which one and what to do.
- On
main, clean tree, in sync withorigin/main(git status --porcelain,git rev-list --count main..origin/main). git fetch --tags; establish the last release:git tag --sort=-v:refname | head -1.- CI is green on the current
maintip:gh api repos/adamayoung/TMDb/commits/<sha>/check-runs. This is the entry check — the commit that actually gets tagged does not exist yet (Phase 7 creates it), and Phase 7 re-checks that one. Starting from a redmainjust means finding out later. - There is something to release — at least one commit since the last tag that is not purely a tag-housekeeping commit.
Phase 2 — Work out the version
Two independent signals. They must agree, or you stop.
Signal A — the CHANGELOG (authoritative). The open ## [X.Y.Z] section at
the top (no date = unreleased) is the proposal. Count **Breaking:** markers
inside it, and read the section headings:
- any
**Breaking:**→ major - otherwise any
### Addedcontent → minor - otherwise (
### Fixed/### Changedonly) → patch
Signal B — the commits (cross-check). git log <lasttag>..HEAD, bucketed by
gitmoji. Consumer-visible: ✨ feature, 🐛 fix, ♻️ refactor, 🔒 security,
⚡️ perf. Not consumer-visible: 🔧 chore, 📝 docs, 👷 CI, ✅ tests,
📦 build. Count multibyte-safely — sort | uniq -c over emoji collapses
distinct ones in a non-UTF-8 locale and will hand you a confidently wrong tally.
Gitmoji alone is not enough to pick a version in this repo, and you must not
try. A 🐛 here is routinely source-breaking: "🐛 Surface task cancellation as
TMDbError.cancelled" (PR #433) was filed as a fix and added an enum case, which
breaks every exhaustive switch downstream. Signal B exists to catch omissions
from the CHANGELOG, not to compute the bump.
Then reconcile:
- The proposed section heading must match what Signal A computes from its own
content. A section headed
[20.0.0]containing no**Breaking:**is a mis-labelled release — stop and report, do not silently downgrade it. knowledge/next-major.md's status line names the open window. If it disagrees with the CHANGELOG heading, stop.- The computed tag must not already exist.
Coverage check. Every commit since the last tag that touches Sources/ and
carries a consumer-visible gitmoji should be represented somewhere in the open
CHANGELOG section. List any that are not. This is the check that catches a real
change shipping invisibly; the not-consumer-visible buckets legitimately have no
CHANGELOG entry and are not flagged.
Phase 3 — Pre-tag housekeeping
Branch first. git checkout -b chore/prepare-<version>-release. Phase 1 put
you on a clean main, and CLAUDE.md forbids editing there — but the practical
reason is re-entrancy: if the run is abandoned at the Phase 6 stop, edits made on
main leave a dirty tree that fails this skill's own Phase 1 preflight on the
next attempt. Branching now costs nothing and makes an abort free.
A tag snapshots the tree, so anything that says "unreleased" is frozen saying it, forever, inside the very release it describes. These four are not optional, and all of them were needed for 19.0.0 (PR #406):
README.mdinstall snippet.from: "<previous major>"resolves to>=prev, <prev+1— on a major, readers following the README would never resolve to the new version at all. Bump it. (This is the one with real user impact; the other three are hygiene.)Scripts/check-readme-version.pyenforces this frommake lintand CI: the snippet must match either the newest dated CHANGELOG section (the last release) or the newest undated one (the release being prepared). That second arm exists so this housekeeping PR is not blocked by the tag it is preparing — bump the snippet and date the section in the same commit and both arms stay satisfied. Forget the bump entirely and the check goes red on the next PR after the release.CHANGELOG.md. Date the section —## [X.Y.Z] - YYYY-MM-DD— and add the link definition at the foot: `[X.Y.Z]: https://github.com/adam
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cut-release?
Cut a new TMDb release — work out the next SemVer version from the evidence, do the pre-tag housekeeping a tag would otherwise freeze in place, draft release notes, then tag and publish the GitHub release. Presents the version (with its reasoning) and the full notes for approval and STOPS; nothing is tagged or published until you say go.
Как установить скилл cut-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cut-release запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…