bunqueue-releasing
Skill601 starsChanged 19 days agoMITView on GitHub
Prepares and ships a bunqueue release. Use only when the user explicitly asks to prepare, cut, bump, tag or publish a bunqueue release or version, to continue a release they started, or to work on one of its parts: the release post and its numbers, the Upgrade notes, the API reference (docs:api), the version gate or the release push. A release work item in feature_list.json, a handoff, or permission to commit or push is never that request: starting such an item is bunqueue-working-sessions. Not for ordinary commits, a single change's changelog entry, an SDK's own publication, or questions about past releases.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/bunqueue/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sdk/CLAUDE.mdCLAUDE.md
- bunqueue-devSkill
- bunqueue-fixing-bugsSkill
- bunqueue-running-gatesSkill
- bunqueue-running-machine-gatesSkill
- bunqueue-working-autonomouslySkill
- bunqueue-working-sessionsSkill
- bunqueueSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Every step here has side effects that only the user can authorize.
- Distinctive: line 51
Commit: only on the user's request, with the changelog in the same commit and a specific message.
- Distinctive: line 71
Verify: every part (below).
- Very specific: line 90
Verify npm with the registry, not with npm view: npm view can answer from the local cache and show the previous version for minutes after a …
- Very specific: line 99
Never run bun publish or npm publish and never add an npm token: CI publishes through npm trusted publishing (OIDC), with provenance, and …
- Very specific: line 106
Do not rerun a failed release run to "get it green": a rerun runs release jobs again (the Docker push, the tag, the GitHub release).
- Distinctive: line 113
Keep each release compatible with the previous one: change only what a listed fix or feature needs, and let validation reject only …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Releasing bunqueue
Every step here has side effects that only the user can authorize. Codex never loads
this skill on its own (agents/openai.yaml), but Claude Code and other clients can,
from its description alone, so this first step is the guard: before anything else,
confirm that the user asked for this release in this conversation, and which steps; if
they did not, stop and ask. Preparing the release-preparation commit, bumping the
version and pushing are separate requests. The rules are in
CLAUDE.md and
AGENTS.md; the checklist is
docs/agents/release.md. Follow
that checklist in order; this skill adds what each step looks like in practice and
what went wrong before.
The release, step by step
- Work item: the release is one item,
release-X.Y.Z, in feature_list.json (bunqueue-working-sessions). Listing it there authorizes nothing. - Version and API reference (checklist step 1). Set
package.jsononly on the explicit request, then runbun run docs:apifrom a full clone whoseoriginis the GitHub URL, never from a git worktree: TypeDoc finds a repository only where.gitis a directory, and in a worktree it silently drops every "Defined in" source link. Use the clone procedure in the checklist verbatim and check its two "must print" lines. - Changelog (step 2). Date the section:
## [X.Y.Z] - YYYY-MM-DD. Then audit Upgrade notes against the code: every behavior change since the previous tag must be listed, because the skeptic audits the same diff. Procedure: references/release-audit.md. - Docker tags (step 3): every pinned image reference in
README.mdand the four guides names the new version;test/docs-docker-tags-version.test.tsfails while one still names the previous version. - Release post (step 4): run
bun docs/scripts/generate-release-posts.ts, rewrite the draft by hand as the checklist describes, delete the generated marker, and runbun docs/scripts/generate-release-posts.ts --check. Every number in the post must trace to a changelog line or a real measurement: references/release-audit.md. - Gates on the final candidate (step 5), all on one recorded tree
(
git write-tree):bun run test:sandbox;bun run test:sandbox:sdkwhengit diff --stat vPREV..HEAD -- sdk/is not empty; the Ubuntu 24.04 and Debian 13 Machines (bunqueue-running-machine-gates); then the skeptic untilPASS. A change after a gate is either proven docs-only (bunqueue-running-gates) or gated again. - Commit only on the user's request, with the changelog in the same commit and a specific message.
- Push (step 6) only on the user's explicit authorization. On
main, once the quality gate is green and the tag is new, CI's version gate builds the binaries, tests and pushes the Docker images, tags the commit and creates the GitHub release. It does not publish npm. Watch the run to its end withbash .agents/skills/bunqueue-running-gates/scripts/ci-watch.sh --sha <release sha>(bunqueue-running-gates) and report each job's result. npm, a separate publication and a separate request: npm is published by a
workflow_dispatchrun ofci.ymlonmainwithnpm_version=X.Y.Z, never by the push. Dispatch it only when the user asked for the npm publication:gh workflow run ci.yml --ref main -f npm_version=X.Y.ZIts
Publish bunqueue to npmjob then waits for the required reviewer of thenpmenvironment. That approval is the user's: give them the run URL and wait. Never approve it yourself and never look for a way around it;ci-watch.shreports the waiting run as NO VERDICT (exit 4).- Verify every part (below).
- After publication (step 7):
bun docs/scripts/generate-release-posts.ts --refresh, then update the post's install box and contributors. That is a new change: the usual docs, changelog, gate and skeptic rules apply.
The release is not done until it is verified
A push is not a release: for 2.9.22 the first push released nothing, because the
quality gate failed and the version gate never ran. Check each part where it lives,
and put each result in the release-X.Y.Z evidence:
| Part | Verify |
| Quality gate and version gate | gh run view <id> --json status,conclusion,jobs: the run concluded success, and Version gate, the Build, Docker and Release jobs are success, not skipped |
| Tag | git ls-remote --tags origin 'refs/tags/vX.Y.Z' 'refs/tags/vX.Y.Z^{}' names the release commit |
| GitHub release | gh release view vX.Y.Z --json tagName,isDraft,publishedAt,assets: published, not a draft, with the binaries |
| Docker | docker buildx imagetools inspect ghcr.io/egeominotti/bunqueue:X.Y.Z, and the same for docker.io/egeominotti/bunqueue:X.Y.Z: a multi-platform manifest (it reads the registry and pulls nothing) |
| npm | the registry itself: curl -fsS https://registry.npmjs.org/bunqueue/X.Y.Z answers with that version (404 means not published), and curl -fsS https://registry.npmjs.org/-/package/bunqueue/dist-tags shows latest |
Verify npm with the registry, not with npm view: npm view can answer from the
local cache and show the previous version for minutes after a publication.
Gotchas
mainrequires pull requests; only an account with bypass rights can push to it directly. If the push is rejected, stop and report it with the exact error. Never work around branch protection silently: no force push, no other remote, no disabling a rule. Offer a pull request or let the user push.- Never run
bun publishornpm publishand never add an npm token: CI publishes through npm trusted publishing (OIDC), with provenance, and nothing else may. - The npm dispatch only works while
mainstill points at the release commit: thePack bunqueue for npmjob refuses a tagged version whose commit is no longer the head ofmain, because the provenance would name another commit. Publish npm before the next push, or the fix is a new version. The same dispatch also rebuilds and republishes that version's Docker variants. - Do not rerun a failed release run to "get it green": a rerun runs release jobs
again (the Docker push, the tag, the GitHub release). Read the failed job
(
gh run view <id> --log-failed), report it, and let the user decide. - The release sections of the changelog and the post are reviewed against
git diff vPREV..HEAD -- src/, not against memory of what changed. A behavior change that only appears in a Features paragraph and not in Upgrade notes is a skepticFAIL. - Keep each release compatible with the previous one: change only what a listed fix or feature needs, and let validation reject only genuinely broken values. A tightened check that rejects input the previous release accepted is a behavior change.
- The release-preparation commit must contain the hand-written post; CI's docs job runs
generate-release-posts.ts --checkand fails on a stale or missing post. docs:apioutput from a worktree looks plausible (hundreds of changed files) and is wrong; a correct regeneration changes far fewer files and adds no file without a "Defined in" link.- A long release spans sessions: keep the
release-X.Y.ZevidencePARTIALwith the steps done and the gates pending, and say in the handoff which explicit requests have been given so far.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

