Command Palette

Search for a command to run...

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

release-cut

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

Cut a new pi-agent-dashboard release: promote `## [Unreleased]` in CHANGELOG.md, bump every workspace package.json per SemVer, commit, tag `v<version>`, and…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

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

Cut a pi-agent-dashboard Release

Canonical reference: docs/release-process.md. This skill automates steps 1–5 of that doc. Production tags (vX.Y.Z) publish the GitHub Release automatically — electron-updater's default GitHub provider only resolves published, non-draft releases, so a draft would silently block auto-update. Pre-release tags (vX.Y.Z-rc.N) stay drafts so a maintainer can eyeball artifacts before flipping to published. See change: fix-electron-auto-update-pipeline.

Pre-flight (MUST pass before touching anything)

Run these in order. If any fails, stop and report — do not continue.

  1. Clean working tree

    git status --porcelain
    

    Must be empty. If not, ask the user to commit or stash.

  2. On the release branch

    git rev-parse --abbrev-ref HEAD
    

    Must be develop (this repo has no main). If elsewhere, ask user to confirm before continuing.

  3. Up to date with origin

    git fetch origin && git status -sb
    

    Branch must NOT be "behind". If behind, ask user to pull first.

  4. Tests pass

    pnpm test
    
  5. Build succeeds

    pnpm run build
    
  6. Dependency-shape gate (introduced by enable-standalone-npm-install to prevent regressions of v0.5.3 publish-time bugs)

    node scripts/verify-release-deps.mjs
    

    Asserts critical runtime deps (jiti, pinned node-pty, etc.) are still declared in the publishable workspace package.json files. Failure means the next published tarball would be broken — STOP and fix the workspace before cutting.

    Known false-positive (substring gate). verify-release-deps.mjs checks the declared range with a naive String.includes(minVersion) — NOT semver math. So a legitimate pi bump ABOVE the floor (e.g. floor 0.74.0, pin ^0.80.10) fails the gate because "^0.80.10" does not contain the substring "0.74.0". When this fires and the pin is genuinely newer than the rule's minVersion, the FIX is to bump that rule's minVersion (+ its evidence note in the RULES array, and the scripts/AGENTS.md row) to the new floor — do NOT downgrade the pin. This recurs on every pi version bump. See change: fix-release-lockfile-drift (gate lives in scripts/verify-release-deps.mjs).

  7. Read both nightlies, then optionally dispatch ci-smoke.yml against develop (catches installer regressions BEFORE the tag exists)

    Before tagging, check both scheduled nightlies and note the SHA each run tested (they can differ, and neither runs on the commit tag-and-push creates):

    gh run list --workflow nightly-tests.yml --event schedule --limit 1 --json conclusion,headSha,createdAt
    gh issue list --label nightly-tests --state open   # unit suite the tag gate's `pnpm test` runs, plus the budget lane
    gh run list --workflow nightly.yml --event schedule --limit 1 --json conclusion,headSha,createdAt
    gh issue list --label nightly --state open         # publish (npm@latest loopback), install smoke, Electron matrix
    

    A green rehearsal does NOT prove the tag will publish. It cannot catch: ci-checks :: Run pnpm test flakes on the new commit, ETARGET/E404 registry lag, OIDC/--provenance/403/409 on the real registry, a defect in publish.yml's own step text, Windows runtime-asset tar/EXDEV, macOS signing. See docs/release-process.md.

    The release pipeline (publish.yml) gates publish on a release-gate that runs the standalone-install-smoke jobs _smoke.yml defines (standalone-install-smoke-linux, standalone-install-smoke-windows, standalone-install-upgrade-continuity). If that gate fails on workflow_dispatch, tag-and-push is skipped — clean abort, no commit, no tag. But on a git push --tags cut, the tag already exists when the gate fires; failure leaves a dangling tag requiring release-revoke.

    Operators SHOULD run the smoke matrix first against develop:

    gh workflow run ci-smoke.yml --ref develop
    gh run watch  # or open the Actions UI
    

    Every _smoke.yml job must be green before cutting. If any leg fails, fix the regression on develop first — do NOT cut a tag that you know will fail the gate. Skip this step only when the change since the last release is provably installer-irrelevant (no lockfile, bundle-server, native dep, or preload-fastify touch). See change: gate-publish-on-smoke-and-tests.

If any pre-flight step fails, stop and surface the exact error to the user.

Step 1 — Read current state

git describe --tags --abbrev=0        # last tag, e.g. v0.2.9
node -p "require('./package.json').version"   # current pkg version

Confirm they match (e.g. tag v0.2.9 ↔ pkg 0.2.9). If they diverge, surface the mismatch and ask the user how to proceed.

Step 2 — Curate ## [Unreleased]

  1. List commits since last tag:
    git log <last-tag>..HEAD --oneline
    
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

SKILL.agent.mdSKILL.md.AGENTS.md

FAQ

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

Cut a new pi-agent-dashboard release: promote `## [Unreleased]` in CHANGELOG.md, bump every workspace package.json per SemVer, commit, tag `v<version>`, and push — triggering the Release workflow that publishes every non-private workspace, builds the Electron artifacts, and creates a GitHub Release. Use on "cut a release", "release vX.Y.Z", "publish a new version", "tag a release".

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

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

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

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

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

Сравнить release-cut с