kanevry/session-orchestrator/release
Claude Code and agent skill by kanevry/session-orchestrator
- community
Checking that the SKILL.md file is still in the repository.
Cut a release — the order the steps must run in, and the criteria that abort a release
Install
npx vskill@latest install kanevry/session-orchestrator/releaseSKILL.md
The same SKILL.md was published earlier as kanevry/session-orchestrator/release.
Release
The user wants to cut a release of this package. Optional argument — the target version: $ARGUMENTS.
The mechanism is `scripts/release.mjs`. It exists, it is executable, and its pure half is unit-tested (tests/scripts/release.test.mjs). This skill carries only the two things the script cannot carry: the order, and the criteria that stop a release. Do not restate the script's internals here — node scripts/release.mjs --help and the file header are the reference.
Invocation
$ARGUMENTS is optional and holds the target version X.Y.Z. When it is empty, resolve the target from package.json and the CHANGELOG before step 2.
The flags this repo's release path uses — the operator-facing entry points, in the order they run:
node scripts/release.mjs --set-version X.Y.Z— rewrite every version surface and syncpackage-lock.json.node scripts/snapshot-probe.mjs --local --json— undermirror: curated, run what GitHub runs on the tree GitHub gets (the release commit's export) before anything is pushed;--checkrequires its receipt.node scripts/release.mjs --check --json— the preflight gate; every row must be green.node scripts/release.mjs --publish— stages the release (ADR-0018 route C):npm stage publish, proof, stop; the owner approves on npmjs.com with 2FA, then--resume-tail --target X.Y.Zruns the tail.--publish --directis the pre-2027 one-run route; start that one in the background, never under atimeoutwrapper (step 9). Route detail:skills/npm-publish/SKILL.md§ Route C.node scripts/release.mjs --publish --trusted— opt-in route B (ADR-0018), incompatible with--direct. The tag push starts the GitHub mirror’s trusted-publishing workflow in thenpm-publishenvironment, which has no required reviewer. After confirming the npm receipt, the script checks the GitHub release, live site and Verify public npm install job. It polls the job for up to 25 minutes, retrying transientgherrors. Exit 0 requires a passing install job and a complete tail. A failed job or an unfinished tail exits 1. Exit 3 means npm has published the version and only the install result is outstanding. Inspect the Actions URL and run--resume-tail --target X.Y.Zfrom the checkout holding the release proof. The resumed tail reads the job after the live-site check unless the proof records a pass. Forawaiting-workflow(exit 1), inspect the tag’s Actions run before resuming. Seeskills/npm-publish/SKILL.md§ Route B.
--skip-ci marks the CI row green without checking anything and is refused by the script when combined with --publish; it is an inspection aid for --check, never a release path.
Why the order is written down
3.18.0 has a git tag, a GitHub release and a CHANGELOG entry — and the npm registry never saw it; a checklist line is not a mechanism.
Verify it yourself before trusting the paragraph above:
The same reading shows the other half: the GitHub releases for 3.15/3.18/3.19/3.20 were all created on 2026-08-19 within a three-second window — 5 to 31 days after their tags. Every step that lives only in prose gets skipped and backfilled later.
The order
- Preconditions. Working tree clean, on
main,origin/mainlevel withHEAD, and the GitHub mirror current. The mirror is checked because the site deploy hangs offgithub, notorigin. What "current" means follows Session Configmirror(--checkrowgithub-mirror-modenames it): undermirror: github(or unset),github/mainequalsHEAD; undermirror: curated(#1645), GitHub never receivesHEAD—github/mainis a squash snapshot whoseSource-Commit:trailer must nameHEAD(publish it with/closeonmain, session-end § 4.4).docs/github-mirror-protection.md§ Releases undermirror: curated. - Set the version.
node scripts/release.mjs --set-version X.Y.Z— rewrites every version surface, syncspackage-lock.json, re-stamps the measured census on the site. - Write the editorial half. The dated
## [X.Y.Z] - YYYY-MM-DDCHANGELOG entry,[Unreleased]folded, README highlights. The script does not write these;--checkenforces them. - Gate, commit. Full quality gate, then commit. Do not push yet.
- Probe the export (under `mirror: curated`), before the push.
node scripts/snapshot-probe.mjs --local --json— builds the curated tree ofHEAD(the release commit) and runs on it what GitHub'stestjob runs. The question it answers: does what GitHub runs pass on what GitHub gets? Since the slim mirror (#1594) the policy carries anincludelist, GitHub gets notests/, vitest or eslint config, and itstestjob runsnpm run test:mirror(scripts/ci/plugin-smoke.mjs: manifests, syntax, runtime dependencies, SessionStart). The probe'steststep runs the same smoke, in about a minute; validate-plugin is not a default step there, because it reads files the mirror does not carry. The full suite runs on GitLab (step 7). The probe needs no remote and no pushed commit. Run it here, not after the push: 5.13.0 found three blockers only after its first curated push (#1712), when the release commit was already onmain, and the fixes took two more MRs (!223, !224). A red probe here is fixed before anything leaves this machine.
- Host: the smoke is light, so
node scripts/snapshot-probe.mjs --localis the route.node scripts/snapshot-probe.mjs --host <alias>runs the pre-push router's full gate on that host and exits 2 under anincludelist, since that gate cannot pass on a tree without tests; it applies only to a policy without one (the pre-#1594 mirror). A host that is unknown, not ready or falls back exits 2 and writes no receipt. - Exporter version: an allow-list policy (version 2) needs export code at or after commit 482cd32a. An older plugin root refuses it with a policy-version error and publishes nothing; run the export (and
/close) withPLUGIN_ROOTset to a checkout at or after that commit, or install a plugin release that contains it. - Receipt: only a run with the citation step (
excluded-citations: the export's own check for public files citing excluded paths) and a suite step writes one, at.orchestrator/tmp/snapshot-probe/<tree>.json. It is keyed by the snapshot tree plus a hash of the excluded paths: a commit that only edits excluded files keeps it valid, but adding, removing or renaming an excluded file, or any change to a public file or the export policy, invalidates it.--checkrowsnapshot-probereads it and never runs the probe itself. - Directory preflight:
node scripts/directory-preflight.mjsmeasures the same curated tree against the mechanical rules of the Claude plugin directory scan (file count, text files over 256 KiB, binaries, an MCP server declared in.mcp.jsonand inline, line-ending rules withouteol=lf, a lockfile besidepackage.json). Modes:--mode off,warn(default, report only, exit 0),strict(exit 3 on a blocking finding; holds stay a report because a reviewer decides them). It leaves the index and the working tree untouched and removes nothing. Nothing calls it automatically.
- Push to both remotes — under
mirror: curatedthe second "push" is the curated snapshot from/close, never a plain push ofmain(session-end § 4.4 refuses it).
- Read the directory scan back. The Claude plugin directory scans each mirror commit on its own, about every 6 hours. Open the submission at
claude.ai/directory/manage(signed-in publisher account), then its Versions tab and the new GitHub commit, and record the fetch line, the policy result and the codes of blocking rules in the tracking issue. Nothing notifies the publisher of a failed scan.
- CI green — on the commit that will be published, on BOTH platforms. Not on its predecessor: a green pipeline from before step 4's commit is evidence about a different tree. And not on GitLab alone —
--checkcarries two CI rows,ci-green-on-head(GitLab, viaorigin) andci-green-on-head-github(the mirror). The GitLab pipeline is Linux-only and carries the full suite; the macOS matrix leg exists solely in.github/workflows/test.yml, i.e. on the operator's own platform, and since #1594 runs the mirror smoke there, not the suite. The github row self-disables (skipped — no github remote) in a checkout without a mirror, and fails onunknown/degradedexactly like the GitLab one — "could not read the mirror" is not "the mirror is green". - Preflight.
node scripts/release.mjs --check --json— every row green. Run this after the release commit is pushed and its CI succeeds: the preflight requires a clean working tree, HEAD parity on both remotes (on GitHub undermirror: curated: the snapshot'sSource-Committrailer, rowhead-pushed-github) and green CI on that commit (on GitHub undermirror: curated: on the snapshot). It derives its target frompackage.json, so checking the pre-bump version instead produces registry- and tag-collision failures. - Publish.
node scripts/release.mjs --publish— start it in the background and do not wrap it in `timeout`. No fixed number of seconds is enough: eachgit pushof the tail re-runs the husky pre-push full gate (up to ~8 min per push under load), plus up to 120 s of live-site polling. The script sets no spawn timeout on purpose (a kill mid-npm publishor mid-push is the very failure the receipt boundary exists to avoid). For 5.13.0 atimeout 580killed the tail after the receipt: npm had the version, the tag was local only, no GitHub release (#1753).
Once the receipt is target-confirmed the script prints publish tail running for … (npm accepted it), defers SIGTERM, SIGINT and SIGHUP, and starts every further child in its own process group. GNU timeout signals the whole group, so without that a handler alone kept node alive while the git push child still died (measured 2026-10-24). Exit 124 from a timeout wrapper says nothing about the tail; read the outcome lines instead. Deferred signals are listed there as deferred <SIGNAL> at <iso>; the tail ran to its end. kill -KILL <pid> and timeout -k still kill it, and the tail then stops wherever it is (see § Tail interrupted). Claude Code 2.1.310 does not signal a Bash command at its tool timeout; it moves the command to the background (measured 2026-10-24).
The target-confirmed npm receipt is the irreversible boundary. Before that receipt, any failure aborts normally. After it, never rerun --publish: the script writes the publish proof .orchestrator/runtime/release-<target>.json (checked archive sha256 + sha512 integrity, receipt time, commit, tag), and a registry availability timeout/query/wait failure is reconciliation while the script still tags, pushes main + tag to both remotes (under mirror: curated: main + tag to origin, the verified snapshot + a tag on that snapshot to github), handles the GitHub release, and polls the live site. If tag/push fails after the receipt, the dependent GitHub-release and site steps are skipped and the script returns structured reconciliation guidance instead. Add the GitHub release for the new tag (gh release create) as part of this step, not "later" — "later" is what produced the three-second backfill above.
Route B moves the boundary. Under --publish --trusted the tag is pushed BEFORE npm has the version; the receipt is read afterwards from the registry (trusted-publisher marker, provenance, per-file content comparison). A failed run or a mismatch is fixed forward with a new patch version, never by re-tagging.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/release/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 7
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kanevry/session-orchestrator/release)