create-release
БесплатноЗапускает вложенные скриптыНе проверенDraft and publish a new GitHub release for stackit. Compares main against the latest release tag, generates release notes in the established format…
от getstackit★ 32 звезды на GitHubОб этом скилле
/create-release
Cut a new GitHub release for stackit by comparing main against the latest release tag and drafting curated notes.
Mental Model
The repo is wired so that pushing a vX.Y.Z tag triggers .github/workflows/release.yml, which runs goreleaser to build cross-platform binaries, publish the Homebrew tap, and create the GitHub release with an auto-generated body. Our job in this skill is to:
- Determine the next version.
- Draft a curated release body in the project's established format.
- Tag and push so goreleaser can do its thing.
- Once goreleaser has created the release, overwrite the body with the curated notes.
Do not create the GitHub release yourself with gh release create — goreleaser owns release creation. We only edit the body after the fact.
Scripts
The deterministic steps live in .claude/skills/create-release/scripts/. Use them instead of inlining commands — they encode the right error checks and keep invocations identical across runs (which keeps the permission allowlist small).
| Script | Purpose |
|---|---|
preflight.sh |
Verify on main, clean tree, in sync with origin |
last-tag.sh |
Print the latest release tag (or git describe fallback) |
gather-changelog.sh <tag> |
Build stackit from source and print the stack-aware changelog since <tag> as JSON ({commits: [...]}) — collapses consolidated stacks into one entry listing their constituent PRs |
gather-commits.sh <tag> |
Direct-push backstop: list commits since <tag> to spot pushes that bypassed PR review |
bump-version.sh <current> <patch|minor|major> |
Compute next semver tag |
tag-and-push.sh <tag> |
Create annotated tag + push to origin |
wait-for-release.sh <tag> [timeout] |
Poll until goreleaser materializes the release (default 1200s; goreleaser typically takes 9-11 minutes) |
apply-notes.sh <tag> <file> |
Overwrite release body with notes file, print URL |
append-github-footer.sh <new> <prev> <file> |
Append GitHub's auto-generated "What's Changed" footer |
All scripts use set -euo pipefail and fail loudly with diagnostic messages. Treat their exit codes as authoritative.
Execution Steps
Step 1: Preflight
bash .claude/skills/create-release/scripts/preflight.sh
If it fails, stop and surface the message. Do not attempt to auto-fix (checkout, stash, pull). The user owns those decisions.
Step 2: Last Tag
LAST_TAG=$(bash .claude/skills/create-release/scripts/last-tag.sh)
Step 3: Gather Changes
bash .claude/skills/create-release/scripts/gather-changelog.sh "$LAST_TAG" > /tmp/stackit-release-changelog.json
bash .claude/skills/create-release/scripts/gather-commits.sh "$LAST_TAG"
gather-changelog.sh builds stackit from the current source (≈30s) and runs
stackit log --json, so it works even when the installed stackit predates the
new log command.
Read the JSON. If .commits is empty, stop — nothing to release. Use
gather-commits.sh only as a sanity check: if it shows non-merge commits with no
corresponding PR (and not part of a stack), flag those as possible direct pushes.
Step 4: Derive the PR List and Categorize (Model Judgment)
Each entry in .commits is either a regular commit or a stack-merge (a
consolidated stack). Flatten them into a deduplicated list of merged PRs:
kind: "stack-merge"— emit each PR instackPRs, titled fromstackPRTitles(keyed by PR number). These are the real shipped PRs. Do not emit the entry's ownprNumber— that's the "Merging N PRs" consolidation rollup, not a changelog item. NotestackScope: PRs sharing a scope shipped together as one stack.kind: "regular"withprNumberset — emit(prNumber, message).kind: "regular"with noprNumber— skip. These are raw squashed commits already represented by a stack-merge's constituents (or a direct push, whichgather-commits.shsurfaces separately).- Dedup by PR number — the same PR can appear via both a merge commit and a consolidation commit.
Flattening stack-merges into stackPRs handles rollup-dropping automatically: the
"Merging N PRs" PR is the stack-merge's own prNumber, which we never emit.
Titles follow Conventional Commits. Bucket each PR by its title prefix:
| Bucket | Conventional types |
|---|---|
| Features | feat |
| Fixes | fix |
| Performance | perf |
| Refactors | refactor |
| Docs | docs |
| Chore | chore, ci, test, style |
Write each PR as a past-tense one-liner ending with (#NNN). — matching v0.17.11 /
v0.17.13 style. Combine related PRs onto one line when natural (e.g., dependency
bumps → (#NNN, #MMM)). When several PRs share a stackScope, prefer grouping
them adjacently so the stack reads as one feature.
Step 5: Pick Highlights (Model Judgment)
Pick 2–5 Highlights. A highlight is something a user will notice or care about — a new flag, a workf
Установить create-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bash:*)Bash(git:*)Bash(gh:*)Bash(mktemp:*)Bash(cat:*)ReadWriteAskUserQuestionВложенные файлы
FAQ
Что делает скилл create-release?
Draft and publish a new GitHub release for stackit. Compares main against the latest release tag, generates release notes in the established format (Highlights, Features, Fixes, Performance, Refactors, Docs, Chore), pushes the tag (triggers goreleaser to build assets), then overwrites the release body with the curated notes. Keywords release, tag, changelog, ship.
Как установить скилл create-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-release запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic