Skip to content

Latest commit

 

History

History
154 lines (133 loc) · 9.71 KB

release.md

File metadata and controls

154 lines (133 loc) · 9.71 KB

skilletor – release checklist

skilletor is released as the CPAN dist Skilletor from the repository root, with dzil release (bundle [@Author::GETTY]). One run uploads to CPAN, tags, pushes main and the tag, and publishes the GitHub release, which builds the binaries. All of that is outward-facing and is Getty's to run. Steps 1 to 3 are local and can run anytime.

The version is one line in two spellings: the dist's $VERSION in lib/ keeps both sub-levels, x.yyyzzz for the plugin's x.y.z (package.json), so 0.008000 is 0.8.0. The tag is the bare dist version (0.008000); the plugin's older tags are v0.1.0 to v0.7.0.

On the release machine

  • The bundle with binary support: Dist::Zilla::PluginBundle::Author::GETTY 0.328 or later (earlier versions have no binary keys), and PAR::Packer (pp): dzil build packs, verifies and smokes the binary locally (DZIL_BINARY_SKIP=1 skips that).
  • The dist's dependencies from CPAN, Text::Nunjucks 0.001 among them: cpanm --installdeps . and dzil authordeps --missing | cpanm. Every dependency comes from CPAN, in CI and in the binary build alike.

Per release

  1. Version — lib/Skilletor.pm already holds the version to release (0.008000; after every release the bundle bumps lib/ to the next patch level, 0.008001 for 0.8.1; a release of 0.9.0 sets 0.009000 in every module of lib/ by hand). Set package.json, package-lock.json (root and packages[""]), .codex-plugin/plugin.json and hermes/skilletor/plugin.yaml to its plugin spelling (0.8.0), and run npm run build (the Node CLI's version comes from package.json at build time). .claude-plugin/plugin.json carries no version: Claude Code takes it from the commit. t/02-version.t ties the two spellings, and maint/version-tie.pl refuses a release whose package.json is not the version released. Later releases only: delete bin/skilletor-binaries.sha256 in the same commit (see Binaries and the pin). Don't touch Changes: dzil release turns its {{$NEXT}} into the version line.
  2. Verify — npm run typecheck && npm test && npm run build && npm run check-dist; PERL5LIB=… prove -lr -j4 t; dzil build, which packs the binary for this machine, checks it and runs scripts/binary-smoke.sh on it, the https url source included. HOME=$(mktemp -d) node dist/skilletor.js --version prints 0.8.0, perl -Ilib script/skilletor --version prints 0.008000. When the Hermes plugin changed, also run the install case against real Hermes: SKILLETOR_HERMES_INSTALL=1 node --test --import ./test/setup.ts test/hermes-real.test.ts (network; Hermes downloads its plugin runtime, about 100 s). A probe of the binaries on all four platforms before the release: gh workflow run binaries.yml --ref main with an empty tag (artifacts only, no release touched); it builds from a tarball of that ref and runs every smoke.
  3. Audit — run the skilletor-release-manager agent: versions, dist, CLI reference in README and the bundled skill, marketplace entries, release notes.
  4. dzil release (Getty) — on a clean main (the bundle refuses another branch). It builds the tarball and, as every dzil build, packs, verifies and smokes the binary for this machine; then maint/version-tie.pl checks package.json, the dist's tests run with RELEASE_TESTING, the tarball is test-installed into a scratch dir, and it asks before uploading Skilletor-0.008000.tar.gz to CPAN. It stamps Changes, commits, and tags 0.008000. It bumps lib/ to 0.008001 in a commit of its own and pushes main and the tag. Then it creates the GitHub release as a draft, attaches the CPAN tarball and publishes it with that version's Changes entries as its notes, not marked latest (the binaries workflow does that). Last it installs the release locally. From here t/02-version.t accepts lib/ one step ahead of package.json. Nothing in it writes the root bin/, so the starter and its pin are untouched; the binary packed locally is not uploaded.
  5. Binaries and pin — the sequence below.
  6. Marketplace — only when the descriptions below changed or a harness listing is new: edit Getty/marketplace, then python3 scripts/check-manifests.py. Entries carry no version, so a plain release needs no marketplace change. Claude Code users get every push to main with the marketplace's auto-update. For 0.8.0 the Claude entry's license changes from MIT to Artistic-2.0.

Hermes users install the plugin from main (hermes plugins install Getty/skilletor/hermes/skilletor), not from a tag: a push to main reaches them with their next hermes plugins update skilletor, release or not.

git push origin main does not include refs/karr/* (the board); karr sync carries the board to the remote on its own.

Binaries and the pin

Plugin users run the release binary first (k203): the starter bin/skilletor-start reads bin/skilletor-binaries.sha256, downloads the binary of the version named there from the GitHub release, checks it against the pinned line and caches it under <claudeConfigDir>/skilletor/bin/<version>/ (k168). Without that file it downloads nothing and runs Node, then Perl. So the file is the switch. It may only reach main once the release holds the bytes it names, and a main with a new version must not keep the old file, or it would run the older binary under the newer plugin. Hence step 1 drops it, and it comes back with the new release's sums once they exist. In between, users run Node or Perl.

Every step here is outward-facing and needs Getty's go-ahead.

  1. The workflow — the published release starts .github/workflows/binaries.yml (release: types: [published]; the release plugin publishes it with Getty's own token, so the event fires). It calls the bundle's dzil-binary.yml pinned to a full commit (c339eef, bundle main on 2026-11-18), and passes the same commit as bundle_ref, the ref its scripts are checked out from; test/ keeps the two equal, so move both by hand together. The workflow builds from the release's CPAN tarball on linux-x86_64, linux-arm64, macos-arm64 and windows-x86_64. Each binary is smoked on clean machines (AlmaLinux 8 and 9, Debian bookworm slim, the macOS and Windows runners) with scripts/binary-smoke.sh, the https url source included. The workflow attaches skilletor-0.008000-<platform> (.exe on Windows), SHA256SUMS, install.sh and install.ps1 to the release, then marks it latest when it is newer than the current latest release (the release plugin leaves that to the workflow). A transient failure: gh run rerun <run-id> --failed; a rebuild of the same release: gh workflow run binaries.yml -f tag=0.008000. A fix in code is a new version, never a moved tag.
  2. Check the sums — gh release download 0.008000 -p 'skilletor-0.008000-*' -p SHA256SUMS -D <tmp>, then (cd <tmp> && sha256sum -c SHA256SUMS): four lines, every one OK, all of version 0.008000. On Linux x86_64, <tmp>/skilletor-0.008000-linux-x86_64 --version prints 0.008000.
  3. Commit the pin on main: copy SHA256SUMS as is to bin/skilletor-binaries.sha256 and commit it alone ("Pin the 0.008000 release binaries"). npm test stays green; the suite does not depend on the file.
  4. Push main — git push origin main. From here a user's next SessionStart fetches the binary in the background and caches it, and the session after runs it. Until a fetch succeeds (offline, no curl/wget, no sha256sum/shasum), Node and then Perl keep running; a failed fetch is retried after 15 minutes. Windows keeps running Node through bin/skilletor.exe (winlaunch) until the winlaunch change lands (k169); its line in the file is not read there yet.
  5. Marketplace: untouched for the pin. Entries point at the git repository, so the push to main reaches Claude Code, Codex and Hermes users alike.

Rollback: delete bin/skilletor-binaries.sha256 on main and push. Without the file the starter ignores any cached binary and runs Node, then Perl, from the next start on.

Marketplace entries (Getty/marketplace)

Each entry's description is its harness's plugin manifest description, verbatim: the Claude entry .claude-plugin/plugin.json's, the Codex entry .codex-plugin/plugin.json's.

Claude (.claude-plugin/marketplace.json, plugins):

{
  "name": "skilletor",
  "source": { "source": "url", "url": "https://github.com/Getty/skilletor.git" },
  "description": "Remote skills, agents and rules for Claude Code, Codex and Hermes Agent — declared once in skilletor.json, synced on every session, templated per project. Adds sources like marketplaces and puts the skilletor CLI on PATH.",
  "license": "Artistic-2.0",
  "homepage": "https://github.com/Getty/skilletor",
  "category": "productivity",
  "tags": ["skills", "agents", "rules", "sync", "templates", "nunjucks"]
}

Codex (.agents/plugins/marketplace.json, plugins):

{
  "name": "skilletor",
  "description": "Remote skills, agents and rules for Codex, Claude Code and Hermes Agent — declared once in skilletor.json, synced on every session, templated per project. For Codex: skills in .agents/skills, agents as agent-role TOML, rules injected at session start by the hook.",
  "source": { "source": "url", "url": "https://github.com/Getty/skilletor.git", "ref": "main" },
  "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
  "category": "Productivity"
}

Social preview

assets/github.png is both the README banner and the GitHub social preview (1280×640, under 1 MB). Upload it at Settings → General → Social preview when it changes.