release
БесплатноБез исполняемых скриптовНе проверенCut a DraftForge release with `just version::set X.Y.Z`. It checks main is clean and current, assembles every changelog.d/ fragment into CHANGELOG.md's `##…
от kettleofketchup★ 16 звёзд на GitHubОб этом скилле
Release
A release is one command, just version::set X.Y.Z (runs python -m scripts.version set,
scripts/version.py). It writes the version, turns the pending changelog fragments
into the release's CHANGELOG.md section, commits, tags and pushes. The pushed tag
builds the images. Your job: pick the version, check the notes that will ship, run
it on an up-to-date main, and report the CI result.
What just version::set X.Y.Z does
- Preflight (
changelog.release_preflight). It refuses, changing nothing, when:- the version is not
MAJOR.MINOR.PATCH(orjust version::setgot--no-tag-version); - the current branch is not
main, or tracked files have uncommitted changes; frontend/app/data/CHANGELOG.mdis missing or differs fromCHANGELOG.md(cp CHANGELOG.md frontend/app/data/CHANGELOG.md), or is not tracked inHEAD(commit it: the rollback'sgit checkout HEAD --would abort on it);- there are untracked files under
changelog.d/(they would miss the release); HEADis notorigin/mainaftergit fetch --tags origin;- tag
X.Y.Zalready exists onoriginor locally.
- the version is not
- If
changelog.d/holds no fragments, it asksRelease X.Y.Z with no changelog notes? [y/N]. Anything butycancels with nothing changed. - Rewrites the version in
pyproject.toml,docker/.env.prod,docker/.env.release. - Assembles the changelog. Every fragment goes into a new
## [X.Y.Z] - DATEsection, sections inchangelog.d/sections.jsonorder, writes the same text tofrontend/app/data/CHANGELOG.md, andgit rms the consumed fragments. It refuses if a fragment failsscripts/changelog.py check, if[Unreleased]holds anything but the pointer comment, or if[X.Y.Z]already exists; then it rolls the version files, both changelog files andchangelog.d/back. - Commits
Updated version to X.Y.Z(version files,CHANGELOG.md, its frontend copy, removed fragments), tagsX.Y.Z, pushesmain, then the tag. If the commit, tag ormainpush fails, the commit and tag are undone locally.
What the tag triggers
A tag matching [0-9]+.[0-9]+.[0-9]+ (no v) runs
.github/workflows/release-docker-images.yml, which builds and pushes the backend,
frontend and nginx images to GHCR tagged with the version. No GitHub Release object
is created and nothing deploys automatically.
Procedure
- Pick the version. Use the user's
X.Y.Zif given. Otherwise readgrep -m1 '^version' pyproject.tomland bump: patch for a hotfix or "increment", minor for features, major for breaking changes. State the number before running. - Sync
main:
If the fast-forward fails (local commits), stop and ask the user.git switch main git fetch origin && git merge --ff-only origin/main - Check the notes that will ship:
No fragments means a release with no notes. Ask the user before going on, and expect thepython3 scripts/changelog.py check # must print nothing and exit 0 git ls-files 'changelog.d/*/*.md' # the fragments this release consumes[y/N]prompt. A fragment that failscheckblocks the release; fix it in a PR (see thechangelogskill), not onmainby hand. - Release:
Read the output to the end. Success ends withjust version::set X.Y.ZReleased X.Y.Z: pushed main and tag X.Y.Z.and reports how many fragments were assembled. - Watch CI (see references/ci-watch.md):
Report whether the images built and pushed.gh run list --workflow=release-docker-images.yml --limit 1 gh run watch <run-id> --exit-status
Recovery
- Preflight refused: fix what the message names (switch to
main, commit or stash,git merge --ff-only origin/main, pick an unused version) and run again. Nothing was changed. A drifted or untracked frontend copy is fixed in a PR (cp CHANGELOG.md frontend/app/data/CHANGELOG.md, commit it), not onmainby hand. - Assembly failed: already rolled back. Fix the fragment or
[Unreleased]in a PR, merge, and run again. mainpush rejected: the commit and tag are already undone. Usuallymainmoved: sync and retry. A ruleset onmainalso rejects the push unless the releaser is on its bypass list.mainpushed but the tag push failed: no images were built. Push it by hand:git push origin refs/tags/X.Y.Z.- Wrong commit tagged and pushed:
CHANGELOG.mdnow has[X.Y.Z], so the same version cannot be released again. Delete the remote tag only if no images were published (git push origin :refs/tags/X.Y.Z), then release the next patch version.
Notes
- Never hand-roll the edits, commit or tag, and never edit
CHANGELOG.mdonmain: thechangelogCI job fails a push that does, unless it is the release commit. - For a local bump without releasing,
just version::set X.Y.Z --no-commitonly
Установить release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл release?
Cut a DraftForge release with `just version::set X.Y.Z`. It checks main is clean and current, assembles every changelog.d/ fragment into CHANGELOG.md's `## [X.Y.Z] - DATE` section in the release commit, tags X.Y.Z, pushes, and the tag triggers the GHCR image build. Use when asked to release, bump or increment the version, ship a hotfix, tag a version, or check what notes a release will ship.
Как установить скилл release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл release запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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