Command Palette

Search for a command to run...

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

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от 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).

  1. ! Make the release branch from the fetched tip: git fetch origin master && git switch -c release/v<version> origin/master. Step 2 accepts only release/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).
  2. ! task release -- <version> runs Steps 1 to 9 on that branch, then pushes release/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.
  3. ! Merge the release PR through the merge queue like any PR: task pr:wait-mergeable-and-merge -- <N> --wait.
  4. ! 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

Сравнить deft-directive-release с