Command Palette

Search for a command to run...

Назад к скиллам
скилл № 91682

release

Perform a full versioned release — bump version, draft release notes, commit, tag, push, and create the GitHub release page. Reads `.claude/project.yaml` for…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

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

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

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

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

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

/release — Versioned Release

Semver: major.minor.patch. Patch = bug fix, minor = new feature, major = breaking.

Git authorization. Invocation of this skill is the user's explicit authorization to run git add, git commit, git tag, and git push origin main / vX.Y.Z as specified in Steps 5–7. The "never commit/push unless asked" default does NOT apply here — committing and pushing IS the skill's job. Confirmation is still required for anything destructive the steps don't list (force-push, history rewrites, branch deletion, git reset --hard).

This repo's trunk is main. The version source-of-truth is the bare VERSION file; release notes live under docs/releases/vX.Y.Z.md.

Project contract

This skill reads .claude/project.yaml at the repo root. Keys it uses:

  • python — interpreter path (default: python).
  • helpers.release_context — script that emits the Step 1 JSON payload.
  • helpers.release_bump — script that bumps every version-marker file.
  • helpers.release_lock (optional) — the single-writer release lock. Present in this repo (tools/release_lock.py); when present, release_bump refuses to bump unless the lock is held.
  • release_notes_dir — where to write vX.Y.Z.md (default: docs/releases/).

If .claude/project.yaml is missing or these keys are absent, print one line pointing at .claude/skills/README.md and stop. Do not improvise file locations.

This repo ships the mechanical helpers (tools/release_decide.py, release_cut.py, release_tag.py, release_publish.py, release_lock.py, release_dry_run.py) that automate Steps 1–7. The skill text below drives them and explains the structural gotchas they enforce by refusing.

Fast path (hot shared tree): fak release ship

On this repo's hot, multi-session trunk, prefer the one-command front door over driving the helpers by hand:

fak release ship --json            # full dry-run plan — no mutations, no lock
fak release ship --execute --json  # cut, push to trunk, tag, publish

It cuts in a throwaway detached worktree at the origin tip, so it leaves this checkout's dirty peer WIP untouched; takes and auto-renews the single-writer release lock; pushes with --force-with-lease; on a same-trunk peer advance during the cut it re-cuts onto the new tip and retries (never force-pushing); and on a benign peer fast-forward past the release commit while it waits for CI, it recognizes the commit is still on trunk and proceeds — only a rewrite that orphans the commit refuses. Reach for this first. Drive the manual Steps 0–7 below by hand only when fak release ship refuses and you need to see why — each manual step carries the same hot-tree safety corrections the front door automates.


Step 0: Scope (optional — scope by default on a hot shared tree)

If the working tree is routinely hot with peers' edits, a whole-tree release is the risky path — derive a scope from the dirty paths + commit subjects and proceed with it. On a quiet tree the whole dirty set is the release content.

  • --scope <theme-token> pins the scope explicitly (case-insensitive substring match against paths + commit subjects).
  • --whole-tree is the explicit opt-out; use it only when the whole dirty tree is known release content.
  • --from-manifest <path> replaces scope inference with a producer manifest: run python tools/release_manifest.py consume <path> --json, proceed only when staged_paths is non-empty and every pick is status: shipped and reachable from HEAD.

Step 0.5: Acquire the single-writer release lock (if present)

If several /release-capable sessions can run at once, take the lock before reading any release state so a second session can't race you on VERSION/tag:

python tools/release_lock.py acquire --ttl 1800
  • ok: true → you hold it; continue. The owner is your session id, so every later release_lock / release_bump call re-proves ownership automatically.
  • ok: false, reason: "held" → another session is mid-release. Stop, report the holder, and let its release finish. A stale lock past its TTL is auto-stolen on the next acquire. Don't --force unless the holder is known-dead.

Keep the lock alive across a long cut. The TTL is a tight crash-recovery window (30 min), not a budget for the whole release — a cut that waits on a slow -race CI run can outlive it, and the moment it goes stale the auto-cut tick or another session will steal it and race you on VERSION/tag. If any step (CI wait, tag) might run long, renew on a timer at roughly ttl/3 from the SAME session:

python tools/release_lock.py renew --ttl 1800   # extend; refuses (exit 3) if the lease was already stolen

A renew that refuses with reason: "held by another" means you already lost the lock — stop before you push or tag, don't --force over the new holder. (fak release ship is the automated hot-tree path; it holds this same lock and auto-rene

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

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

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

  1. 01Read
  2. 02Edit
  3. 03Grep
  4. 04Glob
  5. 05Bash
  6. 06Write

FAQ

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

Perform a full versioned release — bump version, draft release notes, commit, tag, push, and create the GitHub release page. Reads `.claude/project.yaml` for the project's release-context and version-bump helpers; the skill text is universal, the helpers are project-supplied. Use when the user says "cut a release", "ship vX.Y.Z", "release", or after a shippable phase.

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

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

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

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

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

Сравнить release с