agentleFS
egeominottiegeominotti/bunqueue/.agents/skills/bunqueue-releasing/SKILL.md

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.

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
  1. Very specific:

    Every step here has side effects that only the user can authorize.

    line 11
  2. Distinctive:

    Commit: only on the user's request, with the changelog in the same commit and a specific message.

    line 51
  3. Distinctive:

    Verify: every part (below).

    line 71
  4. Very specific:

    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 …

    line 90
  5. Very specific:

    Never run bun publish or npm publish and never add an npm token: CI publishes through npm trusted publishing (OIDC), with provenance, and …

    line 99
  6. Very specific:

    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).

    line 106
  7. Distinctive:

    Keep each release compatible with the previous one: change only what a listed fix or feature needs, and let validation reject only …

    line 113

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Work item: the release is one item, release-X.Y.Z, in feature_list.json (bunqueue-working-sessions). Listing it there authorizes nothing.
  2. Version and API reference (checklist step 1). Set package.json only on the explicit request, then run bun run docs:api from a full clone whose origin is the GitHub URL, never from a git worktree: TypeDoc finds a repository only where .git is 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.
  3. 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.
  4. Docker tags (step 3): every pinned image reference in README.md and the four guides names the new version; test/docs-docker-tags-version.test.ts fails while one still names the previous version.
  5. 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 run bun 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.
  6. Gates on the final candidate (step 5), all on one recorded tree (git write-tree): bun run test:sandbox; bun run test:sandbox:sdk when git diff --stat vPREV..HEAD -- sdk/ is not empty; the Ubuntu 24.04 and Debian 13 Machines (bunqueue-running-machine-gates); then the skeptic until PASS. A change after a gate is either proven docs-only (bunqueue-running-gates) or gated again.
  7. Commit only on the user's request, with the changelog in the same commit and a specific message.
  8. 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 with bash .agents/skills/bunqueue-running-gates/scripts/ci-watch.sh --sha <release sha> (bunqueue-running-gates) and report each job's result.
  9. npm, a separate publication and a separate request: npm is published by a workflow_dispatch run of ci.yml on main with npm_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.Z

    Its Publish bunqueue to npm job then waits for the required reviewer of the npm environment. 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.sh reports the waiting run as NO VERDICT (exit 4).

  10. Verify every part (below).
  11. 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:

PartVerify
Quality gate and version gategh run view <id> --json status,conclusion,jobs: the run concluded success, and Version gate, the Build, Docker and Release jobs are success, not skipped
Taggit ls-remote --tags origin 'refs/tags/vX.Y.Z' 'refs/tags/vX.Y.Z^{}' names the release commit
GitHub releasegh release view vX.Y.Z --json tagName,isDraft,publishedAt,assets: published, not a draft, with the binaries
Dockerdocker 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)
npmthe 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

  • main requires 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 publish or npm publish and never add an npm token: CI publishes through npm trusted publishing (OIDC), with provenance, and nothing else may.
  • The npm dispatch only works while main still points at the release commit: the Pack bunqueue for npm job refuses a tagged version whose commit is no longer the head of main, 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 skeptic FAIL.
  • 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 --check and fails on a stale or missing post.
  • docs:api output 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.Z evidence PARTIAL with the steps done and the gates pending, and say in the handoff which explicit requests have been given so far.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.