Skip to content
Back to skills

Cutting Releases

ASecurity

Prepare, request, or verify a yolo-jail release. Use for release notes, version preparation, release gates, or publication follow-through.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustgobashtestinggitapi

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add mschulkind-oss/yolo-jail --skill cutting-releases --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cutting Releases?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cutting Releases
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mschulkind-oss-cutting-releases/badge)](https://www.skillsdirectory.com/skills/mschulkind-oss-cutting-releases)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cutting-releases
description: Prepare, request, or verify a yolo-jail release. Use for release notes, version preparation, release gates, or publication follow-through.
---

# Cut a yolo-jail release

Use this workflow for yolo-jail releases. Read [the release-process reference](../../../docs/reference/release-process.md) when a request meets an existing tag, failed workflow, partial publication, or resume. Write the changelog section by [the rules below](#write-the-changelog-section). Landing work adds no changelog entry, so the section is written here, once, from the commits since the last tag.

**A release request can create an immutable tag and publish artifacts.** Never run `just release` or dispatch a workflow unless the owner explicitly authorized publication. This skill prepares and verifies; it does not grant publication authority.

## Reuse evidence; do not repeat the full suite

Keep code landing, release preparation, and publication as separate stages:

- Code changes follow the normal testing and landing rules in [AGENTS.md](../../../AGENTS.md#testing). Normally, a launch-path landing includes one full integration suite. If the owner explicitly orders a particular code landing main-first, do not make a duplicate local suite a precondition to that already-authorized landing; report local and CI checks honestly as pending or canceled. This is a narrow sequencing instruction, not a general waiver of checks or hooks. The exact target SHA's regular main-push CI, including integration proof, is still required before tagging—but the release request runs that gate automatically; it is not a manual precondition to invoking `just release`.
- Regular [`ci.yml`](../../../.github/workflows/ci.yml) push CI runs the complete integration suite across Linux architectures and shards, then checks that every listed test ran. Before tagging, the release gate requires a successful regular **main push** CI run for the exact target SHA, including all required jobs and shard-completeness proof. A green PR run alone is not enough. The gate is enforced by [`preflight.sh`](../../../tools/release-wiring/preflight.sh) and [`gate.go`](../../../tools/release-gate/gate.go). `preflight.sh` invokes the gate with a 60-minute timeout and 15-second polling interval, first in release-request eligibility and again immediately before the tag write. The gate waits while proof is pending or absent; a completed failed/cancelled run or a proof/API timeout refuses without creating the tag. Release workflows consume that exact-SHA proof; release and publish recheck it. They prepare and publish release outputs but do **not** rerun the integration suite. If only release notes, docs, or the version heading changed, do not add another full Go or integration run: validate the notes locally, then rely on the exact-SHA main-push CI gate. If code, tests, or release-gate inputs changed, run the relevant tests under [AGENTS.md](../../../AGENTS.md#testing) and require CI for the final target SHA.

A completed failure for the frozen SHA does not trigger a rerun or let the request follow a later commit. Fix the source, commit and push a new SHA, and submit a new request for that exact SHA; the same version remains available while no tag has reserved it. Never treat a previously green run for a different SHA, a PR-only run, dispatch acceptance, or a local test as satisfying the exact-SHA release gate.

## Prepare the release commit

Run repository commands from the checkout root. First check the current branch and clean status; identify the newest release tag available in the checkout and review the changes since it, including commit bodies. Confirm with the owner which version and UTC release date to use, and review any known issue's explicit disposition. Honor an owner decision that an issue is non-blocking—including the existing Pants DNS preference—instead of turning it into an all-platform hold; clearly disclose skipped or unproven coverage.

**Do not wait manually for CI to turn green before invoking the release request.** After the target commit is pushed to `origin/main`, run `just release` from a clean checkout at that same SHA. The recipe performs its local checks and dispatches the exact SHA; the trusted [`release-request.yml`](../../../.github/workflows/release-request.yml) workflow waits for the regular main-push CI proof before tagging. Do not add a local CI watcher or duplicate integration run as a prerequisite. The request also never tags without both macOS floor profiles of the target in Cachix: when they are missing it dispatches their build itself, waits, and tags only if that build passes ([PTG-D5](../../../docs/reference/release-process.md#PTG-D5)). When it fails, check what its message names (the cache run's log, the `CACHIX_AUTH_TOKEN` secret, macOS runner availability), fix it, and run `just release` again; no tag was made, so the version is still free. If CI for that SHA has already completed unsuccessfully, fix the cause and push a new source SHA before making a new request; do not expect a request for the old frozen SHA to switch to the fix.

```bash
git status --short --branch
last_tag=$(git tag --sort=-v:refname | head -n 1)
printf 'Latest tag: %s\n' "$last_tag"
git log --oneline "$last_tag..HEAD"
git log --format='%h %s%n%b' "$last_tag..HEAD"
```

Write the version's section in [CHANGELOG.md](../../../CHANGELOG.md) as `## [X.Y.Z] - YYYY-MM-DD`, using the owner-selected version and the actual release date, by [the rules below](#write-the-changelog-section). Fold in anything still under `[Unreleased]`, then remove that heading's content.

The extractor and the release command choose the version from the newest dated changelog section. Do not hardcode a version or pass one to the release command. From the repository root, validate the chosen section without contacting GitHub:

```bash
version=$(sh scripts/release-version.sh)
printf 'Candidate version: %s\n' "$version"
sh scripts/changelog-section.sh "$version" >/dev/null
```

Run relevant Markdown/frontmatter and changelog checks for what changed. A note-only edit does not justify a full Go or integration suite. Commit the notes/version preparation as one coherent commit, then hand its full SHA to the owner or authorized host operator. Do not push, tag, install, or publish from this skill.

## Write the changelog section

**The section for a version IS its GitHub release body, word for word**, and `just release` is the one path to a tag. It takes no version: it releases the newest dated section, read by [`scripts/release-version.sh`](../../../scripts/release-version.sh), prints the version it chose, and refuses an argument ([PTG-D3](../../../docs/reference/release-process.md#PTG-D3)). It refuses a heading that is not `X.Y.Z[-pre]` or is dated after today, a dirty tree, a HEAD origin cannot see, a version already tagged at another commit (one tagged at HEAD goes on, for a [tag-only resume](../../../docs/reference/release-process.md#resuming-a-tag-only-release)), or a section [`scripts/changelog-section.sh`](../../../scripts/changelog-section.sh) rejects. That script is the gate everywhere (`just release`, `release.yml` and `publish.yml` run it, and `just check-ci` runs its tests): it refuses a missing, empty or placeholder section, filler ("various improvements", "under the hood") and a list of commit subjects. There is no hatch, because a tag is never moved; a bad release is fixed by the next one. What the script cannot judge is who the section is written for:

- **A line needs two yeses**: could a reader who never opens the repository notice it, and did what it fixes ship in a published version? A fix to something added in the same cycle folds into that feature's paragraph. Refactors, tests, dependency bumps, CI and internal docs never get a line, and neither does a feature that does nothing yet in a release (one behind an unshipped dependency).
- **Write to the user, in their terms**: what they can now do, see or stop working around. No commit hashes, PR numbers, package names or file paths; a repository-relative doc link is fine, since `release.yml` pins it to the tag.
- **Short, by the maintainer's ruling** (2026-10-01: ours had grown "nigh unreadable", ten times Vantage's). The standard is the `open-source-project` skill's `references/changelog.md`, kept tighter than its ceilings:
  - a release opens with ONE sentence naming its two or three biggest changes;
  - a feature is one `**Bold lead.**` paragraph of at most two or three short sentences, then `See [doc](link)`;
  - a fix is one bullet line;
  - a section stays at or under about 650 words.

  Never say how a change works, why, or how it was found. `### Changed` keeps every upgrade-breaking change, each with the one action the user takes.
- **Be short by cutting ideas, not grammar** (the maintainer, 2026-11-06, adopting a coworker's review of 0.16.0). When a section runs over, drop an entry or a clause; never squeeze one into shorthand. Every sentence follows [the plain-language principle](../../../docs/reference/plain-language-principle.md), the rules for all reader-facing text: a subject and a verb in every sentence, bold leads included; no verb used as a noun; no noun stacks; no project-internal words; one idea per sentence. Read each line back as a reader who has never seen the design docs.
- `### Added`, `### Changed`, `### Fixed`, then `### Contributors`, thanking each outside contributor by public GitHub name and linked handle (never an email). A feature an outside contributor built also names them inline on its own entry ("Contributed by …"). A number goes in only where a test or a constant pins it.
- An old minor line's retrospective section is headed `## 0.9.x`. A heading that spells a full version is one the extractor will publish.

## Request and follow the release

Only the owner or an explicitly authorized host operator should run the request, from a clean checkout of the exact release-prep commit that is contained in `origin/main`:

```bash
git push origin main
just release
```

This is the normal main-checkout sequence: push the committed release-prep/source SHA, then invoke `just release` without waiting locally for CI to finish. If that commit was already pushed, confirm the checkout is clean and still at that exact SHA before running the command. The command takes **no version argument**. It confirms the newest dated section, clean working tree, exact `HEAD` ancestry on `origin/main`, tag state, and usable notes before dispatching [`release-request.yml`](../../../.github/workflows/release-request.yml) with that exact SHA. The recipe does not wait for Actions; dispatch acceptance is not a green CI result or publication success. In GitHub Actions, release-request's eligibility preflight waits up to 60 minutes, polling every 15 seconds for the exact regular main/push CI run. It repeats that exact-SHA gate immediately before tag creation. A pending run can become green while the request waits; a completed failure, missing required-job/shard proof, API failure, or timeout fails closed and no tag is created. The release workflows continue to treat the full commit SHA of this release-prep commit as the target; they do not substitute a newer `main` SHA. Workflow preflight revalidates the main-push CI proof before tag/publication writes. The request workflow prepares target-source materials read-only, rechecks exact-SHA CI immediately before creating the immutable tag, then dispatches the trusted-main [Release workflow](../../../.github/workflows/release.yml) and waits for the exact original successful run before dispatching [Publish](../../../.github/workflows/publish.yml).

Monitor the original release-request run and its Release and Publish workflows through completion. Also check the Homebrew tap check if dispatched. A successful dispatch only means GitHub accepted a request; it does not prove release assets, PyPI, cache, or tap publication succeeded. Report the exact target SHA and each workflow's actual outcome, plus any skipped or unproven checks.

## Recover without automatically burning the version

A workflow failure does not by itself mean the version is consumed. Diagnose the failed stage and whether the immutable tag was created; preserve the same version whenever the supported route permits it. **Never bump the version automatically just because a workflow failed.** Get the owner's authorization before requesting or resuming a release.

- **Failure before the tag exists:** the version is unreserved. Read the original request's failed job. Fix the cause, then request the same version again if the notes remain valid, current release-version ordering permits it, and no tag has reserved it. A trusted workflow/orchestration fix on current `main` can leave the target source SHA unchanged. If the target source itself needs a fix, make a new source commit and use that full SHA; the same version is still available only while no tag has reserved it and the new SHA passes the normal exact-main-push-CI gate. The [preparation script](../../../tools/release-wiring/prepare.sh) and final pre-tag checks run before tag creation. Do not change the version merely to work around a fixable pre-tag failure.
- **Tag exists at the exact frozen SHA, with no later publication state:** the only automated continuation is the documented [tag-only resume](../../../docs/reference/release-process.md#resuming-a-tag-only-release). This can cover a request failure after tag creation (for example, a failed Release dispatch) or an unsuccessful Release run, but only when every proof below passes and no later state was written. The owner/authorized host operator runs `just release` with no arguments from a clean checkout at that exact tagged commit, whose newest dated changelog section still names the same version. This creates a fresh main-scoped request; it does not move or recreate the tag. [`request.sh`](../../../tools/release-wiring/request.sh) and `verify-resume` in the [release wiring](../../../tools/release-wiring/resume.go) must prove all of the following, or refuse: the tag is the request-created annotated tag with its expected message and exact target SHA; no draft or published GitHub Release exists; every prior normal Release run for that SHA is complete and unsuccessful (none succeeded or remains running), with no Homebrew-only or tag-push run; no Publish run exists; no other request for the version is running; PyPI has no equivalent version; the Homebrew formula does not carry the tag; and regular main-push CI succeeds for the exact SHA. Unreadable or incomplete proof blocks the resume. Fixing trusted release plumbing on `main` can accompany this route without changing the frozen target; a changed target source SHA cannot. If Release succeeded but its Publish dispatch failed, the prior successful Release means this is not tag-only and the automated resume refuses.
- **Tag points to a different SHA, a GitHub Release object exists, a normal Release run succeeded, or any Publish run exists (even if that run failed before an obvious registry write):** this is not the supported tag-only state. In particular, an existing draft/partial release or publication claim is not safe to overwrite, and Publish is not generically replayable. Do not move/delete the tag, retag different source, use `gh run rerun`, recreate releases, or clobber assets/claims. Preserve state and ask the owner to choose a disposition after read-only diagnosis. This blocks automatic continuation; it does **not** authorize an automatic version bump or prove the version must be abandoned. If a source fix changes the target SHA after tagging, the current resume proof rejects it; the workflows do not provide a same-tag source replacement.

Use the documented [partial-state inspection commands](../../../docs/reference/release-process.md#partial-state-and-validation-limits) to inspect the original runs and release without writing:

```console
git ls-remote origin refs/tags/vVERSION
gh run list --repo OWNER/REPO --workflow release-request.yml --limit 20
gh run list --repo OWNER/REPO --workflow release.yml --limit 20
gh run list --repo OWNER/REPO --workflow publish.yml --limit 20
gh run view RUN_ID --repo OWNER/REPO
gh release view vVERSION --repo OWNER/REPO
```

Do not dispatch Release or Publish directly: their provenance checks require the supported main-scoped request chain. A matching tag alone is not authorization or proof that a resume is safe.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.