Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .agents/skills/release/SKILL.md

This file was deleted.

7 changes: 0 additions & 7 deletions .agents/skills/ship/SKILL.md

This file was deleted.

40 changes: 0 additions & 40 deletions .claude/skills/release/SKILL.md

This file was deleted.

1 change: 0 additions & 1 deletion .claude/skills/ship

This file was deleted.

2 changes: 1 addition & 1 deletion docs/agents/release.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release

Read by the `release` skill from dsh (`release-next` while in trial). The full procedure and its reasons are in [development.md, "Cutting a release"](../studio/development.md#cutting-a-release).
Read by the `release` skill from dsh. The full procedure and its reasons are in [development.md, "Cutting a release"](../studio/development.md#cutting-a-release).

- **Tag:** `v*`. A repo without one has no release to start from (the tags were backfilled by #516).
- **Who notices:** a user of the npm package: the page, the `plotkeeper` CLI and its flags, `plotkeeper install`'s output and what it wires, the data folder, and the package itself (its README and LICENSE on npm). Agent docs, skills, CI and workflows, tests, snap fixtures, refactors, the system map and the development docs get no note.
Expand Down
2 changes: 1 addition & 1 deletion docs/agents/ship.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ship

Read by the `ship` skill from dsh (`ship-next` while in trial). plotkeeper's merge procedure is "Merge procedure" in [issue-tracker.md](issue-tracker.md#merge-procedure); follow it in full. It covers:
Read by the `ship` skill from dsh. plotkeeper's merge procedure is "Merge procedure" in [issue-tracker.md](issue-tracker.md#merge-procedure); follow it in full. It covers:

- **Checks:** the PR's own CI, and the `snap` rerun rule in `AGENTS.md`, "Checks".
- **Merge method:** squash, keeping the remote branch until the end.
Expand Down
2 changes: 1 addition & 1 deletion docs/studio/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ At most two `npm run check` run on a machine at once, across every worktree and

A release is a Release PR that Daniel approves by merging, then a publish he starts (spec #512, [#509's resolution](https://github.com/danielrispler/plotkeeper/issues/509#issuecomment-7157474516)). The versions and notes are never edited by hand.

1. **`/release`.** Daniel types it. The skill (`.claude/skills/release/`, mirrored in `.agents/skills/release/`) reads the commits and PRs merged since the newest `v*` tag, recommends `patch` or `minor` (`minor` for a new user-visible feature or a breaking change, `patch` for fixes and polish, never `major` or 1.0.0) and drafts user-facing notes in chat; with nothing user-facing since the tag it says "nothing to release" and stops. On Daniel's agreement it runs `node scripts/npm/release.mjs bump <patch|minor>`, which writes the version into `npm/package.json` (its own and the three platform packages' it asks for), `server/Cargo.toml` and `studio-server`'s entry in `Cargo.lock` and nothing else (`plotkeeper --version` prints the crate's; `server/tests/plotkeeper_bin.rs` fails when they differ), prepends the version's section to `CHANGELOG.md`, and opens `Release vX.Y.Z`. Its body holds the notes and lists the sentences of the README and of the site's `site/index.html` that the release made wrong, or says none; both are left to Daniel, and the site deploys when his fix merges, not with the release. The skill's last message also lists the open `parked` tickets that wait on an npm release, to unpark after the publish.
1. **`/release`.** Daniel types it. The skill (dsh's general `release` skill, installed globally by `scripts/link-skills.sh` in `danielrispler/dsh`, with plotkeeper's settings in [`docs/agents/release.md`](../agents/release.md)) reads the commits and PRs merged since the newest `v*` tag, recommends `patch` or `minor` (`minor` for a new user-visible feature or a breaking change, `patch` for fixes and polish, never `major` or 1.0.0) and drafts user-facing notes in chat; with nothing user-facing since the tag it says "nothing to release" and stops. On Daniel's agreement it runs `node scripts/npm/release.mjs bump <patch|minor>`, which writes the version into `npm/package.json` (its own and the three platform packages' it asks for), `server/Cargo.toml` and `studio-server`'s entry in `Cargo.lock` and nothing else (`plotkeeper --version` prints the crate's; `server/tests/plotkeeper_bin.rs` fails when they differ), prepends the version's section to `CHANGELOG.md`, and opens `Release vX.Y.Z`. Its body holds the notes and lists the sentences of the README and of the site's `site/index.html` that the release made wrong, or says none; both are left to Daniel, and the site deploys when his fix merges, not with the release. The skill's last message also lists the open `parked` tickets that wait on an npm release, to unpark after the publish.
2. **The Release PR's CI** runs `npm run check`, whose node test fails when `CHANGELOG.md` has no section for the package's version, and this workflow's pack and smoke jobs, since the PR touches `npm/` and a `Cargo.toml`. Merging it, through `/ship` when Daniel asks, is the approval.
3. **The publish.** Daniel alone starts it, from `main` with "publish" ticked: `gh workflow run release.yml --ref main -f publish=true`, or "npm package" in the Actions tab. The release commit guard (`release.mjs guard`) first fails the run unless HEAD is the commit that changed `npm/package.json`'s version, so a PR merged after the Release PR cannot ship under its notes; then run `/release` again. The workflow packs and smokes the four packages as above. The publish job upgrades npm to 11.5.1 or later (Node 22's npm is 10, too old for trusted publishing) and publishes the tarballs its own smoke jobs tested, with provenance: the three platform packages first, then the launcher, so the launcher is never on npm before a package it asks for, and it skips a package npm already has at this version, so a publish that failed partway is finished by "Re-run failed jobs". It holds no token: npm trusted publishing authenticates it through the job's `id-token: write`. Without "publish", or from another branch, the workflow only builds and tests.
4. **The `release` job**, after npm accepts the version, tags `vX.Y.Z` at the run's commit and creates the GitHub Release from the version's `CHANGELOG.md` section (`release.mjs tag`). It is idempotent: a tag already at that commit is kept, one at another commit fails, and an existing Release is left as it is. When it fails, retry it with "Re-run failed jobs" (`gh run rerun <id> --failed`), which reruns only it.
Expand Down
Loading