Command Palette

Search for a command to run...

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

cutting-a-release

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

Cut a new release of this monorepo. Use whenever the user wants to make, cut, ship, or prep a release, bump the version, or update RELEASE_NOTES.md /…

Boise-State-Developmentот Boise-State-Development★ 22 звезды на GitHub

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

Cutting a Release

Single source of truth for cutting a release. Three concerns move together: the branch/PR workflow, the version bump, and the two release documents (RELEASE_NOTES.md + CHANGELOG.md). Do the steps in order, all on one release/x.y.z branch cut from develop.

Three pre-merge gates run in CI on every PR into main, and each has a local command. Run all three before you open the PR (§1, §1b, §1c):

node scripts/release/check-gsi-update-limit.mjs      # one GSI per existing table
node scripts/release/check-pending-backfills.mjs     # every new backfill named in the notes
node scripts/release/check-new-feature-flags.mjs     # every new flag named in the notes

Detailed format templates live in reference files — load them when you reach §6:


0. Shape of a release

develop (PR-only)                     main (PR-only, squash)
   │  1. pull latest develop           │
   │  2. cut release/x.y.z ────────────┐
   │       bump VERSION + sync         │
   │       write CHANGELOG + NOTES     │
   │       commit + push               │
   │            3. PR release/x.y.z ──▶ main   (squash-merge after review)
   │  4. backmerge ◀────────────────────┤  (branch off develop, merge main in,
   │       (PR to develop, MERGE COMMIT)│   PR into develop, MERGE COMMIT)
   ▼                                    ▼

Two hard rules of this repo's branch model:

  1. Never commit directly to develop or main. Both are PR-only — the release bump and the backmerge each land through a branch + PR.
  2. After the squash-merge into main, you MUST backmerge main → develop (§7). Skipping it leaves the branches divergent and every future release conflicts on the release-artifact files.

1. Pre-merge prerequisite — the DynamoDB GSI limit

Ask before opening the release PR: does any table that ALREADY EXISTS in production gain more than one Global Secondary Index in this release?

If yes, the release must be split into two deploys — ship one index, wait for it to report ACTIVE, then ship the next. That split has to happen before the merge, not after a rollback.

Why one is the limit

DynamoDB's UpdateTable API permits exactly one GSI creation or deletion per call. CloudFormation issues one UpdateTable per changed table, so a template that adds two indexes to an existing table fails with:

Cannot perform more than one GSI creation or deletion in a single update

The limit applies to UpdateTable only. CreateTable accepts any number of indexes, so a brand-new table with five GSIs is fine — which is exactly why the question is "does an existing table gain more than one?" and not "are there new indexes?".

The blast radius is the whole stack, not the table: when the update fails, CloudFormation rolls back every other resource in the deploy with it. Meanwhile backend.yml and frontend-deploy.yml are separate workflows that succeed on their own, so the release ends up running new application code against old infrastructure.

Why an incremental environment cannot reveal this

dev deploys on every merge into develop. Two indexes that arrive in two separate PRs therefore get two separate platform deploys, one index each — both succeed, and dev looks completely healthy.

main only ever sees the aggregate. A release collapses a whole batch of merges into a single CloudFormation update, so the two indexes that dev applied one at a time arrive at prod in the same UpdateTable call. Only an environment that jumps a whole release at once is exposed, which means no amount of dev soak time will surface it and passing CI proves nothing here. Reviewing the release diff is the only place it can be caught.

This is what took production down on 2026-08-01. Release 1.12.0 (#814) added AgentDirectoryIndex and AgentReportsIndex to the existing {prefix}-rag-assistants table in one update. They had reached develop in separate merges (02d0f2e9, a128831d) and dev had deployed each one cleanly. The prod update failed, rolled back the rest of the deploy including a brand-new audit-log table, and left the agent store returning 500 against already-deployed new code. Recovery took two more patch releases. The 1.12.0 release notes did flag GSI backfill timing — but not the per-update limit.

How to check

CI enforces this on every PR into main (.github/workflows/gsi-update-limit.yml). To check locally before you open the PR:

node scripts/release/check-gsi-update-limit.mjs

It diffs infrastructure/gsi-inventory.json — a committed, synth-generated inventory of every DynamoDB table and its ind

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

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

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

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

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

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

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

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

Вложенные файлы

references/changelog-format.mdreferences/release-notes-format.md

FAQ

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

Cut a new release of this monorepo. Use whenever the user wants to make, cut, ship, or prep a release, bump the version, or update RELEASE_NOTES.md / CHANGELOG.md — e.g. "let's cut a release", "make a new release", "bump the version and update the release notes", "ship the next version". Covers the release-branch workflow, the pre-merge DynamoDB GSI check, the SemVer bump + version sync, identifying what changed across the divergent main/develop histories, writing the changelog and release notes sized to the release, the squash-merge PR into main, and the required backmerge into develop.

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

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

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

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

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

Сравнить cutting-a-release с