Skip to content
Back to skills

Rota Release

ASecurity

Use on "release", "cut a release", "tag a release", "ship X.Y.Z".

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 6, 2026
developmentpythongobashtestinggit

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add l4ci/rota --skill rota-release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rota Release?

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

Security grade badge for Rota Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/l4ci-rota-release/badge)](https://www.skillsdirectory.com/skills/l4ci-rota-release)

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: rota-release
description: Use on "release", "cut a release", "tag a release", "ship X.Y.Z".
disable-model-invocation: true
---

# rota-release — Cut a Release

## Configuration

From `.rota/config.json` (all keys optional):

| Key | Default | Notes |
|---|---|---|
| `release.versionFile` | (auto-detect) | Explicit path override; skips auto-detect search |
| `release.changelogPath` | `CHANGELOG.md` | Project-root relative |
| `release.checklistPath` | `.rota/RELEASE.md` | Per-project release checklist walked in Step 2; absent = offer scaffold |
| `release.tagPrefix` | `v` | Set to `""` for unprefixed tags |
| `release.draft` | `false` | Pass `--draft` to `gh`/`glab` |
| `release.requireCleanTree` | `true` | Set `false` to allow dirty releases (testing only) |
| `release.confirmLargePushCommits` | `10` | Threshold (commits) above which `roundtrip` and `auto` still confirm before pushing unpushed HEAD |

Copy this checklist and track your progress:

```
- [ ] Step 1 — Guard
- [ ] Step 2 — Project Checklist
- [ ] Step 3 — Milestone Gate (issue mode)
- [ ] Step 3b — Merge the Milestone Branch (milestone with a branch)
- [ ] Step 4 — Version and Bump Level
- [ ] Step 5 — Generate Release Notes
- [ ] Step 6 — Review Notes
- [ ] Step 7 — Write Version File and CHANGELOG
- [ ] Step 8 — Commit
- [ ] Step 9 — Tag
- [ ] Step 10 — Push the Tag
- [ ] Step 11 — Publish Remote Release
- [ ] Step 11b — Push the Branch
- [ ] Step 12 — Close Out the Milestone (issue mode)
- [ ] Step 12b — Clean Up the Milestone Branch
- [ ] Step 13 — Close Upstream Issues
- [ ] Step 14 — Docs Nudge
- [ ] Step 15 — Summary
```

## Step 1 — Guard

Stop with a one-liner on any failure.

1. **Clean tree**: `git status --porcelain`. Non-empty and `release.requireCleanTree` true: stop, show `git status -s`, suggest commit/stash or `release.requireCleanTree: false`.
2. **On trunk**: branch must be `main`, `master` or `trunk`.
3. **HEAD pushed**: `git rev-parse HEAD` vs `@{u}`. When HEAD has unpushed commits, read [`unpushed-commits.md`](unpushed-commits.md) and follow it.

`--dry-run` (any step): run the read-only verbs and the judgment questions, skip every write, commit, tag and push, and print what would happen instead.

## Step 2 — Project Checklist

Per-project release steps live in `release.checklistPath`; the skill hardcodes none. Skip in `--dry-run`: print the parsed items and `DRY RUN — checklist walk skipped.`

**File absent.** Read [`checklist-scaffold.md`](checklist-scaffold.md) and follow it (`"roundtrip"` and `"auto"` skip silently, `"off"` offers a starter scaffold; levels in [`references/autonomy.md`](references/autonomy.md)).

**File present.** Every line matching `^\s*-\s+\[\s*\]\s+(.+)$` is a gate, in file order; `- [x]` lines are skipped. Zero gates: say *"Checklist has no open items — continuing."* Per gate:

- `"off"`: ask: header `"Checklist"`, *"Checklist item: \<text\>. Done?"*, options `Yes, continue (Recommended)` / `Fix it now and continue` (pause, re-ask the same item) / `Skip this item` (record `skipped: <text>`) / `Abort release` (*"Release aborted at checklist item: \<text\>. Nothing written."*).
- `"roundtrip"` or `"auto"`: auto-acknowledge items not ending in `(manual)`; ask the `"off"` question for items that do, so sensitive items stay confirmed in unattended runs.

## Step 3 — Milestone Gate (issue mode)

When `issues.source` is `github` or `gitlab` or `rota repo umbrella` exits 0, read [`milestone-gate.md`](milestone-gate.md), *Step 3*, and follow it. Otherwise skip.

## Step 3b — Merge the Milestone Branch

When Step 3 picked a milestone and `milestone/<MNN>` exists on origin, read [`milestone-branch.md`](milestone-branch.md), *Step 3b*, and follow it: sync the base into the branch, gate, open a PR to the base, merge it with a merge commit, pinned to the gated head, once CI is green. A red gate or red CI stops the release before anything merges. No milestone, or no branch: skip; the release runs as before.

## Step 4 — Version and Bump Level

`rota release version --json` gives `data` `{file, version, kind}`. Exit 3 (no version file or unparsable): surface the message and tell the user to run `rota config set release.versionFile <path>`.

A bump arg may be `major`, `minor`, `patch` or `X.Y.Z`. With none, get the previous tag (`git describe --tags --abbrev=0 2>/dev/null || true`; empty means full history, note it in the summary), then run `rota release notes --from commits [--since <prev-tag>] --json`. Read `data.unbucketed` before choosing a recommendation:

- **`true`:** give no bump recommendation and mark no option as recommended, even if a `Breaking` or `New` heading is present. Tell the user: *"<other> of <total> commits are in Other. Bucketing needs conventional-commit prefixes, so these notes cannot reliably recommend a bump. Choose a bump after reviewing the range, or use `--from issues <MNN>` for issue-based notes."* Use `data.other` and `data.total` for the counts.
- **`false`:** read the headings in `data.markdown`: `Breaking` recommends `major`, `New` recommends `minor`, otherwise `patch`.

Ask: header `"Bump type"`, *"Current version: `<current>`. What bump type?"*, options `patch — <current> → <X.Y.Z+1>` / `minor — … → <X.Y+1.0>` / `major — … → <X+1.0.0>` (mark the recommended one only when `data.unbucketed` is false) / `Explicit version` (exact string via Other) / `Abort`.

Compute the new version read-only: `rota release version --json --level <patch|minor|major>` (or `--to <X.Y.Z>`); `data.next` is `new_version`. An invalid or not-greater `--to` exits 1: surface it and stop.

If `Breaking` commits were found but the user chose `patch` or `minor`, ask before continuing: header `"Escalate"`, *"Commits contain breaking changes (`!` or a `BREAKING CHANGE:` footer) but bump type is `<chosen>`. Escalate to major?"*, options `Escalate to major` / `Keep <chosen>` / `Abort`. Mark `Escalate to major` as recommended only when `data.unbucketed` is false; when true, mark no option as recommended here either.

## Step 5 — Generate Release Notes

`rota release notes --from commits [--since <prev_tag>]` (issue mode: `--from issues <MNN>`) returns categorized Markdown. Exit 3/4/5/6: stop and report. Editorial work is yours:

- **Compact dense buckets.** 3+ entries on one concern become one theme line plus at most 1-2 bullets for the highest-impact pieces (breaking change, flag flip, new public surface). Smaller buckets stay.
- **Stats.** Replace the verb's `## Stats` with `## Stats\n<N commits, M files changed, +X −Y lines>` from `git diff --shortstat <prev_tag>..HEAD` (drop `<prev_tag>..` with no previous tag).
- **Compare link.** With a previous tag, `rota release host --json` `data.host` picks the URL: `github`/`github-enterprise` → `https://<host>/<owner>/<repo>/compare/<prev_tag>...v<new_version>`; `gitlab`/`gitlab-self-hosted` → `https://<host>/<owner>/<repo>/-/compare/<prev_tag>...v<new_version>`. Append `**Full changelog:** <url>`. Host `none` or no previous tag: omit. `rota release host` exit 4 with `data.blockedBy` `forge` means the origin names no forge: omit the link, and tell the user that `release publish` will refuse the same way until `forge.provider` is set to github, gitlab or local.
- **One-line summary.** Prepend one line on the top 2-3 themes. It becomes the release title suffix in Step 11.

Before showing the draft, silently apply `references/humanizing-prose.md` to all model-written prose.

**Cross-harness review.** Then read [`release-review.md`](release-review.md) and follow it: one read-only run on another harness over the range since `<prev_tag>`, checking only cross-cutting risks the notes may miss. Its findings are shown with the draft in Step 6 for the maintainer to weigh; they never stop the release on their own.

## Step 6 — Review Notes

Show the full draft, then the `## Cross-harness review` block from Step 5 under it (or its one `unavailable` line), then ask: header `"Notes"`, *"Release `v<new_version>` — notes look good? Yes pushes the tag and publishes the release."*, options `Looks good (Recommended)` / `Edit` (replacement text via Other replaces the draft verbatim; re-display it, one edit pass, no second prompt) / `Abort release` (*"Release aborted. Nothing written."*).

This answer is the human approval for Steps 10 and 11. Keep it verbatim as `$APPROVAL` (the option label, or the replacement text's first line after Edit) for `--confirm-note`. Never auto-pick this question in any autonomy mode.

Write the approved notes to `NOTES_FILE=$(mktemp "$(rota git tmp-dir)/rota-release-notes.XXXXXX.md")`. The cross-harness block is for the maintainer, not the published notes: leave it out unless the maintainer's replacement text kept part of it.

## Step 7 — Write Version File and CHANGELOG

```bash
rota release bump --json --level <patch|minor|major>   # or --to <X.Y.Z>; same arguments as Step 4
rota release changelog <new_version> --body-file "$NOTES_FILE" [--path <release.changelogPath>]
```

If `data.to` differs from `new_version`, stop and surface it (the file may be partly modified). Changelog exit 4 (section already exists): stop before committing. Skipped in `--dry-run`.

## Step 8 — Commit

`git add <version-file> <release.changelogPath>` then `git commit -m "chore: release v<new_version>"`. Skipped in `--dry-run`.

## Step 9 — Tag

`git tag -s` if `git config --get user.signingkey` is set, else `-a`: `git tag [-a|-s] v<new_version> -F "$NOTES_FILE"`. Skipped in `--dry-run`; print the command.

## Step 10 — Push the Tag

> **Manual gate — pushing the release tag.** Always asks, in every autonomy mode. `rota release push` enforces the `tag-push` gate (exit 4 without `--confirm`); Step 6's answer is the approval. See `references/manual-gates.md`.

```bash
rota release push <new_version> --tag-only --json --confirm --confirm-note "$APPROVAL"
```

Only the tag goes now (an unflagged push is refused where goreleaser builds the release); the branch waits for Step 11b. On failure, read [`publish-failures.md`](publish-failures.md). Skipped in `--dry-run`.

## Step 11 — Publish Remote Release

> **Manual gate — publishing the release.** Always asks. `rota release publish` enforces the `release-publish` gate and reuses Step 6's answer.

```bash
rota release publish <new_version> --json --title "v<new_version> — <one-line summary>" \
  --body-file "$NOTES_FILE" [--draft] --confirm --confirm-note "$APPROVAL"
```

Add `--draft` when `release.draft` is true and the host is GitHub. `data.url` goes in the summary. When it exits non-zero or reports `changed: false`, read [`publish-failures.md`](publish-failures.md). Skipped in `--dry-run`; print the command.

## Step 11b — Push the Branch

Once the release is published and the binaries resolve, the same `tag-push` gate and Step 6's answer cover the branch:

```bash
rota release push <new_version> --branch-only --json --confirm --confirm-note "$APPROVAL"
```

Skipped in `--dry-run`. On a non-zero exit, read [`publish-failures.md`](publish-failures.md).

## Step 12 — Close Out the Milestone (issue mode)

In issue mode, read [`milestone-gate.md`](milestone-gate.md), *Step 12*, after Steps 10 and 11. Otherwise skip.

## Step 12b — Clean Up the Milestone Branch

When `milestone/<MNN>` still exists on origin or issues still carry `on-milestone/<MNN>` (also on a resumed release), read [`milestone-branch.md`](milestone-branch.md), *Step 12b*: remove the labels, delete the branch, mark the milestone shipped. Otherwise skip. Skipped in `--dry-run`.

## Step 13 — Close Upstream Issues

**Video series.** When `scripts/videos.py` and `videos/` exist, run `python3 scripts/videos.py --check`. A stale episode does not block the release: list each one it names and remind the maintainer to re-render with `videos/render.sh <episode>` (CI never renders). Skip in `--dry-run`.

When `rota issues imported --json --open-only` lists open upstream issues, read [`upstream-issues.md`](upstream-issues.md) and follow it. Skip in `--dry-run`.

## Step 14 — Docs Nudge

When `docs.afterWork` is true, read [`docs-nudge.md`](docs-nudge.md); otherwise skip.

## Step 15 — Summary

```
Released v<new_version>
  Tag:      v<new_version> (<tag-SHA>)
  Commit:   <commit-SHA>
  CHANGELOG: <release.changelogPath>
  Remote:   <release-URL or "skipped">
  Checklist: <N> done / <M> skipped (or "no project checklist" / "skipped in dry-run")
  [No previous tag — full history used as range.]   ← only when no prev tag
```

List skipped checklist items under `Skipped checklist items:`. In `--dry-run`, prefix the block with `DRY RUN — no changes written.`

## Rules

- Never bump without a user-confirmed bump type.
- Never push the tag without the user approving the release notes (Step 6).
- Stop on any non-zero verb exit you have no branch for.
- Project-specific release steps live in `release.checklistPath`, never here.

## References

- [`unpushed-commits.md`](unpushed-commits.md): Step 1 handling of unpushed HEAD commits.
- [`milestone-gate.md`](milestone-gate.md): Issue-mode milestone gate, close-out and umbrella repos (Steps 3, 12).
- [`milestone-branch.md`](milestone-branch.md): Milestone release through a PR from its branch to the base (Steps 3b, 12b).
- [`release-review.md`](release-review.md): Cross-harness review of the range since the last tag (Step 5).
- [`publish-failures.md`](publish-failures.md): Push/publish failure handling and edge cases (Steps 10-11b).
- [`upstream-issues.md`](upstream-issues.md): Close shipped upstream issues (Step 13).
- [`docs-nudge.md`](docs-nudge.md): After-work docs nudge (Step 14).
- [`checklist-scaffold.md`](checklist-scaffold.md): Starter checklist when the file is absent (Step 2).
- [`references/manual-gates.md`](references/manual-gates.md): The manual-gate registry (`rota gate list`): gates the verbs enforce with `--confirm`, and the skill-only callouts.
- [`references/issue-mode.md`](references/issue-mode.md): Issue-mode milestones and release.
- [`references/humanizing-prose.md`](references/humanizing-prose.md): Self-audit for model-written notes.

Files in this skill

  • SKILL.md10.9 KB
  • checklist-scaffold.md1.2 KB
  • docs-nudge.md458 B
  • milestone-gate.md1.3 KB
  • publish-failures.md1.7 KB
  • unpushed-commits.md632 B
  • upstream-issues.md1.3 KB

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 development →

Comments

Loading comments…

Newsletter

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