deft-directive-release
БесплатноБез исполняемых скриптовНе проверенCut a v0.X.Y release of the deft framework safely. Use when the user says "release", "cut release", "v0.X.Y", or "publish release" -- to walk an 8-phase…
от deftai★ 32 звезды на GitHubОб этом скилле
Deft Directive Release
Structured 8-phase workflow for cutting a v0.X.Y release of the deft framework. Operationalizes the task release / task release:publish / task release:rollback / task release:e2e / task release:wait-npm / task release:local-update surface introduced in #716 (safety hardening of #74; Phase 7 wait #4267; maintainer checkout closeout #5953).
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
See also: deft-directive-swarm Phase 6 Step 5 (Slack announcement template re-used by Phase 8 below) | deft-directive-review-cycle (user-gate pattern) | deft-directive-refinement (conversational phased flow).
Platform Requirements
! GitHub as the SCM platform; the GitHub CLI (gh) must be installed and authenticated. The full pipeline plus the rehearsal target (task release:e2e) all dispatch through gh.
Primary occupancy — trusted producer (#4266)
! Mutation session:start on a contended primary MUST pass --primary-claim-exception=release-cut before any state-changing preflight command (task policy:allow-direct-commits -- --confirm, reconcile, cache refresh). Occupancy already implements that exception; session:start CLI argv is the trusted producer.
deft session:start --primary-claim-exception=release-cut
or task session:start -- --primary-claim-exception=release-cut. Sibling values: policy-restore, operator-default-branch. Unknown values fail closed (exit 2). --read-only never claims.
⊗ Invent a process-wide env producer for the exception.
⊗ Name the exception in spawn JSON.
⊗ Run task policy:allow-direct-commits (or any other mutation) before mutation session:start --primary-claim-exception=release-cut on a contended primary.
Release cut-context — keep published pin (#5910)
! At release entry (Phase 1 after the version is confirmed, before Phase 4 / task release mutations that reach version bump/tag), write the cut-context marker via the named producer:
task materialize:cut-context
or node tasks/materialize.cjs --write-cut-context <checkout-root>. That writes .deft-scratch/release-cut-context.json. While the marker is present, task materialize:runtime refuses before it moves or replaces node_modules/@deftai/directive-runtime, so tip 0.0.0 cannot displace the published pin mid-cut.
! Keep cut-context active from release entry through version bump/tag. Clear after the bump/tag lands:
task materialize:clear-cut-context
! Tip dogfood materialize:runtime stays outside the cut path (#5805 keep-out). Do not remint pin-exclusive ordinary invoke.
⊗ Run task materialize:runtime on the cut worktree while cut-context is active.
⊗ Treat schedule-graph-only "never materialize" docs as a substitute for the cut-context refuse-before-replace guard.
! If a materialize overlay (.deft-scratch/materialize-runtime-overlay.json) is already present, cheapInSync fail-closes even when version strings match. Recovery is operator-terminal outside the blocked hook: pnpm install --frozen-lockfile (or equivalent exact restore), then retire the overlay before identity may pass.
Release through a PR (#6296)
! The release grant is the only human act a cut needs. Branch protection stays on, no policy switch, no direct push to the base branch, no override variables, and no hotfix label on the next PR. A stable cut runs these steps as deft release:run, which mints the grant up front (§ Stable cut runbook); the steps below are what it does and the manual path. Depth: docs/RELEASING.md § Release through a PR (#6296).
- ! Make the release branch from the fetched tip:
git fetch origin master && git switch -c release/v<version> origin/master. Step 2 accepts onlyrelease/v<version>at the fetched base tip; it refuses the base branch (naming the release branch) and a release branch left by an earlier attempt or already on origin (naming the recovery). - !
task release -- <version>runs Steps 1 to 9 on that branch, then pushesrelease/v<version>and opens the release PR (generated body: the version and the documentation-impact block; no closing keyword, no release notes). It stops and prints the finish command. - ! Merge the release PR through the merge queue like any PR:
task pr:wait-mergeable-and-merge -- <N> --wait. - ! Mint the grant, then
task release -- --finish <version>. The finish step resolves the merged PR's merge commit M and refuses before any tag unless M is on t
Установить deft-directive-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл deft-directive-release?
Cut a v0.X.Y release of the deft framework safely. Use when the user says "release", "cut release", "v0.X.Y", or "publish release" -- to walk an 8-phase workflow that pre-flights, runs an end-to-end rehearsal against a temp repo, lands a draft GitHub release (npm ships irrevocably at tag push), optionally QA's draft assets, then publishes the GitHub release or rolls back. Re-uses the deft-directive-swarm Phase 6 Step 5 Slack announcement template.
Как установить скилл deft-directive-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deft-directive-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