Release Discipline
Contents
- Fleet sweeps: use the shipped driver, do not hand-write a new one
- Canonical Order: Bump PR Merged → Tag Pushed
- Choosing the version step
- Pre-Release Version-Parity Check
- Changelog Rollover in the Bump Commit
- A reformatting hook aborts the first bump commit
- Cache Safety: Never Edit the Installed Copy
- Multi-Skill-Repo Release Dry-Run
- Lifting 0.x repos to 1.0.0: the STABILIZE class
- GitLab (
git.netresearch.de) skill repos release on tag too - A pushed tag is not a release — check the pattern the release job matches
- Release notes: the generated body is the default — do not curate it away
- Immutable-Release Caveat
- Tag Signing (Mandatory)
- No
--latestDrift for Non-Default Branches - What a release archive contains
- Supply-Chain Attestation
Every step that caused the "30 failed plugin releases" incident, codified as rules.
Fleet sweeps: use the shipped driver, do not hand-write a new one
Everything below that a fleet sweep needs is mechanized in
scripts/fleet-release-github.sh on top of the host-neutral
scripts/fleet-release-common.sh engine. The driver runs survey →
manifest (stops for human approval; versions and PR bodies are operator
judgment the scripts never invent) → bump → finish, resumable from remote
reality at every step. The changelog rollover below is its own tool,
scripts/roll-changelog.py. Fleets on other hosts keep their driver, their
repo list and their host specifics in their own (private) repository — that
driver vendors the shared engine and implements the host_* callbacks its
header documents; host knowledge stays with the host. Every sweep before
these existed re-implemented this page as one-off scripts and re-earned the
same bugs (#218 records the last one: brace-group exits, pretty-printed survey
rows, // on empty strings — all now encoded as tests). Deliberately out of
scope, by design: merging anyone else's PR, unarchiving, cloning missing
checkouts (the manifest names every row bump or finish will act on — BUMP,
FIRST-RELEASE, TAG-ONLY, OWN-PR-OPEN and 0.x stabilization candidates — whose
checkout under FR_BASE_DIR is missing or has another origin, so the clone
happens before the approval, not as a bump-time FAIL), writing CI files (a
NO-RELEASE-JOB manifest row means adopt the shared release CI first), and
non-default-branch releases. A contents read that fails for another reason
than 404 (plugin.json, composer.json, CHANGELOG.md, the release
workflow) is listed in the row's failed_reads and makes it
SURVEY-INCOMPLETE: taken as an absent file it would read as "no release
job", "no version" or "no changelog" and drop or misplan the repo — the
--latest=false rule below stays a manual concern. When a sweep needs
something the driver lacks, extend it in a PR; a session-local driver script
is how the next incident starts.
Run the sweep from a checkout you have just pulled, and read the FIRST bump
commit before letting the phase continue. git fetch is not git pull: a
driver copy can be behind the feature you are relying on, and a copy that
predates FR_COMMIT_TRAILERS ignores the variable rather than complaining about
it — every repo reports OK … bump PR open and the commits carry nothing. On
2026-09-11 that shipped four bump commits to main without their disclosure
trailers before anyone opened one; auto-merge had already taken them past the
point where an amend was possible, and rewriting main to fix it is worse than
the defect. fr_assert_trailers_landed now fails the repo when a requested
trailer is absent from the commit, which closes every producer of that symptom
except the one it cannot see: a stale engine does not know the variable, so it
cannot check for it. Hence the manual half — git -C <skill-repo-skill> pull,
then git log -1 --format=%B on the first repo the phase touches. The same
applies to a vendored engine: a fleet driver on another host reads its own
copy, so an upstream fix reaches it only after a re-vendor.
Read that commit from the PR, not from the branch — the bump phase arms
auto-merge, so the branch is often already merged and deleted by the time you
look. Both branch-shaped reads then fail, and they fail in ways that read like
the bump never happened rather than like it succeeded:
gh api repos/$O/$R/commits/release/v$V answers 422 No commit found for SHA
and gh api "repos/$O/$R/commits?sha=release/v$V" answers 404. The PR record
survives the branch deletion:
N=$(fr_opened_lookup "$R") # host-filtered, last record wins
gh api "repos/$O/$R/pulls/$N/commits" --jq '.[].commit.message'Take the id from fr_opened_lookup, not from a hand-written jq over
opened.jsonl. That file accumulates across runs and can hold both hosts, so
filtering on .repo alone yields several ids — which interpolate into a
multi-line path that either queries the wrong PR or fails outright. The helper
filters .repo and .host and keeps the last match.
This is the one check standing between a missing trailer and a defect that cannot be fixed after the merge, so it must not be the step that gets skipped because the documented command returned an error.
Where a policy requires agent or tool disclosure on every commit, set
FR_COMMIT_TRAILERS — newline-separated Key: value lines that the bump
commit carries as git trailers, alongside the --signoff it already writes.
The driver appends them verbatim and interprets none of them, so the keys stay
the operator's decision (Assisted-by:, Agent-Session:, … ). It applies to
both commit attempts, including the retry after a reformatting hook — the one
place a second git commit could otherwise drop them. Unset, nothing changes.
Budget the API before a sweep: the survey costs ~10 calls per repo, and
each GitHub quota pool (REST 5,000/h, GraphQL 5,000 points/h — separate
pools) is shared across every tool, watcher and agent in the session. A
40-repo survey plus check-watchers plus a merge-gate poll can exhaust them
mid-sweep — the GraphQL pool usually dies first because gh pr merge,
gh pr view --json and pr-status.sh all draw from it, while plain REST
still answers apart from short burst limits (2026-08-13: a sweep session hit
exactly this between "all gates verified" and "merge"). Practice: act on a verified, unchanged head
with ONE call instead of re-running preflight batteries — the REST merge
takes an sha pin (gh api -X PUT .../pulls/N/merge -f merge_method=merge -f sha=$(git rev-parse HEAD)) whose 409 IS the freshness check — prefer one
--watch over repeated status reads, and stop any watcher whose answer is
already known.
The finish merge gate waits through an exhausted quota; it fails a repo
only when the PR can no longer merge as it stands. Each poll is one GraphQL
read of the PR's state, mergeStateStatus, mergeable and its checks with
isRequired. A merged PR counts as merged whatever its checks say. The gate
fails the repo when the PR is closed, when it conflicts, or when a check the
branch rules require is red. A poll that cannot be read (the GraphQL quota
at 0, a GraphQL secondary rate limit, a 5xx) is not a state: the gate keeps waiting,
backs off up to four poll intervals, and only FR_MERGE_TIMEOUT ends that
wait — the TIMEOUT line then says how many reads in a row failed, which
separates a rate limit from slow CI. A red check that is not required
(drift / Template drift, a reviewer bot out of quota) is printed as a
note: and does not block, because GitHub merges over it: with auto-merge
armed the gate waits for that merge, without it the gate merges plainly on
CLEAN, or on UNSTABLE once no reported check is still running. (2026-10-21:
before this, two consecutive finish runs reported all six repos as
FAIL … merge gate during a rate limit caused by other sessions on the same
account, one of them for a bump PR that had already merged; #393.)
The Release check after the tag tells an unreadable read from a missing
Release, but it does not wait out the quota. A 404 is a read that answered
("not published yet"); a 403 or 5xx is not a state. Unreadable polls back off
on the merge gate's schedule. If the last read before FR_RELEASE_TIMEOUT is
unreadable, the repo fails with Release for vX.Y.Z UNVERIFIED instead of
no verified Release, even when earlier reads answered 404: those only say
the Release was not published yet, and a quota usually drains partway through
the window. The log then names the unreadable and the 404 counts, the REST
core quota with its reset time, and the last workflow runs; each failed read
also logs its cause (gh api failed: …). Both outcomes still halt the sweep, since the next repo
meets the same exhausted quota. Re-run finish after the reset: with the tag
on the remote it only verifies. (2026-10-23: agent-rules-skill v3.16.5 was
complete with 6 assets while the quota stayed at 0, and the sweep halted on
"no verified Release".)
A Release run that has not completed extends the wait; it is not a missing
Release. At FR_RELEASE_TIMEOUT the check reads the workflow runs of the
tag. A run that is not completed (queued behind a runner backlog, or still
running) keeps it waiting up to FR_RELEASE_QUEUE_TIMEOUT (default 2400 s,
counted from the start of the check, so a re-run of finish starts a new
one), and the log says so. A completed run, whatever its conclusion, or a tag
without any run ends the wait at once: the check reads the Release one more
time and, if there is none, fails with no verified Release as before. A run still not
completed at the cap fails with Release for vX.Y.Z PENDING — run <id> still <status> after <n>s, and a run list that cannot be read at a deadline fails
as UNVERIFIED. Both halt the sweep; re-run finish once the run has
completed. (2026-11-12: data-tools-skill v1.9.10's run sat queued for 12
minutes, the sweep halted on "no verified Release", and the run then
succeeded.)
A batch that waits on a prerequisite PR runs in its own --workdir. The
lock is per workdir and covers every phase, and a finish run holds it until
each of its merge gates closes — up to FR_MERGE_TIMEOUT per repo. Repos held
back for a prerequisite (an EMPTY changelog, a CI fix) therefore cannot be
bumped next to a running finish: the second call dies with workdir locked by running pid …. Copy their plan rows into a fresh workdir and run bump and
finish there. That is the intended shape, not a workaround — one workdir per
batch keeps opened.jsonl and the logs from interleaving, which is what the
lock exists to prevent. (2026-09-27: five repos with an empty [Unreleased]
ran as a second batch while the first batch's finish held the lock.)
Canonical Order: Bump PR Merged → Tag Pushed
Tag a version only after the version-bump PR is merged to the default branch. Tagging first causes the Release workflow to run against the old code, fail CI, and produce an immutable GitHub release locked to a bad tag.
WRONG: git tag -s v1.2.4 → git push → open bump PR
RIGHT: open bump PR → merge → pull main → git tag -s v1.2.4 → git pushChoosing the version step
A skill repository's public surface is how its skills, commands, scripts and hooks are invoked, what they return, and what each distribution channel delivers. Read the step from what a consumer of the last release would notice, never from the commit subjects: list the shipped files with git diff --name-only <last tag> origin/<default branch>, then read the content diff of every SKILL.md frontmatter, plugin.json, commands/ file and script among them, because a skill renamed in its frontmatter keeps its path. When one release mixes changes, the highest step wins. Changes made to one skill in the same working session are released together, with one bump after the last of them, not one bump per iteration: each bump is a PR, a tag and a release run, and consumers see one update instead of several. The table spells out the promise every 1.0.0 seeds into the CHANGELOG (FR_STABILIZE_ENTRY in fleet-release-common.sh).
| Change since the last tag | Step | A consumer of the last release… |
|---|---|---|
A skill's name changes, so /<plugin>:<skill> changes; a skill or command is removed; a skill directory is renamed or removed while a README tells users to link it |
major | calls a name that no longer exists, or keeps a symlink or junction to a directory that is gone |
A script option, argument or exit code is removed or changes meaning; an option becomes required; a script's output format or a hook's decision changes incompatibly; a skill's description is narrowed so it no longer triggers where it did |
major | gets a failing call or a result its caller misreads |
Content leaves a distribution channel, e.g. a skill becomes a command in commands/, which a Composer install (extra.ai-agent-skill names SKILL.md files) does not carry |
major | loses it on composer update, although Claude Code still finds the command under the same name |
A new skill, command, reference, optional script option, or a channel that did not exist (a first composer.json) |
minor | sees only additions |
| A compatible fix or a wording change in shipped files | patch | gets the same names, channels and results |
Only CI configuration, or only files no install receives (README.md, tests/, evals/, … — FR_NOT_SHIPPED_RE) |
no release | gets nothing new; the survey classifies these SKIP-CI-ONLY and SKIP-NOT-SHIPPED (below). A change to the release job that alters what the archives contain is not CI-only: release it at the step of the content it adds or removes |
Only the private key of the root package.json, e.g. "private": true added next to the 0.0.0-source version |
no release | gets nothing new: private only makes npm publish refuse, no release job runs npm publish (installation-methods), and an install of the tag reads the same files. The survey reads the root package.json patch and classifies the row SKIP-NOT-SHIPPED when every changed line is the private key (a trailing comma moved onto a neighbour line included); any other changed line, or a patch the API does not return, keeps it BUMP |
Below 1.0.0 a breaking change raises the minor version instead; lifting such a repo to 1.0.0 is the STABILIZE class further down.
The 2026-11-06 GitLab sweep set four of these apart. it-maintenance-skill, it-project-lifecycle-skill and it-claude-plugin-version-check-skill renamed their skill to the plugin name and went to 2.0.0; the last one also told its users to re-create a skills-directory junction under the new folder name. ecom-phpstorm-index-skill moved its lookup from a skill to a command and went to 2.0.0, because its Composer package stopped carrying it. it-account-lifecycle-skill made the same move to commands/ and went to 1.15.0: the commands keep their invocation in Claude Code, no README asked users to link the skill directories, and its composer.json was new in that release, so no Composer install existed that could lose anything. typo3-browser-skill changed one reference besides CI and went to 1.0.1.
Pre-Release Version-Parity Check
Before pushing any tag, all version identifiers must match. This is the single check that would have prevented the 30-repo release failure.
Use the shipped script scripts/check-version-parity.sh (in this repo under skills/skill-repo/scripts/check-version-parity.sh):
# No arguments — compare plugin.json against SKILL.md metadata.version
skills/skill-repo/scripts/check-version-parity.sh
# With tag argument — also require plugin.json.version == tag (v prefix optional)
skills/skill-repo/scripts/check-version-parity.sh v1.2.4
# From a driver that iterates over many checkouts — name the repo explicitly
skills/skill-repo/scripts/check-version-parity.sh --repo /path/to/repo v1.2.4All paths the script reads are relative to the repo root, so without --repo
the root is the current directory. A fleet driver that passes the repo as a
bare argument gets it parsed as a tag and the script then aborts on the
missing plugin.json — after the bump has already been written to disk,
leaving every repo in that batch dirty (observed 2026-08-06: five repos in one
batch). Pass --repo, or cd into the checkout first.
What it checks:
- Root
plugin.json(Agent Plugins manifest), when present, is the source of truth: bump it first, runsync-plugin-manifest.sh, and the check fails if.claude-plugin/plugin.jsonstill disagrees. Repos that have not adopted the portable manifest are unaffected — seeagent-plugins-compat.md. .claude-plugin/plugin.jsonhas a.versionfield — exits with an error if missing.composer.jsondoes not have a.versionfield — composer versions come from the git tag via the Release workflow, so a hard-coded version drifts silently.- If a tag argument is provided,
plugin.json.versionequals that tag with thevprefix stripped. - Every
skills/*/SKILL.mdthat declares a version in frontmatter —metadata.versionor a top-levelversion:key (both forms exist in the fleet; some SKILL.md files declare none, which is fine) — matchesplugin.json.version.
If called without an argument and all parity passes, the script prints an advisory suggesting the next tag call. Run before every git push origin vX.Y.Z.
Bump tooling must handle the same two frontmatter forms: a bump script that only rewrites the indented metadata.version silently leaves a top-level version: at the old value, and the tag pipeline's validate:skill then fails on exactly that mismatch (it-maintenance-skill v1.10.0 died this way; typo3-upgrade-estimator-skill nearly repeated it in the 2026-07-16 sweep).
Use scripts/bump-version.sh <version> [--apply] rather than a per-repo helper. It writes every surface check-version-parity.sh validates — the root plugin.json, the .claude-plugin/plugin.json projected from it, plus each frontmatter version: line in every skills/*/SKILL.md, both forms, indentation and quoting preserved — refuses when composer.json carries a version, and re-runs the parity check afterwards. Dry-run by default.
The root plugin.json is the surface a bump is most likely to miss. Until v1.28.0 the script wrote only the generated .claude-plugin/plugin.json, so on every repo that had adopted the portable manifest it left the source of truth at the old version, failed its own parity check, and exited 1 with the tree half-written. That is the same failure mode as the two frontmatter forms above, one level up: the surface the tooling does not know about is the one that silently keeps the old value. A fleet sweep hits it in every repo at once — 65 of them on 2026-08-08.
It deliberately does not commit, tag or push. A helper that bumps and tags in one step is how the canonical order above gets skipped: the tag then lands on an unmerged branch, or on a tree where only one of the version surfaces moved. Two repos grew such a target locally (make release in it-account-lifecycle-skill and it-maintenance-skill) and both diverged from this page — one bumped only plugin.json, the other hard-coded a single skill path and produced the v1.10.0 failure above.
Changelog Rollover in the Bump Commit
If the repo maintains a CHANGELOG.md, the version-bump commit moves the [Unreleased] content under a new ## [X.Y.Z] - YYYY-MM-DD heading and leaves a fresh empty [Unreleased] section. A bump commit that skips this leaves shipped content labeled [Unreleased] — the next release then has to relabel history after the fact (typo3-upgrade-estimator-skill shipped its entire v2.2.0 changelog block as [Unreleased] and it was only relabeled in v2.2.1).
An EMPTY manifest row is a prerequisite PR, not a bump. The roll refuses
an empty [Unreleased], so such a repo needs its entries on the default branch
first:
- Open one
docs(changelog)PR per repo that fills[Unreleased]from what shipped since the last tag — the merged PR bodies and their diffs, since follow-up commits often change what a body describes. - Check each entry's scope claim against the shipped reference file, not the PR
body alone. Of five such PRs on 2026-09-27, two overstated their scope ("a
vcsentry" where the reference says avcsentry with a GitHub URL; "a bare@login" where the script strips inline links only), and only a bot review caught them. - Merge it, then bump the repo in its own workdir (see "A batch that waits on a prerequisite PR" above).
Six heading shapes exist in the fleet, not the two this page claimed until v1.29.0 — the 2026-08-08 sweep hit five of them across 63 repos, and the 2026-11-08 sweep found the bare dash in tender-estimation:
| Shape | Example | Seen in |
|---|---|---|
| bracketed dash | ## [1.2.3] - 2026-08-08 |
most keep-a-changelog repos |
| bare paren | ## 1.2.3 (2026-08-08) |
it-maintenance-skill, gitlab-skill |
| bare dash | ## 1.2.3 - 2026-08-08 |
tender-estimation |
| bracketed em dash | ## [0.3.23] — 2026-07-02 |
nr-monatliche-abrechnung |
| linked | ## [v2.6.0](…/releases/tag/v2.6.0) — 2026-02-28 |
typo3-docs-skill |
[Unreleased] only, no released heading yet |
— | source-digest-skill |
A roll anchored on one shape matches nothing in the others and exits 0, so the
release ships with its content still under Unreleased and nobody sees an error.
Detect the shape from the newest released heading and reproduce it — including
the dash character and, for the linked form, rewriting the tag inside the URL.
The last shape has no released heading to copy from; that is the first release,
not an error, so default to the keep-a-changelog form its [Unreleased] bracket
already implies rather than aborting.
Fail the roll when it changed no lines — a no-match must not be
indistinguishable from a successful roll. Same rule as for metadata.version vs
a top-level version:: whichever surface the tooling does not know about is the
one that silently keeps the old value.
A generated entry must satisfy markdownlint, because every repo lints its
CHANGELOG in CI. Emit a blank line after each ### Added/### Fixed heading
and around every list, or the bump PR goes red on MD022 (blanks-around-headings)
and MD032 (blanks-around-lists) — in one repo, in every repo, all at once. This
red-lit 16 of 63 repos mid-sweep on 2026-08-08. It is worth running
npx markdownlint-cli2 CHANGELOG.md on the rolled file before committing:
the roll is generated text, and generated text is exactly what nobody proofreads.
Boundary regexes are also fence-blind — a scan anchored on ^## matches a
heading-looking line inside a fenced code block and splices the new section into
the middle of an example. Track fences while scanning.
A reformatting hook aborts the first bump commit
A hook that rewrites a file it is checking — pretty-format-json --autofix,
black, ruff format, end-of-file-fixer — modifies the staged tree and then
fails the commit; re-staging its output and committing again is the remedy,
and the second run passes because the file is already in the shape the hook
wants. fr_commit_allowlisted therefore makes two attempts, and the log shows
both (COMMIT EXIT (1): 1, COMMIT EXIT (2): 0). The retry re-walks the
porcelain rather than re-adding the first pass's paths, so a hook that writes
outside the version surfaces still fails the allowlist on the second pass.
Before that retry existed, such a repo left the bump phase as
FAIL <repo>: commit with a half-written worktree the resume then refused as
dirty, and the operator had to commit by hand and re-run — it-maintenance-skill
v1.15.0 and netresearch-jira-skill v2.11.1 both did on 2026-08-28 (#263).
Their trigger is worth knowing because it recurs: sync-plugin-manifest.sh
emits .claude-plugin/plugin.json in the source manifest's key order and
pretty-format-json sorts the keys, so the two rewrite each other on every
bump. Sorting the generator's output would settle that one pairing and no
other — the same hook also escapes non-ASCII, which the fleet's descriptions
are full of — so the retry, which is blind to what the hook changed, is the
fix rather than agreeing with one formatter.
Cache Safety: Never Edit the Installed Copy
Installed skills and plugins live under ~/.claude/ (or wherever the marketplace resolves them). Editing these paths directly is always wrong — the next /plugin update or marketplace sync will silently overwrite your changes, taking any local fixes with it.
Paths that are off-limits for edits
~/.claude/skills/**~/.claude/plugins/cache/**~/.claude/plugins/marketplaces/**- Anything inside a
.bare/directory (git bare clone; worktree source)
Pre-edit check
Before every Write or Edit in skill-repo workflows:
pwd_real=$(realpath .)
case "$pwd_real" in
*/.claude/skills/*|*/.claude/plugins/*|*/.bare/*)
echo "REFUSING to edit installed/cache path: $pwd_real"
echo "Navigate to the source worktree first."
exit 1
;;
esacRecovery when edits landed in the wrong place
- Stop. Do not run
/plugin updateorcomposer update— they may wipe your edits. diff -r ~/.claude/skills/<name>/ ~/projects/<name>-skill/main/skills/<name>/to see what drifted.- Copy the legitimate changes into the source worktree.
- Commit from the worktree; never from the cache.
Multi-Skill-Repo Release Dry-Run
When releasing >3 skill repos in one sweep, produce this manifest and wait for user approval before executing:
Skill-Repo Release Plan (2026-04-18)
| Repo | Current | Target | Change type | Bump PR | Notes |
|-----------------------------|---------|---------|-------------|-----------|------------------------|
| netresearch/git-workflow | 1.9.0 | 1.10.0 | minor | mine | adds critical-rules |
| netresearch/github-project | 2.10.0 | 2.11.0 | minor | mine | multi-repo-operations |
| netresearch/skill-repo | 1.18.0 | 1.19.0 | minor | #42 @kim | NEEDS AUTHOR'S GO |
Preconditions (verified per repo):
[✓] default branch CI green
[✓] no pending version-bump PR by another author
[✓] version-parity check passes
[✓] working tree clean
Execution order per repo:
1. Create version-bump PR on release/vX.Y.Z branch
2. Wait for CI green and approval
3. Merge via merge-commit (respects atomic-commit policy)
4. Pull main; run check-version-parity.sh vX.Y.Z
5. Create signed tag vX.Y.Z
6. Push tag
7. Monitor Release workflow to green
8. Halt all further releases if this one fails — produce rollback
Reply "go" to proceed, or name repos to skip.The branch and commit names are not this file's to invent: release/vX.Y.Z and
chore(release): vX.Y.Z are owned by github-release-skill
(commands/release.md, steps 4 and 8). Follow that skill when the two disagree.
A pre-existing bump PR by another author is not covered by the sweep's approval
A sweep will sometimes find a repo whose version-bump PR is already open — opened by a colleague, days earlier, mergeable and green. Merging it is what the release needs, and the manifest row looks exactly like every other row, which is the problem: a single "go" over a 19-row table reads as approval of your work, and the author is never asked.
Give the manifest a Bump PR column naming the author of every pre-existing
PR, mark those rows as needing that author's go-ahead, and get it separately.
Blanket batch approval covers only the PRs the sweep itself opens. (Observed
2026-08-06: ecom-orocommerce-docker-skill !5, authored by a colleague, was
merged inside a 19-repo batch on one blanket approval.)
Building the manifest: fleet-survey gotchas
Prefer a remote-first survey — the GitHub API answers the whole classification without touching a checkout (verified in the 2026-08-03 sweep: 40 repos surveyed, 7 released). Three calls per repo: gh api repos/$O/$R/releases/latest (tag of the latest published release — a 404 means the repo has never released; classify it for a first release instead of skipping), gh api "repos/$O/$R/compare/<tag>...main" (ahead-count, commit subjects and changed files in one response — enough for both the CI-only-delta filter and the bump-type decision; name the default branch explicitly, consistent with the origin/main guidance below), gh api repos/$O/$R/contents/.claude-plugin/plugin.json (prepared-vs-needs-bump). The local-checkout gotchas below then apply only to the repos that actually release.
The GitLab arm needs its own call triple — the response shapes differ. Half
the fleet lives on git.netresearch.de/coding-ai, and a GitHub-shaped jq
filter returns empty against these rather than erroring, so the repo looks
like it has no delta:
P="coding-ai%2F$R"
glab api "projects/$P/releases?per_page=1" # .[0].tag_name; empty ⇒ never released
glab api "projects/$P/repository/compare?from=$tag&to=main" # .commits[].title and .diffs[].new_path
glab api "projects/$P/repository/files/.claude-plugin%2Fplugin.json/raw?ref=main"Note .diffs[].new_path where GitHub has .files[].filename, and
.commits[].title where GitHub has .commits[].commit.message. GitLab's
compare returns no ahead_by, so count .commits[] yourself. Verified in the
2026-08-06 sweep (74 repos surveyed across both hosts, 19 released).
Compute the CI-only-delta filter, do not eyeball it. The rule below ("CI-only deltas are not releases") is only usable if the survey reports it per repo. From the same compare response:
jq '[.files[].filename] | map(select(test("^\\.github/|^\\.gitlab-ci\\.yml$|^renovate\\.json$") | not)) | length'A zero means the release archive would be byte-identical to the last tag — skip the repo and say so in the manifest. In the 2026-08-06 sweep this filter alone removed 13 of 32 repos that had commits since their tag.
A delta that ships nothing is not a release either: SKIP-NOT-SHIPPED.
Commits that touch only inert files change nothing a consumer installs. The
inert list is FR_NOT_SHIPPED_RE in fleet-release-common.sh: README.md,
AGENTS.md, CLAUDE.md, CHANGELOG.md, CONTRIBUTING.md,
CODE_OF_CONDUCT.md, SECURITY*.md, root docs/, tests/ and evals/, the
root scripts/validate-skill.sh (a vendored dev validator nothing runs), and
a skill's evals/, tests/ and README.md. The code comment gives the reason
for each entry. Every other path counts as shipped, so a path nobody listed
releases instead of being skipped. An allow-list of shipped paths failed that
way: styles/ and config/ read via SKILL.md, workflows/, and a root
package.json (npm files, aiAgentSkill) all reach consumers and none of
them was on it. The survey counts, from the same non-CI file list, the files
that are not inert. A row with commits, a non-zero non-CI count and zero
shipped files classifies as SKIP-NOT-SHIPPED, and the manifest names up to
five of its files. The class needs a complete measurement. These rows stay
BUMP, because a wrong skip leaves a change unreleased while a wrong bump
only costs a release:
- a truncated compare file list;
- a missing or failed count;
- a file list that does not reconcile with the non-CI count;
- a row without
renames_counted: true.
That last key means the driver lists a renamed file under its old and its
new path, so moving skills/x/references/a.md to docs/a.md counts as a
shipped change. The GitHub driver sets it. A driver that reads only the new
path (GitLab's .diffs[].new_path) never produces the class. Like
SKIP-CI-ONLY, a 0.x row is still offered as a STABILIZE candidate.
Surveying dozens of local skill-repo checkouts for "commits since last tag" hits these, verified in the 2026-07-16 sweep (16 releases):
Three checkout layouts coexist under the projects dir: bare + worktrees (
repo/.bare), a plain repo at the top level (repo/.git, which is a pointer file when the top level is itself a worktree), and a plain clone one level down (repo/main/.git). Resolve the git dir per repo instead of assuming one shape:G=$([[ -d "$d/.bare" ]] && echo "$d/.bare" \ || git -C "$d" rev-parse --absolute-git-dir 2>/dev/null \ || git -C "$d/main" rev-parse --absolute-git-dir 2>/dev/null)rev-parse --absolute-git-dirhandles both plain repos and worktree pointer files; it cannot discover$d/.bare(a worktree parent dir is not a repo, and upward discovery never looks into.bare), and it must not run first from$dwhen only$d/mainis the repo — hence the explicit order.git fetch --tagsfails wholesale on one stale tag (would clobber existing tag), taking the branch fetch down with it. Survey with a branches-only refspec plusgit ls-remote --tags originand the peeled (^{}) SHA for the ahead-count; never resolve the tag locally.Duplicate checkouts happen (two dirs, same
origin). Dedupe the manifest by remote URL, not by directory name, or the same repo gets two bump PRs.A per-repo
exitinside a{ … } > logblock kills the whole driver. A brace group is not a subshell, so the first failing repo silently cancels every repo after it — the batch "completes" with fewer log files than repos and nothing says so. Wrap each repo's body in( … ) > loginstead, and compare log count against repo count before trusting the summary. (2026-08-13: a three-repo driver died on repo two; repo three was skipped, revealed only by its missing log.)Emit survey rows with
jq -nc, notjq -n. Barejq -n >> filepretty-prints, sowc -lcounts JSON lines, not rows — a 74-repo survey reported "1400 rows". Downstreamjq -c .still parses the concatenated stream, but every row-count sanity check lies until the file is one-object-per-line.jq's
//treats the empty string as present. Fields captured as""(not null) sail straight through.last_release // .last_tag, so the coalesce prints nothing instead of falling back. When the producer writes empty strings, select explicitly:if .last_release != "" then .last_release else .last_tag end.A renamed repo answers on both names — the API redirect turns one repo into two survey rows.
gh api repos/$O/<old-name>follows the rename redirect and returns the new repo's data wholesale, so a fleet list that still carries the old name surveys the same repo twice, and the sweep would open two bump PRs against one repo. Dedupe survey rows by the response's.full_name, never by the name you queried (2026-08-13:agents-skillsurveyed as a live repo with the exact ahead-count and version ofagent-rules-skill— it is a redirect to it).The fleet is read from the repos, not from a list. A survey without
--repos/--repos-fileasks the host for every non-fork, non-archived repo of the org and keeps those whose default branch carries.claude-plugin/plugin.json, the file classification, plan and parity read the version from; a repo with only a rootplugin.jsonis named on stderr and left out.fleet-release-github.sh reposprints the set. A hand-kept list (fleet-repos-github.txt, and its GitLab twin) drifted from the org four times between 2026-08 and 2026-11 —formal-model-checking-skillwas missing until #449, twelve coding-ai repos until 2026-11-18 — and a repo it left out was never surveyed. Also left out: GitHub copies of repos released on another forge (homepage or description matchingFR_MIRROR_RE, by default agit.netresearch.de/URL; the privatecoding-ai-*mirrors), the repos named infleet-exclude-github.txt, each with its reason, and archived repos: one whose deprecation notice is still unreleased is surveyed by name with--repos, and unarchiving it is its own approved step. A full survey replaces the previoussurvey.jsonl, so a repo excluded since cannot reach the plan. A read that fails during discovery stops the survey; a shorter fleet must never look complete.CI-only deltas are not releases. If every unreleased commit touches only
.github/**,.gitlab-ci.yml, orrenovate.json, the release archives would be byte-identical to the last tag — skip the repo and say so in the manifest.A bump PR with an unresolved bot review thread never auto-merges, and
finishwaits it out. Thebumpphase arms auto-merge, so the natural reading of an open PR is "CI still running". Acopilot_code_review(or CodeRabbit) thread on the rolled CHANGELOG blocks the merge with every check green and nothing red anywhere:mergeStateStatussaysBLOCKED, the checks summary says all pass, and the merge gate infinishthen polls until its timeout. Query--state allwhen you sweep: the same auto-merge arming means a PR can already beMERGEDby the time you look, and an open-only list then returns nothing for that repo — which reads exactly like a bump that never opened a PR (2026-09-12:agent-harness-skillhad merged and released while the sweep reported it as having no PR). Sweep the PRs thebumpphase opened before runningfinish, and resolve what it finds:gh api graphql --paginate -f o="$O" -f r="$R" -F n="$N" -f query=' query($o:String!,$r:String!,$n:Int!,$endCursor:String){repository(owner:$o,name:$r){ pullRequest(number:$n){reviewThreads(first:100,after:$endCursor){ nodes{id isResolved} pageInfo{hasNextPage endCursor}}}}}' \ | jq -s '[.[].data.repository.pullRequest.reviewThreads.nodes[]|select(.isResolved==false)]|length'Paginate it, and do not lower the page size. A fixed
first: 20returns the first page and says nothing about the rest, so a PR with more threads reports zero unresolved and sails through the gate this check exists to close — the false-negative twin of the implausible-rate rule, in the one place where a wrong zero is indistinguishable from a clean PR.--paginateneeds the$endCursorvariable and thepageInfoblock above, andjq -sto slurp the pages it emits.In the 2026-09-03 sweep this hit 3 of 4 PRs in one batch — all three findings were real defects in the generated changelog, which is exactly the text nobody proofreads. Budget a review round for the roll's output rather than treating a bump PR as mechanical.
A
FAIL <repo>: merge gatewith a CONFLICTING bump PR is usually a parallel release, not a conflict to resolve. A sweep surveys once and acts minutes later, and another session on the same account can release one of the surveyed repos inside that window. The sweep's own bump PR then sits on a movedmainwith a conflict inplugin.json, every check green,mergeable=CONFLICTING mergeState=DIRTY— which reads as "rebase it". Rebasing is wrong whenever the parallel release is higher: readorigin/main'splugin.jsonversion and the latest release first, and check whether that release's compare range already covers the commits the sweep's version targeted. When it does, the sweep's PR is redundant and a rebase would move the version backwards; close it, naming the superseding release and PR, and delete the branch. (2026-09-20:skill-repo-skillwas released as v2.2.0 from #335 at 10:49 while a sweep held a v2.1.6 bump PR (#336) open; v2.2.0 covered both commits v2.1.6 existed for.) The merge gate names the conflict (PR #N has a merge conflict (mergeable=CONFLICTING mergeState=DIRTY) — PR left open) but cannot tell a parallel release from a real conflict, so the operator makes the call.Dependency commits landing after a tag are not a second release; commits under
skills/**are. The same window produces both. A post-tag delta touching only.pre-commit-config.yamlorrenovate.jsonships nothing, because the release archive's allow-list does not carry those files. One that touches a skill'sSKILL.md,references/orscripts/does, and a sweep that measured once will not see it: re-check the repos it released before reporting the fleet clean. (2026-09-20: of six GitHub repos with commits after their new tag, five were pre-commit bumps and one —git-workflow-skill— had tworeferences/advanced-git.mdcommits, released as v1.34.1.)Archived repos are release-infeasible (pushes rejected). A deprecated repo whose deprecation-banner commit landed after the last tag has never shipped its own deprecation notice — flag it for an unarchive decision instead of silently skipping.
The unarchive → final release → re-archive path (walked 2026-08-13 for claude-coach-plugin v2.6.0 and typo3-frontend-patterns-skill v1.2.1) has its own traps. A sweep that was blocked by the archive may have left a prepared, signed local bump branch — verify its signature and content, then push and reuse it rather than recreating. Expect the frozen repo to fail reusables that evolved while it slept, and fix proportionately: measure ruff with the fleet config (
select = ["E","F","W"],line-length = 120) before concluding code work exists — 439 default-rule findings were zero under it, so the fix was oneruff.toml, not a rewrite.ruff formatalso rewrites```pythonblocks inside.mdfiles, and a config change invalidates every earlier--checkmeasurement — re-measure after the config lands, and AST-verify the formatted files before claiming the change is behavior-free. A red Template Drift paired with a Securitystartup_failureusually shares one cause: the frozensecurity.ymlstill passes the org-removedGITLEAKS_LICENSEsecret — syncingtemplates/skill/.github/workflows/security.ymlfromnetresearch/.githubfixes both at once. Re-archive only after the Release object and its assets are verified.Cleaning up after the sweep is not an ancestry question. The branches a sweep leaves behind get classified by whether their work is safe to drop, and
git merge-base --is-ancestor <branch> origin/maindoes not answer that: a squash-merged PR puts the content onmainunder one new commit, so the branch SHAs are absent and shipped work reads as "unmerged". Use the PR/MR state, withgit cherryas the offline fallback —git-workflow-skill→references/advanced-git.md("Is This Branch Safe to Delete?") owns the rule and the commands. Applies to the report as much as the deletion: in the 2026-08-06 sweep this misclassification turned 2 genuinely unsaved commits into 18 alarming-looking branches.Read the version state from
origin/main, never the local worktree. Worktrees drift — some sit behind the remote, some ahead, some are dirty — socat repo/.claude-plugin/plugin.jsongives a misleading parity picture. Read the authoritative value withgit show origin/main:.claude-plugin/plugin.jsonafter fetching.git showtakes a single literal path and does not glob, so enumerate the SKILL.md files first, then read each:for f in $(git ls-tree -r --name-only origin/main | grep -E 'skills/[^/]+/SKILL\.md$'); do git show "origin/main:$f" doneVerified in the 2026-07-18 sweep (23 releases), where worktree reads disagreed with
origin/mainon ~6 repos.Survey for a
composer.jsonversionfield before the sweep, not at bump time.bump-version.shandcheck-version-parity.shboth refuse while it is present, so a repo carrying one fails mid-bump with a half-written tree and has to be re-run after the field is removed. Four GitLab repos hit this on 2026-08-08, and three of the four were already behind their own latest tag (dxp-project-initdeclared0.1.0against tagv0.2.6) — which is precisely the drift the no-version rule exists to prevent, so removing it is the fix, not a workaround. One extra call per repo during the survey turns a mid-sweep failure into a manifest row:glab api "projects/coding-ai%2F$R/repository/files/composer.json/raw?ref=main" | jq -e 'has("version")'A QUEUED GitHub check reports
conclusion: "", notnull— so the obvious red-check filter calls it a failure. The natural gate,select(.conclusion != null and .conclusion != "SUCCESS" …), lets the empty string through and the sweep aborts on checks that were merely still starting. Gate on completion first and only then on the verdict:gh pr view "$BRANCH" --repo "$O/$R" --json mergeStateStatus,statusCheckRollup --jq '{ p: [.statusCheckRollup[] | select((.__typename=="CheckRun" and .status!="COMPLETED") or (.__typename=="StatusContext" and .state=="PENDING")) | .name], f: [.statusCheckRollup[] | select(.__typename=="CheckRun" and .status=="COMPLETED" and (.conclusion|IN("SUCCESS","SKIPPED","NEUTRAL")|not)) | .name]}'Wait while
pis non-empty; fail only onf. The two shapes in the rollup need different fields —CheckRunhas.status/.conclusion,StatusContexthas.state— and a filter written for one silently mis-reads the other. Note also thatgh pr checks --watchonly blocks while it can run: if its output redirect fails (a missing log directory), the command dies instantly and the very next query reads a still-pending rollup. Observed 2026-08-08.plugin.jsonahead of the last tag ⇒ the bump already merged — tag only, no bump PR. Classify each repo from theorigin/mainvalue:plugin.json.version > last tagmeans a prior bump PR already landed and the repo just needs a signed tag;plugin.json.version == last tagmeans it needs a bump PR first. Tagging a "prepared" repo at its committed version keeps parity true by construction. Don't open a bump PR for a repo that is already prepared — it would double-bump.A never-released repo can be prepared too — plan it at its committed version, do not invent one.
FIRST-RELEASE(no release and no tag) usually already carries the version someone meant to ship in.claude-plugin/plugin.json, so the plan row names exactly that and the bump phase reports "nothing to bump; finish will tag". The monotonicity check therefore acceptsversion >= plugin.jsonfor this class and only refuses a version below it, where parity would fail at tag time — unlikeBUMP, which still requires strictly greater, because there a released version exists to regress from. Until v1.35.0 equality was refused for every class, which left a prepared first release unrepresentable: the operator had to retype the rowTAG-ONLYor invent a version nobody wrote (bothecom-*repos in the 2026-08-17 sweep).Splicing re-surveyed rows into an existing plan drops
versionandbody. After a partial re-survey (e.g. the freshness gate tripped on renovate merges), the regeneratedplan.skeleton.jsonlrows carry emptyversion/bodyfor TAG-ONLY rows the operator had already filled. Merge the freshhead/classificationinto the OLD plan rows, keeping theirversionandbody— replacing rows wholesale ships a release with no notes source (2026-08-27: markdown-to-pdf briefly published "First release" as its v1.4.2 notes this way).git pull origin mainmerges into whatever branch the worktree has checked out. A fleet sweep hits worktrees parked on a leftover feature branch, and--ff-onlydoes not protect you — the stale branch fast-forwards ontoorigin/main"successfully" (observed 2026-08-03: a leftoverci/*branch silently advanced to the main tip).Do not check out at all — tag
origin/maindirectly. Fetching, verifying and tagging need no working tree, which removes the hazard instead of stepping around it, and it is the only form that leaves a colleague's parked worktree untouched (in the 2026-08-06 sweep,skill-repo-skill's only checkout sat on a leftoverrelease/v1.25.2the whole time;git switch mainthere would have moved someone's workspace out from under them):git -C "$G" fetch origin --prune --quiet remote_tip=$(gh api "repos/$O/$R/commits/main" --jq .sha) [[ "$(git -C "$G" rev-parse origin/main)" == "$remote_tip" ]] || exit 1 # parity read from the ref, never from a working tree git -C "$G" show "origin/main:.claude-plugin/plugin.json" | jq -r .version git -C "$G" tag -s "v$V" -m "v$V" "$remote_tip" git -C "$G" push origin "v$V"git tagtakes any commit-ish, and it does not touch the index or the working tree — so this is safe even in a plain (non-bare) checkout that is mid-edit. Keep switch-then-pull only for the repos where you genuinely need files on disk.
Lifting 0.x repos to 1.0.0: the STABILIZE class
A "bring everything to at least 1.0" sweep needs releases that have no new
content of their own. The classification cannot produce them — a quiet 0.x repo
is UP-TO-DATE, SKIP-CI-ONLY or SKIP-NOT-SHIPPED and gets no plan row — and
the rollover refuses an empty [Unreleased]. The 2026-09-23 sweep lifted 20
repos to 1.0.0 by
retyping plan rows in a session-local script and by opening a CHANGELOG PR per
repo first, which is the hand-written driver this page warns against. The class
now does it:
- manifest notes
0.x: stabilization candidateon every 0.x row that isBUMP,UP-TO-DATE,SKIP-CI-ONLYorSKIP-NOT-SHIPPED, and writes a ready row (classification: STABILIZE,version: 1.0.0) toplan.stabilize.jsonl. Stabilizing is opt-in: the rows are not in the skeleton. Copy the ones you want intoplan.jsonl, replacing the repo's skeleton row if it has one — the duplicate-row guard refuses both. - plan validation accepts
STABILIZEonly for a 0.xlastand a target of 1.0.0 or above; any other pair would ship the promise on a release that is not the first stable one. - bump passes
--seed-entrytoroll-changelog.py, which puts the promise as a### Changedbullet into[Unreleased]— creating the heading when the file has none, joining an existing### Changed, never twice — and then rolls as usual. In a file whose bullets continue on indented lines the promise is wrapped at that file's widest line, because one 235-column line failed the MD013 limit of 120 thatecom-phpstorm-index-skillenforces and held its 1.0.0 bump MR red (2026-11-04); a file of one-line bullets keeps it on one line. A row with an emptybodygets the same sentence as its PR body. The sentence isFR_STABILIZE_ENTRY; override it in the environment for a fleet whose promise reads differently. - finish tags and verifies like any other bump.
A repo without a CHANGELOG.md carries the promise only in the bump PR body:
GitHub's generated release notes list PR titles, not bodies. The rest of what a
first stable release owes — every shipped test suite invoked by CI, dependency
ranges that still allow a sibling's 0.x — is github-release-skill's
release-process.md, "The 0.x → 1.0 Release"; a suite that no CI runs goes into
that repo's body as a sentence.
GitLab (git.netresearch.de) skill repos release on tag too
The release-discipline above is GitHub-centric, but the coding-ai GitLab skill repos ship the same way: a pushed signed tag triggers a pipeline that creates the GitLab Release via the claude-code-skill CI component (include: in .gitlab-ci.yml). There is no separate release workflow file and no manual glab release create — pushing vX.Y.Z is sufficient; the Release object appears when the tag pipeline goes green. Confirm with glab api "projects/coding-ai%2F<repo>/releases/v<ver>" (and the tag pipeline via pipelines?ref=v<ver>). Same bump-PR-then-tag order as GitHub applies; merge the bump MR only when detailed_merge_status == "mergeable".
This holds only for repos whose release job is gated on the tag you actually push — see A pushed tag is not a release below, which is where the exceptions live.
A pushed tag is not a release — check the pattern the release job matches
The sentence above ("pushing vX.Y.Z is sufficient") holds only while the tag
you push matches the pattern that repo's release job is gated on. When it does
not, the push succeeds, the pipeline may even go green, and no Release object is
ever created. Nothing fails; the release is simply missing. Three variants, all
found in the 2026-08-08 sweep:
| Repo | Tag pushed | Release rule | Result |
|---|---|---|---|
dxp-project-maintenance |
0.5.4 (bare) |
component: ^v\d+\.\d+\.\d+$ |
job never ran; releases hand-made for months |
oro-bundle-upgrade-skill |
v1.1.0 |
no tag rule at all — CI runs only on MRs and the default branch | job does not exist; releases hand-made |
tender-estimation |
tender-estimation--v0.6.1 |
^tender-estimation--v\d+\.\d+\.\d+$ |
correct — a deliberate non-standard convention |
So the check is not "does the repo use vX.Y.Z" but "does its release job's
rule match the tag its maintainers actually cut?" The third row is the reason:
that prefix is deliberate, documented in the file as matching the
claude plugin tag CLI, and its release job fires on it. Normalising it to
vX.Y.Z would have broken a working release path.
Before tagging a repo you have not released before, read the whole
.gitlab-ci.yml / release workflow and compare the rule against the last tag:
glab api "projects/coding-ai%2F$R/repository/tags?per_page=1" | jq -r '.[0].name'
glab api "projects/coding-ai%2F$R/repository/files/.gitlab-ci.yml/raw?ref=main" | grep -n 'CI_COMMIT_TAG'Read the whole file, not its head. A release job commonly sits at the bottom, after the lint and validate jobs; concluding "this repo has no release job" from the first screenful is wrong, and in this sweep that mistake was made and acted on — it produced a plan to "fix" CI that was already correct.
After every tag push, verify the Release object exists rather than assuming the tag implied it. If it is missing, the tag pipeline's job list says why — a rule that did not match shows up as the release job being absent from an otherwise green pipeline, not as a failure:
glab api "projects/coding-ai%2F$R/pipelines?ref=$TAG" | jq -r '.[0].id'
glab api "projects/coding-ai%2F$R/pipelines/<id>/jobs" | jq -r '.[]|"\(.stage)/\(.name): \(.status)"'The same trap exists on the GitHub side one level in: node-agent-skill-coordinator's
release workflow ran, but died on Script not found "build" because the caller
never set build-cmd and the shared reusable defaults to bun run build. A
caller that adopts a reusable and then does not cut a release has not tested it —
the first tag after the adoption is the test.
Release notes: the generated body is the default — do not curate it away
Operator decision, 2026-08-27 (netresearch/skill-repo-skill#257, twice re-scoped
and closed): GitHub's generate_release_notes body is the only release-notes
mechanism with no maintenance debt — it has no requirements and just counts the
merged PRs — so it stays the default, including its by @<login> author
credits (they do not hurt; the no-bot-credit rule applies to manually
written notes, where agent/bot credit must not be added). Do not rewrite
generated bodies, do not strip credits, do not make releases depend on a
CHANGELOG the repo does not maintain — in the 2026-08-27 sweep most repos had
no CHANGELOG.md and five with one had an empty [Unreleased] at bump time.
The generated list names PR authors only, never the people who reported the issues those PRs fixed. Add each reporter at the PR that fixed the issue, as a suffix on its bullet, and change nothing else:
* fix: … by @author in https://github.com/netresearch/x-skill/pull/12 — reported by @reporter in #11An issue in another repository takes the full reference
(reported by @1Laurman in netresearch/retro-skill#201). github-release's
release-notes-status.sh accepts such a body as kept and reports a reporter
that harvest-contributors.sh finds but the body does not name.
Curate a body only where it is otherwise a dead pointer: the GitLab
claude-code-skill component writes a fixed "see CHANGELOG.md for details."
description, which the GitLab fleet driver's finish replaces with the tag's
CHANGELOG section or the plan row's body (gitlab-skill !88).
A release job that dies on a transient network error (observed: cosign's
Post https://fulcio.sigstore.dev/…: connection reset by peer) does not
invalidate the tag — gh run rerun <run-id> --failed and re-verify the
Release; never delete and re-push the tag for this.
Immutable-Release Caveat
Deleted GitHub releases do NOT free the tag for reuse. Once a release is published and deleted, that tag string is permanently locked as a deleted release — a new release with the same tag will fail. See git-workflow-skill → references/github-releases.md. Therefore: get it right the first time. The version-parity check above is what "right the first time" means in practice.
Tag Signing (Mandatory)
git tag -s vX.Y.Z -m "vX.Y.Z" # -s: sign with GPG/SSH
git push origin vX.Y.Z # signed tag reaches the remoteNever git tag vX.Y.Z (unsigned). Repos with protected tag rulesets will reject unsigned tags.
No --latest Drift for Non-Default Branches
When releasing from a non-default branch (e.g. a v1.x maintenance line while v2.x is default), pass --latest=false to avoid stealing the "Latest" badge by timestamp:
gh release create v1.5.12 --latest=false --title "v1.5.12" --notes-file CHANGELOG-v1.5.12.mdGitHub marks releases "Latest" by creation timestamp, not semver. A v1.5.12 created after v2.0.0 will become "Latest" without this flag — wrong, misleading, and often noticed only by downstream consumers.
What a release archive contains
copy_skill() in .github/workflows/release.yml packages a fixed allow-list per skill — SKILL.md, references, scripts, checker, assets, templates, examples, plus checkpoints.yaml — and then copies the two root licence files into each skill directory:
cp LICENSE-MIT LICENSE-CC-BY-SA-4.0 "$dst/"Two consequences worth knowing before touching files under skills/<name>/:
- A file outside that list never ships. A per-skill
README.md, a stray note, aLICENSEof its own — none of it reaches an archive, so removing one cannot change what consumers get. Answer "does deleting this break the release?" from the allow-list, not from intuition. - Per-skill licence files are redundant by construction. Every packaged skill already carries
LICENSE-MITandLICENSE-CC-BY-SA-4.0because the workflow puts them there. Askills/<name>/LICENSEadds nothing and rots silently: three such symlinks innetresearch/matrix-skillpointed at a rootLICENSEthat the split-licensing migration had deleted, and they stayed dangling for six months until a marketplace import named them.
Adding a new packageable file type means extending the for item in … list in the reusable workflow — a repo cannot opt in from its own side. The step refuses to build when a skill's SKILL.md names a relative path that exists in the skill directory but is missing from the staged copy (check_references()), so a new directory the skill tells the agent to use fails the release with ::error instead of shipping without it. References into evals/ and tests/ are exempt: those directories stay out of every archive on purpose. (typo3-site-conformance-skill's archives carried no checker/ although its SKILL.md runs checker/check.py, skill-repo-skill#368.)
Supply-Chain Attestation
Every release ships with provenance-attested archives and a Cosign-signed SHA256SUMS.txt that binds those archives by digest. Only the checksum file is Cosign-signed; the .zip/.tar.gz archives are integrity-protected through it — verifying the signature on SHA256SUMS.txt and then running sha256sum --check against the downloaded archive proves the archive was produced by this workflow.
All of this happens in the SAME job that publishes the GitHub Release, BEFORE the assets are made public — there is no window where unsigned or unattested artifacts are downloadable. The flow, in order:
- Build
*.zipand*.tar.gzarchives. - Generate
SHA256SUMS.txtover them. - Cosign keyless
sign-blobtheSHA256SUMS.txt→ producesSHA256SUMS.txt.sigstore.json(Sigstore bundle format: cert + signature + Rekor inclusion proof in a single self-contained JSON; cosign v3+ default). The.sigstore.jsonextension is chosen so OSSF Scorecard'ssigned-releasesprobe recognises the signature — the content is identical to cosign's--bundledefault output. actions/attest-build-provenancegenerates a SLSA build-provenance attestation for the archives + checksums file → published to GitHub's attestation API.softprops/action-gh-releasepublishes the GitHub Release with all assets attached at once.
Callers must grant three permissions on the calling job:
# .github/workflows/release.yml in the consuming repo
jobs:
release:
uses: netresearch/skill-repo-skill/.github/workflows/release.yml@main
permissions:
contents: write # release upload
id-token: write # OIDC for sigstore (Cosign + attest-build-provenance)
attestations: write # GitHub native attestation APIIf any of those scopes is missing the job fails fast with Resource not accessible by integration; contents: write alone is not enough.
What a release archive contains
Every archive unpacks into ONE top-level folder named after the artefact:
<skill>/SKILL.md, <plugin>/.claude-plugin/. That is not cosmetic. The OpenAI
skills API accepts "a .zip that contains a single top-level folder", so a flat
archive is rejected with a bare Invalid skill and no reason
(netresearch/german-technical-writing-skill#2), and every repo's README tells
readers to "extract to your agent's skills directory" — a flat archive unpacks
SKILL.md and references/ straight into ~/.claude/skills/, on top of
whatever else is there. tests/release-archive-layout.sh runs the packaging
step out of the workflow against a fixture repository and asserts the property,
so it cannot regress silently.
Verify a downloaded release archive
Both commands below pin verification to the specific repository that's expected to have produced the release. --owner netresearch and https://github.com/netresearch/.* are tempting shortcuts but match every workflow run in the org — meaning a compromised or unrelated netresearch repo could mint a valid-looking attestation against an artefact that was never released from this repo. Always pin to the named repo.
# SLSA build provenance (GitHub-native attestation API)
# Substitute <repo-name> with the actual skill repo, e.g. matrix-skill.
# Archive name patterns: <skill>-skill-vX.Y.Z.zip and <plugin>-plugin-vX.Y.Z.zip.
# --signer-workflow is required: the attestation is signed by the shared
# reusable workflow, and --repo alone checks the signer against the consumer.
gh attestation verify <skill-name>-skill-vX.Y.Z.zip --repo netresearch/<repo-name> \
--signer-workflow netresearch/skill-repo-skill/.github/workflows/release.yml
echo "rc=$?" # success prints nothing when stdout is not a terminal
# Cosign sign-blob signature on the checksums (no GitHub API needed).
# The cert SAN reflects the SIGNER, which is the shared reusable release
# workflow (`netresearch/skill-repo-skill`), NOT the consuming repo. Pin the
# regex to skill-repo-skill, not the consumer, for the same reason
# `gh attestation verify` above needs `--signer-workflow`. The org-wide form
# `https://github.com/netresearch/.*` would accept signatures from any repo,
# branch, or workflow in the org — too loose for supply-chain verification.
cosign verify-blob \
--bundle SHA256SUMS.txt.sigstore.json \
--certificate-identity-regexp "^https://github\.com/netresearch/skill-repo-skill/\.github/workflows/release\.yml@" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
SHA256SUMS.txt
# Then verify the archive matches the (now-signed) checksum
sha256sum --check SHA256SUMS.txtIf verification fails:
gh attestation verifyreturnsError: verifying with issuer "sigstore.dev"when--signer-workflowis missing:--repothen also constrains the signer, and the signer isskill-repo-skill, not the consumer. Measured with gh 2.101.0 on github-release-skill v1.1.0 and v1.2.0; both pass with the flag, and a random file then fails with HTTP 404.gh attestation verifyreturnserror: no attestations foundwhen--repois wrong (or when the release predates this workflow).cosign verify-blobreturnserror: certificate identity does not matchwhen the regex is wrong, orbundle verification failedwhen.sigstore.jsondoesn't correspond to the file.
Why one atomic job
Splitting attestation into a separate needs: release job (the original design here) creates a race: the GitHub Release publishes BEFORE the attestation exists, so anyone downloading in that window gets unsigned, un-attested artifacts. Folding everything into the same job before the upload eliminates the window — either the whole bundle (archives + signature + provenance) ships, or nothing does.
Same pattern as netresearch/.github/.github/workflows/golib-create-release.yml and netresearch/typo3-ci-workflows/.github/workflows/release.yml. No reason for skill repos to diverge.
The previously-documented with: attest: true opt-in is gone; the input is still declared as DEPRECATED — ignored so any caller that still passes it doesn't error syntactically, but every release now gets provenance unconditionally. Drop the with: block if attest was its only entry (also true for bump).