Command Palette

Search for a command to run...

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

release

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

Verify, write the CHANGELOG, cut a version — then hand the release sequence back

hamr0от hamr0★ 28 звёзд на GitHub

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

Release preparation orchestrator for the current branch. It runs its own short mechanical checks, writes the CHANGELOG, bumps the version and commits — then stops and reports. It never pushes, opens a PR, merges, tags, or publishes: those are yours to authorize by name.

It does not review code. Review is a separate command that must have run first.

Guardrails

  • Spawn a worker, mid tier stated explicitly (an omitted tier inherits the parent's; never a vendor model name). Run inline if your tool has no subagent mechanism.
  • Escalate, never assume. Anything you cannot decide, cannot verify, or that this spec does not cover → stop and report it to the orchestrator. Never improvise, never widen scope, never fix a finding you noticed (for workers this overrides the Surgical dev rule).
  • The worker does the work itself — no sub-spawning. Every command it cites is one it ran with its own tool calls.
  • Nothing leaves the machine. No git push, no gh, no npm publish, under any circumstance — not even if every gate is green. You report the sequence; a human authorizes it.

Phase 0 — Preflight (current branch, always)

  • Release the branch you are on. No branch argument, no branch creation.
  • On main → stop and ask what should be released. main is only ever the merge target; never release it, never commit to it.
  • The tree must be clean — do not commit for the user. Run git status --porcelain. Any line at all — modified, staged, or untracked — is a stop: list the paths and say "commit this to the branch, re-run /branch-review, then re-run /release."
  • Decide REUSE or RUN now, once (the orchestrator, before any worker): run this line as printed and print its output; it stays valid for the whole run (this command commits only the CHANGELOG/version, after the tests). Pass that exact line to any worker that runs Phase 1 in its brief.
    f=.amp/remember/last-review.md; g=$(sed -n 's/^green: \([0-9a-f]\{40\}\) .*/\1/p' "$f" 2>/dev/null); c=$(git diff --name-only "$g" HEAD 2>/dev/null | grep -vE '^(docs/|[^/]+\.md$)'); if [ -z "$g" ]; then echo "RUN (no green: line)"; elif ! git merge-base --is-ancestor "$g" HEAD 2>/dev/null; then echo "RUN (green $(printf %s "$g" | cut -c1-7) not an ancestor of HEAD)"; elif [ -z "$c" ]; then echo "REUSE $(grep '^green: ' "$f")"; else echo "RUN (green $(printf %s "$g" | cut -c1-7), changed: $(printf '%s\n' "$c" | paste -sd' ' - | cut -c1-200))"; fi
    
  • git fetch origin; the release diff is origin/main...HEAD. Empty → stop, nothing to release.
  • Record both version numbers. Read the local version (package.json or this project's equivalent) and, if the project has a publish path, the published one (npm view <pkg> version, or the registry equivalent). Report them side by side. Local ahead of published means a version was cut and never published; Phase 3 needs that gap.
  • Print a one-line plan: branch · commit count · files changed · HEAD SHA · local version → published version.

Phase 0.5 — Review precondition (do not skip)

A review must have run on this branch at the current HEAD SHA.

Compare the SHAs yourself. Run git rev-parse HEAD and compare it against the sha: line (starting exactly sha: — never self-review-sha:) in .amp/remember/last-review.md, which /branch-review writes. The orchestrator's word, or a SHA quoted from chat, is not evidence. Read the file; match the two strings. No such file, or no sha: line in it = no review, never a pass.

  • No review, or no recorded SHA obtainable → stop: "No review at <sha>. Run /branch-review medium first."
  • Stale — recorded SHA ≠ git rev-parse HEAD → stop and ask for a re-review, unless every file in git diff --name-only <recorded sha>..HEAD is forgiven. This overrides that: a merge or rebase of origin/main after the review is never forgiven, even when it brings only docs. A file is forgiven if it's under docs/, a *.md at the repo root, or on the record's docs: line — Stage 4 legitimately writes docs outside docs//root too (packages/subagentic-manual.md, packages/claude/AGENT.md, and siblings), and its own commit is what put them on that line. Run this and read what it prints — every printed path must also be on docs:, or it's stale, stop, re-review; no output means every file was under docs/ or root already, also not stale:
    git diff --name-only <recorded sha>..HEAD | grep -vE '^(docs/|[^/]+\.md$)'
    
    Do not take "it's just docs" on trust. No exceptions beyond the three forgiven shapes above. In a repo that tracks .amp/, a ledger commit after the review makes it stale (fix-ledger.md is never on docs:): re-review, or leave the ledger uncommitted until after the release.
  • tests: line — use the decider line printed in Phase 0 (never re-run it, never decid
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Grep
Glob
Edit
Write
Agent
Bash(git status:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git show:*)
Bash(git fetch:*)
Bash(git add:*)
Bash(git commit:*)
Bash(git rev-parse:*)
Bash(git merge-base:*)
Bash(npm:*)
Bash(pnpm:*)
Bash(yarn:*)
Bash(pytest:*)
Bash(python:*)
Bash(go:*)
Bash(cargo:*)
Bash(make:*)

FAQ

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

Verify, write the CHANGELOG, cut a version — then hand the release sequence back

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

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

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

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

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

Сравнить release с