release
/release
Cut a Factory release end to end — analyze everything since the last tag, decide with the user what else goes in, fix it through the fix skill, verify quality and correctness (suites, the migration upgrade path from the last release, a live batch on kind), merge in order, then run `npm run release`, watch the publish workflow and create the GitHub release with grouped notes. Use when the user says "release", "cut a release", "bump the version", "prepare vX.Y.Z", "what's left before release", or "/release".
- Author
- bellows-ai ↗
- Repository
- factory ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Cut a Factory release end to end — analyze everything since the last tag, decide with the user what else goes in, fix it through the fix skill, verify quality and correctness (suites, the migration upgrade path from the last release, a live batch on kind), merge in order, then run `npm run release`, watch the publish workflow and create the GitHub release with grouped notes. Use when the user says "release", "cut a release", "bump the version", "prepare vX.Y.Z", "what's left before release", or "/release".
Triggers from the description
Original author description
Cut a Factory release end to end — analyze everything since the last tag, decide with the user what else goes in, fix it through the fix skill, verify quality and correctness (suites, the migration upgrade path from the last release, a live batch on kind), merge in order, then run `npm run release`, watch the publish workflow and create the GitHub release with grouped notes. Use when the user says "release", "cut a release", "bump the version", "prepare vX.Y.Z", "what's left before release", or "/release".
How it works
- 1. Analyze
- 2. Fix
- 3. Verify
- 4. Merge
- 5. Release
- Reporting back
SKILL.md preview
---
name: release
description: Cut a Factory release end to end — analyze everything since the last tag, decide with the user what else goes in, fix it through the fix skill, verify quality and correctness (suites, the migration upgrade path from the last release, a live batch on kind), merge in order, then run `npm run release`, watch the publish workflow and create the GitHub release with grouped notes. Use when the user says "release", "cut a release", "bump the version", "prepare vX.Y.Z", "what's left before release", or "/release".
---
# Cut a release
A release is a tag. `npm run release` (`scripts/release.sh`) patch-bumps `VERSION`, commits only
that, tags `vX.Y.Z` and pushes branch and tag atomically; the tag starts
`.github/workflows/release-image.yml`, which re-runs CI, builds and scans the images, and publishes
them, the chart and the `@bellows-ai/bellows-cli` npm package — the chart's and the package's version is the tag,
never `charts/*/Chart.yaml`'s or `cli/package.json`'s. Nothing in the
workflow writes release notes: this skill does, with `gh release create`.
Run the phases in order. Stop and ask at every **Confirm**; everything else runs on its own.
## 1. Analyze
```bash
git fetch --tags origin && git checkout main && git pull --ff-only
LAST=$(git describe --tags --abbrev=0) # the last release
git log --oneline "$LAST"..origin/main
git diff --stat "$LAST"..origin/main | tail -1
git diff --stat "$LAST"..origin/main -- server/migrations charts .env.example server/src/config.ts docker/
gh pr list --state open
gh issue list --state open --limit 60
gh run list --branch main --limit 5
```
Group the commits by area (features, CLI, driver/runner, gates, web, tests). Pull out what an
operator must know: new migrations, new chart values, new or renamed env vars, removed images. Then
list **release candidates** — open bugs and small issues a release should not ship without, flaky
tests seen on main, follow-ups the merged work left open — each with its size and risk. Recommend
a cut; big or unrelated work waits for the next release.
**Confirm** the scope with the user: which candidates go in, which wait.
## 2. Fix
Each candidate in scope is one PR through the `fix` skill, run as a background agent per issue in
its own worktree. Group issues that touch the same files into one agent, or they conflict. Tell
every agent: do not merge, write its report to a file and return a short summary, and **never run
induced CPU-load tests (CPU burners, parallel full-suite loops) while a live batch runs on this
machine** — load fails the batch's gates, and a vitest worker timeout reads as a real failure.
Two worktree traps to pass on: `docker compose` names its project after the directory, so a
harness that execs into the stack's postgres runs with `COMPOSE_PROJECT_NAME=factory-ai`; and two
`verify:ui` runs at once each take their own `E2E_PORT_BASE` and `E2E_DB_PREFIX`.
A defect found later in this skill (phases 3–4) gets the same treatment: `gh issue create` with
the evidence (job ids, batch id, the failing output), then a `fix` agent. Small and obvious ones
you may fix directly in a worktree — test first, then the fix, then the owning `docs/` row.
## 3. Verify
Run on `main` once the in-scope PRs are merged (phase 4), and again after any late fix. Keep each
log on disk; read the summary, then the failures.
**Suites** — on an idle machine; a red under load is re-run before it is trusted. Run every one,
not only what CI runs: read `.github/workflows/ci.yml` for which suites gate a PR — a suite CI
never runs may have rotted unnoticed. Call a failure pre-existing only after it reproduces on a
known-good commit (the last tag, or the commit before the suspected change); otherwise it is this
release's. `npm test` exiting 1 with every test passed is load only when **every** reported error
is vitest's own worker timeout (`Timeout calling "onTaskUpdate"`); any other error — an unhandled
rejection the code throws — is red.
```bash
npm run typecheck
npm run lint
npm test
DATABASE_URL=postgres://factory:factory@127.0.0.1:5432/factory_release_test npm run test:db # create it first
npm run test:k8s
npm run test:jobs # needs a docker daemon
npm run verify:ui # every release: a payload change breaks panels from outside web/src
```
**Migration upgrade path** — every new migration has to run against data the last release wrote,
not only an empty schema:
```bash
export DATABASE_URL=postgres://factory:factory@127.0.0.1:5432/factory_upgrade_seed
docker compose exec postgres psql -U factory -d postgres -c 'create database factory_upgrade_seed'
git worktree add /tmp/factory-last "$LAST"
(cd /tmp/factory-last && npm ci && npm run build -w core && npm run build -w server \
&& node server/dist/seed/cli.js) # the last release's schema, with rows
npm run build -w core && npm run build -w server
node --input-type=module -e "
import postgres from 'postgres';
import { migrate } from './server/dist/db/migrate.js';
const sql = postgres(process.env.DATABASE_URL, { onnotice: () => {} });
await migrate(sql, { localUser: false, log: console.log });
await sql.end();" # this tree's migrations on top
git worktree remove --force /tmp/factory-last
```
Every new migration applies, the row counts survive, and the ledger ends at the newest file. Then
read each migration that alters an existing table: a new `check`, `not null` or unique index must
hold for rows the last release could have written. Drop `factory_upgrade_seed` afterwards.
**Live batch on kind** — the board, driver and runner images exactly as they will ship. `make build`
rebuilds and rolls out from the current tree (`make start` installs a fresh cluster). Then drive
a small batch through the `batch-control` skill against the kind board, never the production URL
`.env` may carry: one stage, two parallel tasks that both add the same scratch file outside
`docs/`, `automerge`, its target `branch` a sandbox branch pushed fresh from `main` for the run
(`git push origin origin/main:refs/heads/batch-sandbox-<version>`). That exercises dispatch, gates,
automerge, a conflicting PR, conflict repair and stage verification in one run. It opens and
merges real PRs into the sandbox branch: **Confirm** with the user first, and delete the sandbox
branch afterwards. Audit the outcome — both PRs target the sandbox branch, the merged file holds
both tasks' lines, `main` is untouched, the batch reads `completed`, its stage verification
`passed` — and read every
`waitReason`, question and repair prompt on the way: wrong guidance to the agent is a defect even
when the batch ends green.
## 4. Merge
Merge the green PRs one at a time with `gh pr merge <n> --squash`, re-reading `mergeable` after
each — `UNKNOWN` settles in seconds, `CONFLICTING` goes back to its agent: merge `origin/main`
into the branch (never rebase or force-push), keep both sides' behavior, re-run its tests, push,
wait for `validate`. Every review comment is answered on its thread with what changed, before the
merge. **Merge only a PR whose agent has reported done** — green checks while the agent is still
answering review leave its fixes for a second PR. Count the top-level review comments just before
merging: one that arrived after the agent stopped goes back to it. A check that fails on
`Docker pull failed` or a registry 429 is re-run (`gh run rerun <run> --failed`) before anyone
reads it as the PR's. Then run phase 3 on the merged `main`.
## 5. Release
Preconditions `scripts/release.sh` enforces anyway — on `main`, clean tree, level with
`origin/main`, HEAD untagged — plus the ones it cannot: CI green on HEAD
(`gh run list --branch main --limit 1`), no in-scope PR left open, phase 3 green on this HEAD.
Write the notes to a file outside the repo: **Highlights**, **Fixes** (issue numbers), **Upgrade
notes** (migrations, chart values, env vars, removed images — what an operator must do),
**Validation** (what ran live), **Known limits** (what was deferred, with its issue). No commit
list; the tag carries that.
**Confirm** with the user: name the tag, the HEAD sha and the notes. A pushed tag publishes images,
a chart that deployments resolve by version and an npm version that can never be reused; it is not taken back.
```bash
npm run release # prints "released vX.Y.Z"
TAG=$(git describe --tags --abbrev=0)
gh run list --workflow release-image.yml --limit 1
gh run watch <run-id> --exit-status # validate, build, scan, manifest, chart, npm
npm view @bellows-ai/bellows-cli version # the tag minus its v
gh release create "$TAG" --verify-tag --title "$TAG" --notes-file <notes.md>
```
A failed workflow can leave the tag half published — the `npm` job needs only `validate`, so the
images and chart can ship while the package fails, or the reverse. Read the failing job
(`gh run view <run-id> --log-failed`), check which artifacts the run did publish, then fix forward
in a PR and cut the next patch — never move or
delete a pushed tag. Create the GitHub release only after the workflow succeeds.
## Reporting back
The tag and its sha, the workflow run's result, the release URL, every PR merged for it, what was
verified live, and what was deferred with its issue number.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · bellows-ai/factory | 95 | MIT |
| josephfung/curia | 100 | MIT |
| max-sixty/worktrunk | 100 | MIT |
| gtapps/hermitd | 100 | MIT |
| gtapps/hermitd | 100 | MIT |
| anthony-chaudhary/fak | 100 | Apache-2.0 |
| tractorjuice/arc-kit | 100 | MIT |
| drvoss/everything-copilot-cli | 100 | MIT |
| sma1lboy/rove | 100 | MIT |
Database snapshot: 13.11.2026 · package version ca489b429e19 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90paw-tools-release
Automates software releases from version bump to GitHub release. Use when the user requests to 'create a release', 'cut a release', 'publish a new version', or 'prepare a release'. - 100ls-release
Cut a LlamaStash release (vX.Y.Z) end to end - promote the CHANGELOG, bump Cargo.toml and the TUI goldens, commit and push, tag, watch the publish pipeline, write the GitHub release body, verify every channel. Use when asked to release, ship, or publish a new version of llamastash. - 100release-workflow
Release a new version of Atom-lite to npm and GitHub. Use when asked to release, publish, ship, bump version, cut a release, or prepare a release note/changelog. Covers version bump, gate checks, diff-driven changelog and release notes, tagging, publishing, and verification. - 100cut-release
Cut a new agnostic-ai release end to end. Use when the user wants to ship a new version (tag + GitHub Release). - 100releasing
Full release lifecycle — version bump, CHANGELOG, rich release notes, tag, publish. Use when user says "release", "tag and release", "publish version", "cut a release", "new version". - 100create-release
Use when the user asks to "create a release", "cut a release", "tag a version", "publish release notes", or ship a new versioned GitHub release for the current repo.