.agents/skills/work-issue-release/SKILL.md

Prepare a release

Read the entry point's shared rules and the release rules in the SDLC.

Input: the release issue and all comments, its included issues and PRs, and fresh origin/main and origin/release/<version>.

  1. Confirm contents. Check that every included issue PR is merged into the release branch, that the diff against main has no unplanned scope, and that each issue has a compatibility summary for its merged revision. Report missing items as blockers; never drop scope silently. Unrelated commits on main are a developer decision.
  2. Analyze compatibility. Read the integrated diff, the summaries and the existing migration history. List every change to stored records, IDs, configuration, paths and workflow contracts. For every command, script or contract whose behavior changes, search docs/migrations/ and skills/migrate for uses of it: an earlier descriptor that runs it (for example as a read-only check) may now write or fail. Fix each such use in this release, for example by switching to a command that stays read-only, so no upgrade path runs the changed behavior by accident. Present one migration design with the release impact and open questions. A release with no record changes still gets one: an explicit no-record-migration step that verifies the previous target and writes only its checkpoint, because migrate defaults to the installed version and rejects targets that aren't indexed. Obtain developer approval before writing it. Commit the release work directly on release/<version>, never on main.
  3. Author the release. Write docs/migrations/<version>-release.md with the migration template, index it in docs/updating.md, and update any skill contracts that the migration changes. Generic migration behavior belongs in skills/migrate, never release-specific steps. Bump .claude-plugin/plugin.json, write the changelog entry (base each issue's line on its merged PR's compatibility summary, describe the release's own work such as the migration step yourself, and check every claim against the shipped skill text, not issue comments), and update README and adapter references.
  4. Verify. Run the SDLC checks and git diff --check. Rehearse the migration with scripts/migration-sandbox.mjs on disposable fixture projects covering each supported starting version, mixed records, blockers, repeats, interruption/resume and rollback. Record the release-candidate SHA, plan hash, fixtures, commands and results; state what was not covered.
  5. Review and publish. Get an independent review of the release work on the release branch, run as work-issue-implement step 5 describes. Open one release PR from release/<version> to main that closes the release issue and the delivered issues and includes compatibility, migration evidence and limitations. Merging needs human approval and explicit authorization. Changes after review renew the affected checks.
  6. Close. After an authorized merge, hand off to work-issue-close to verify main and the issue closures. A merge is not a published tag unless publication was requested and verified.

Handoff: release branch and head, migration plan ID/hash, rehearsal evidence, release PR and remaining approvals.

Original Markdown, including metadata
---
name: work-issue-release
description: Integrate a factory release. Check the included issue PRs on the release branch, design and rehearse the single release migration, finalize version/changelog/docs, and open the release PR to main. Use when the developer asks to work on a release issue.
---

# Prepare a release

Read the [entry point's shared rules](../work-issue/SKILL.md) and the [release rules in the SDLC](../../../docs/sdlc.md#releases).

**Input:** the release issue and all comments, its included issues and PRs, and fresh `origin/main` and `origin/release/<version>`.

1. **Confirm contents.** Check that every included issue PR is merged into the release branch, that the diff against `main` has no unplanned scope, and that each issue has a compatibility summary for its merged revision. Report missing items as blockers; never drop scope silently. Unrelated commits on `main` are a developer decision.
2. **Analyze compatibility.** Read the integrated diff, the summaries and the existing [migration history](../../../docs/updating.md). List every change to stored records, IDs, configuration, paths and workflow contracts. For every command, script or contract whose behavior changes, search `docs/migrations/` and `skills/migrate` for uses of it: an earlier descriptor that runs it (for example as a read-only check) may now write or fail. Fix each such use in this release, for example by switching to a command that stays read-only, so no upgrade path runs the changed behavior by accident. Present one migration design with the release impact and open questions. A release with no record changes still gets one: an explicit no-record-migration step that verifies the previous target and writes only its checkpoint, because `migrate` defaults to the installed version and rejects targets that aren't indexed. Obtain developer approval before writing it. Commit the release work directly on `release/<version>`, never on `main`.
3. **Author the release.** Write `docs/migrations/<version>-release.md` with the [migration template](../work-issue-migrations/migration-template.md), index it in `docs/updating.md`, and update any skill contracts that the migration changes. Generic migration behavior belongs in `skills/migrate`, never release-specific steps. Bump `.claude-plugin/plugin.json`, write the changelog entry (base each issue's line on its merged PR's compatibility summary, describe the release's own work such as the migration step yourself, and check every claim against the shipped skill text, not issue comments), and update README and adapter references.
4. **Verify.** Run the [SDLC checks](../../../docs/sdlc.md#implementation-and-verification) and `git diff --check`. Rehearse the migration with `scripts/migration-sandbox.mjs` on disposable fixture projects covering each supported starting version, mixed records, blockers, repeats, interruption/resume and rollback. Record the release-candidate SHA, plan hash, fixtures, commands and results; state what was not covered.
5. **Review and publish.** Get an independent review of the release work on the release branch, run as [work-issue-implement](../work-issue-implement/SKILL.md) step 5 describes. Open one release PR from `release/<version>` to `main` that closes the release issue and the delivered issues and includes compatibility, migration evidence and limitations. Merging needs human approval and explicit authorization. Changes after review renew the affected checks.
6. **Close.** After an authorized merge, hand off to [work-issue-close](../work-issue-close/SKILL.md) to verify main and the issue closures. A merge is not a published tag unless publication was requested and verified.

**Handoff:** release branch and head, migration plan ID/hash, rehearsal evidence, release PR and remaining approvals.