Skip to content
Back to skills

Release

ASecurity

Autonomously cut a Rove (`@sma1lboy/rove`) release end-to-end — detect the semver bump from pending changesets (flagging an upstream `minor` you didn't intend), run the release gates, dispatch the Changesets workflow (or run `scripts/release.sh` locally), then poll the GitHub Actions Release workflow with `gh` until npm publish completes, diagnosing CI failures (npm token, registry 404, lint, branch mismatch) instead of leaving them silent. Use when the user says "cut a release", "ship a vers...

  • 193 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 1, 2026
ai-agentsrustgobashgit

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add Sma1lboy/rove --skill release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release?

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

Security grade badge for Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sma1lboy-release/badge)](https://www.skillsdirectory.com/skills/sma1lboy-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: release
description: Autonomously cut a Rove (`@sma1lboy/rove`) release end-to-end — detect the semver bump from pending changesets (flagging an upstream `minor` you didn't intend), run the release gates, dispatch the Changesets workflow (or run `scripts/release.sh` locally), then poll the GitHub Actions Release workflow with `gh` until npm publish completes, diagnosing CI failures (npm token, registry 404, lint, branch mismatch) instead of leaving them silent. Use when the user says "cut a release", "ship a version", "release Rove", "release rove", "发版", "release.sh", or "bump the version". Never force-pushes; always verifies the release landed on `main`.
metadata:
  internal: true
---

# Release Rove

The flow and channels: `docs/RELEASING.md`; this skill must not contradict it. A stable release is cut only when the owner asks for one in that turn.

Chain: **detect the bump → gate → release → watch CI → confirm published**, or stop with a precise report. Run it without hand-holding, but stop at the **⚠ ASK** gate.

## Rules

- **Never force-push, reset a shared branch or retag over an existing tag.** If a tag or push conflicts, stop and report.
- **Default path is the workflow:** `gh workflow run changesets.yml --ref main`, find the run with `gh run list --workflow=changesets.yml --limit 1`, `gh run watch <run-id> --exit-status`, then Step 4. Use `scripts/release.sh` (steps in its header) only when Actions is unavailable or the user asks, and never while a changesets.yml run is in flight; they would race to tag the same version.

## Step 1 — Detect the bump ⚠ ASK

The bump is the max of the pending changesets, against `origin/main` (the workflow releases what is banked there). `bun run changeset:status`, then read each pending file's frontmatter.

- **None pending**: nothing to release. Offer to draft one (`changelog-generator`).
- **All `patch`**: proceed.
- **Any `minor` or `major`**: **stop and ask.** Quote the file and its bump line: "this carries a `minor`; the release will be X.(Y+1).0, not a patch. Intended?" Continue only on an explicit yes. Never edit someone's bump without permission.

Record the predicted version (current `packages/rove/package.json` plus the bump) to check later.

## Step 2 — Gates

`release.sh` and `release.yml` run lint, typecheck, test, build and the behavior suite themselves. One gate they don't: run `cd packages/rove && bun run perf:golden` before releasing. Its ceilings are 2-3× reference, so a FAIL is a real regression; rerun once, then treat it like a red test.

A failing gate: report the command and output, fix it if it's obvious and in scope, or stop. Never tag a red tree.

## Step 3 — Local `release.sh` only

- Confirm the printed `CURRENT → NEW (vX.Y.Z)` matches your Step 1 prediction. A mismatch means a changeset changed under you: stop and re-inspect.
- At `Push now? [y/N]`, answer `y` only after the version line checks out; answer `N` for a review-before-push. Re-running later resumes.
- If the CI wait comes back red, no tag exists and the version is not burned: land the fix on `main` (no new changeset) and re-run; it resumes and tags the same version.

## Step 4 — Watch publish, then verify

The tag push starts `release.yml`. Watch it to the end; a push is not success.

```bash
gh run list --workflow=release.yml --limit 5
gh run watch <run-id> --exit-status
```

On success, don't trust the green check alone:

```bash
npm view @sma1lboy/rove@<new-version> version
npm view @sma1lboy/rove-plugin-sdk@<sdk-version> version   # published when its version is new
gh release view v<new-version> --json name -q .name
git merge-base --is-ancestor v<new-version> origin/main
```

Report the version, the dist-tag (`latest` for plain semver) and the release URL.

## Step 5 — Diagnose a failure

`gh run view <run-id> --log-failed`, find the job and step, then:

| Symptom | Cause | Action |
|---|---|---|
| `npm publish` → `401`/`403`, `ENEEDAUTH`, `EOTP` | `NPM_TOKEN` missing, expired or wrong scope | Stop and report; rotating it is the owner's job. A re-publish needs a new version. |
| `npm publish` → `404` | registry URL or scope access | Report; check `.npmrc` and `access: public`. |
| "Verify tag matches package.json" fails | tag and committed version disagree | Surface it; never force-retag. |
| typecheck / test / build red | regression local gates missed | Reproduce, fix in scope; the fix ships as a new patch release. |
| `E409` / `cannot publish over` | version already on npm (double run) | Stop; the next release is a new version. |
| `behavior`/`render-track`/`visual-ground-truth` fails but `publish` passed | flake | Report. `gh run rerun <run-id> --failed` is safe for those jobs, never for `publish`. |

Anything that changes published artifacts or rewrites history (retag, force-push, republish) is stop-and-report. Local, idempotent fixes for the next release you may do.

Prereleases: `docs/RELEASING.md`, not this flow.

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.