re0-release
Walk a pending change in the repository it runs in through that repository's release procedure end to end, then tag and publish once confirmed. User-invoked: run it when you've decided to ship.
Install
npx skills add https://github.com/LilMGenius/paperthin/tree/main/skills/depth/re0-release
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install lilmgenius-paperthin@llmmart
git clone https://github.com/LilMGenius/paperthin.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole lilmgenius/paperthin collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Ship a release of the repository this runs in, from gathering what it carries to the published tag.
Goal
A release lands complete and trustworthy: its procedure met, every manifest bumped by kind, notes as the signed tag's message in the repository's documented format or else the house style, and an artifact its workflow publishes. re0-release calls sip when installed, writes messages to the standard step 5 states, and never calls another user-invoked skill. Each step that commits or writes in public waits for its own approval (Rules). What the text marks "in paperthin", the notes' skill catalog, and the .agents/install-block.md and .re0/iteration/ conventions are this suite's own: the step that names one says what serves in a repository without it, else that part is skipped.
It is user-invoked: shipping is a deliberate human action, so only the human runs it.
Workflow
Gather the release.
- Read the owner, repository and default branch with
gh repo view --json nameWithOwner,defaultBranchRef, else the default branch withgit symbolic-ref --short refs/remotes/origin/HEAD(itsorigin/dropped), else ask; then that branch's rulesets (gh api repos/<owner>/<repo>/rules/branches/<default>) and classic protection (gh api repos/<owner>/<repo>/branches/<default>/protection, a 404 meaning none). A rule read there that requires a pull request or reviews sets the pull-request path, and so does a procedure (below) that requires one; anything else, rules that cannot be read (a 403, an origin that is not GitHub or is afile://path, nogh) included, sets the direct path. - The release branch carries the unreleased changes, and is checked out, up to date with its remote where it has one. On the direct path it is the default branch. On the pull-request path it is the branch checked out when that is not the default branch, with its open pull request where it has one (
gh pr view --json number,headRefName,baseRefName). From the default branch it is the head of the one open pull request against it (gh pr list --base <default> --state open --json number,headRefName,title), checked out before drafting and named in step 8. With several, or with none while a localrelease/v*branch holds commits the default branch lacks (git for-each-ref --format='%(refname:short)' 'refs/heads/release/v*', each read withgit log --oneline origin/<default>..<branch>), ask which carries the release before drafting anything; with none and no such branch, the default branch itself carries it. - The release branch contains the default branch before anything is drafted: after
git fetch origin, wheregit merge-base --is-ancestor origin/<default> HEADfails, rebase it onto it, signed (git rebase -S origin/<default>), since a merge commit cannot land on a linear history. A contribution landed on the default branch since the branch forked is then in the range, the notes and the credits. - The release is every change on the release branch since the last release tag (
git describe --tags --abbrev=0 --match 'v*', thengit log <tag>..HEADandgit diff <tag>), from the first commit where there is no tag, plus the pending diff. The bump, the notes, the credits and the release commit's message are drafted from that range. A commit whose subject names no pull request is matched to the one it landed through withgh api repos/<owner>/<repo>/commits/<sha>/pulls, which gives the credits their number and handle. - The range ships whole, as one release: in house-style notes, its new capabilities go under
### Newand its fixes under### Also(step 6). Releases split only by when the human runs this skill, never by dividing a range: a big change of theme, a new capability a reader would tell apart from the last, may ship as its own release once it is done rather than wait for one large release, and work that runs long is released at a natural break, from what has landed by then. - The procedure is the repository's own, in the first of these it keeps, with the release documents that one links to: a release document at its root (a
RELEASING.md, say), the release sections of its rootAGENTS.md(Shipping and Releasing, in paperthin), itsCONTRIBUTING.md. With none, step 8 says the repository documents no procedure, and the run goes on by this skill alone. A release document the procedure links to that does not exist, or a section named here that is gone while no document earlier in this order holds it (in paperthin, anAGENTS.mdmissing its Shipping or its Releasing section), means the procedure moved, not that there is none: that is a gap, so the run stops, reports the name and where it looked, and goes on only from the procedure the human then points to, never from one it guessed. Check each requirement it states on the release's state (a roster, a manifest, a translation); an unmet one is a gap, reported and repaired only once the human authorizes the repair, never set aside. An action it describes is done by the step below that does it, in the repository's wording where the two differ, and step 8 shows the difference. An action it leaves to a named person or role (the maintainer signs the tag, a release manager publishes) is the human's: at the step that would do it, the run gives the human the exact commands, waits, and goes on only from the result it then observes (for a tag,git tag -vpassing on the fetched tag, its commands given once the commit has landed, as step 9 says). A file named below that the repository lacks is skipped. - Where the release changes what the package says it is (its description, a skill or command added or retired), call the Skill tool with "labelchk" when it is installed, once for the package's keywords and once for the repository's topics, each judging the package as the release ships it. Each keyword or topic change it recommends joins step 8 as a finding, and one the human approves goes into the keywords of every manifest that carries them (when none does, the first manifest the repository has that takes them), the set the repository's topics are projected from, so the page and the manifests never disagree; a repository with no such manifest takes an approved topic by the command labelchk's report names.
- A file in the pending diff that belongs to another change or author is excluded once its recorded owner (its commits, a TODO entry, a coordination note) has been read; step 8 shows the exclusion.
- Read the owner, repository and default branch with
Classify the bump once every open question bearing on what ships is answered (a contract question, a behavior obligation the release would lose); until then, report it and name no version. A lost obligation blocks the release until it is restored or the human rules on it. Classify by kind, never size: a fix of wrong behavior, or a docs-only change, is patch; a new capability a user reaches for, a correct but narrower behavior widened included, is minor, and so is adding or retiring a member of a collection (a skill, a command of a plugin) whose retired name the repository lists with where its job went; a breaking change is major: an existing caller's invocation fails and the package documents no replacement, such as a removed or renamed script command or flag a user calls directly, a changed format of a file a user's files or tools read or write, or a removed install route. State the case; only a minor or major release carries
### New.Taste-test. Call the Skill tool with "sip", this suite's review of what was just made by its own clarity and truth checks, or, on a host with no Skill tool, read
sip'sSKILL.mdand follow it; whensipis not installed, say that no such review ran. Its findings join step 8 unapplied, each with the output that shows it; never claim a review it did not visibly run.Plan the bump and checks. List every manifest that carries the version:
package.jsonwith its lockfile, set through the package manager (npm version X.Y.Z --no-git-tag-version), and plugin manifests such as.claude-plugin/plugin.json, where present. Name the checks: the commands the repository's CI runs, else its documented ones (in paperthin,npm testandnpm run check); with neither, step 8 says so. Both run after step 8's approval.Draft the messages to the commit-message standard: the local log's shape, or, absent one, a subject plus one
-bullet per durable change on a single unwrapped line; supporting edits folded in; nothing the diff or version already proves; no co-author tag except a closingCo-authored-bytrailer crediting a human contributor on a squashed or carried contribution. A pending change and its bump go in one release commit, never split; only when every change in the range is already committed does it carry the bump alone. On the pull-request path every commit in the range lands as it is, so each one meets the standard, and one that does not goes to step 8 for/re0-git, the user-invoked skill that rewrites a finished commit's message; the release commit is the head that lands the pull request, so its subject names the release (in paperthin,chore(release): ship paperthin X.Y.Z with <idea>), the pull request's title is that subject, and where the repository's commit form names the pull request (in paperthin,(#<n>)), the subject ends with it once the pull request has a number, its digits counted within the repository's limit (72 characters in paperthin). Cleanup of an existing commit goes to the human as/re0-git, never called here.Write the release notes to
.re0/release/RELEASE_NOTES.local.md, scratch that becomes the signed tag's message, never committed. Wheregit check-ignore -qfinds that path not ignored, add.re0/to the filegit rev-parse --git-path info/excludenames; where that file cannot be written (the host refuses the edit),.re0/stays untracked, and step 8 says so. Where the procedure documents its own notes format (a changelog section, a tag-message form), the notes follow it, and each rule it states is a (judgment) rule in place of the list below. Otherwise they follow the house style;scripts/notes.mjsdecides each (checked) rule, and you each (judgment) one:- one
##heading with no version number (X.Y.Z) in it (checked), naming the release's durable idea (judgment); - one paragraph on one line after it (checked), short and present-tense, saying what is true now (judgment);
- sections in this order, each at most once:
### New(or### New: <label>),### Also,### The catalog (N skills)((1 skill)for one),### Install(checked); only those the release earns, the catalog only when the roster needs re-mapping (judgment); ### Newholds only new capabilities a user reaches for; a fix or tightening of an existing skill goes under### Also(judgment);### Alsoholds only what New does not say, so a single change is one section plus Install: an Also bullet leading with a New bullet's subject fails (checked), any other repeat is (judgment);- every section but Install holds single-line
-bullets and nothing else (checked); - each New bullet opens with a bold lead (checked): the skill's name (
**`name`**) or a short label (**One command.**), never a whole sentence (judgment); - each catalog bullet names a perspective and its skills, plain (
- `depth/`: `re0`) or bold and described (- **`depth/`** (one artifact): `re0`), listing the N skills the heading counts, each once (checked), which are the real roster (judgment); ### Installis the last section and not empty (checked): where the repository keeps an.agents/install-block.md(paperthin's one source for its install commands), the contents of its release-notes block for the note's version, fence lines left out (checked), else the install commands the repository documents, verbatim (judgment); with neither, step 8 asks the human for the lines;- each external change is credited inline as
(#123, @handle), a run of pull requests as(#123-#125, @handle), each co-author as one more, @handle, and no other#number appears outside code, link targets and URLs (checked); every external change in the range carries its credit (judgment); - every claim, in the paragraph or a bullet, names a change this release made to a skill, a check, a script or a document (its commits since the tag,
git log <tag>..HEAD -- <its path>, and the pending diff), never one an earlier release shipped, and says no more than the text the release ships supports (a skill'sSKILL.mdand scripts, the code a check runs, the changed document, and in paperthin the skill's README Index row); a commit message or a summary of the work may point to that text but never stands in for it (judgment); - skill names and paths in backticks (judgment), no em dash (checked), and nothing the tag or version already proves (judgment).
- one
Check the notes. Notes in the repository's own format get a verdict on each of its rules, and the house-style check never runs on them. House-style notes are checked from anywhere in the repository:
node <this skill's folder>/scripts/notes.mjs .re0/release/RELEASE_NOTES.local.md --version X.Y.Z(in paperthin the folder isskills/depth/re0-release). Exit 0 means every (checked) rule holds; an Install reported as not checked is left to its (judgment) rule. Exit 1 names each failure by line, fixed in the notes, or, for aninstall-blockfailure at line 0, in.agents/install-block.md. Exit 2 means the check could not run, for the reason its message names. Then write a verdict for each (judgment) rule. The verdict on the claims rule takes each claim in turn and quotes, by file and line, the shipped text that makes it true, or for a removal the diff line that deletes it; a claim with no such line fails, and so does one that reaches further than its line, such as an "every", "any" or "each" over cases the line does not cover. The run that wrote the notes is their weakest judge, so once the check and the verdicts pass, call the Skill tool with "sip" on the notes, or followsip'sSKILL.mdas step 3 says; its findings join step 8 unapplied. Only a reported failure, a verdict's fault or a review finding the human approves changes the text, and only in notes this run wrote.First confirmation. Show the whole proposal in one message:
- the release branch and range;
- the procedure's result, any difference from this skill, and each action it leaves to a person;
- the files the commit carries, and any exclusion with the owner it was read against;
sip's run and findings;- the bump with its case, manifests and checks;
- the messages, with the release commit subject's length, its number counted;
- the full notes, Install included where the format has one, with step 7's exit where it ran and each verdict, or a request for the Install lines where step 6 found none, nothing tagged until they are given;
- any exclude line added, or that the exclude file could not be written;
- the landing path, the rule or procedure that set it, and its public writes: pushing the release branch, opening a pull request or retitling the open one with a new body, the number added to the release commit's subject, the fast-forward of the default branch, the tag
vX.Y.Zand its push, and the deletion of the branches it landed once the workflow succeeds (step 13); whereghis missing, how landing or watching falls to the human.
A change to the exclusion or to what the notes rest on means a redraft, shown again. A review covers only what it read: a commit that joins the range after step 3's review ran means the bump, the messages and the notes are drafted again from the new range and step 3's review runs on the new commits, and a note line written after step 7 ran, other than a fix step 7 itself calls for, means step 7's check, verdicts and review run again on the whole notes, both before the redraft is shown. What approval itself writes reruns neither: the release commit with its bump and approved findings, and step 9's number amend. Nothing tracked is written before approval. On approval, apply the bump and approved
sipandlabelchkfindings, run step 4's checks and step 7's check and verdicts (its review already ran), quoting their output, and once both pass commit locally the files the proposal named, staged by path (git add -- <paths>) and signed (git commit -S) as step 9's amend and tag are; a commit that cannot be signed is a stop the human clears (Rules). Read the commit's message back (git log -1 --format=%B): it is the approved text exactly, and a mismatch, an added trailer included, is amended before anything is pushed.Second confirmation, then land and tag. In the same run, ask to land and publish, naming the path and every public write step 8 listed. On approval:
- Direct path: sign and verify the tag on the approved commit first (below), then
git push origin <release branch>. A rejection naming a protection rule deletes that local tag (git tag -d vX.Y.Z) and turns the release to the pull-request path as its own stop: show that path's writes, and ask again. Any other rejection deletes that local tag too and stops. - Pull-request path:
<subject>is the release commit's subject without its number, and<body>a file holding the release commit's bullets. Withoutghor a GitHub origin, the human lands the commit by this path, by the fast-forward of sub-step 6 rather than a merge button, and the run signs and verifies the tag (below) on the head they name before they land it.- Push the release branch, with
--force-with-leasewhere a rebase rewrote what was pushed: under its own name, or asHEAD:refs/heads/release/vX.Y.Zwhen it is the default branch. - Retitle the open pull request step 1 found (
gh pr edit <n> --title "<subject>" --body-file <body>), or open one (gh pr create --base <default> --head <head> --title "<subject>" --body-file <body>). - Where the repository's form names the pull request and the release commit's subject does not yet end with
(#<n>), the check run that opening or retitling started fails on that head by design: amend the message alone to the approved one with(#<n>)added to its subject, both dates kept (in a POSIX shell,GIT_COMMITTER_DATE="$(git log -1 --format=%cd --date=raw)" git commit --amend -S -F <message-file>, its tree and author unchanged), and push it withgit push --force-with-lease origin HEAD:refs/heads/<head>to the ref the pull request's head names. - Before landing, the branch must contain its base (
git merge-base --is-ancestor origin/<default> HEAD). When the base moved, note the fork point (git merge-base HEAD origin/<default>) and return to step 1, whose signed rebase brings the base's new commits into the range: the bump, the notes, the credits and the release commit's message are drafted again from it, and step 8 shows the redraft and, on approval, amends the release commit to it instead of adding one. A conflict that rebase stops on, resolved by hand by the run or the human, is read against what the base gained after the fork point, since every check passes on a file that quietly lost a line: note each file it touched (git diff --name-only --diff-filter=U) beforegit rebase --continue, and once the rebase completes, list the lines the base added to each (git diff <fork point> origin/<default> -- <file>) and find each, verbatim or reworded, in the rebased file, restoring any that is gone in a signed commit of the release that says what it restores, unless a commit of the release says it replaces that line. - Wait with
gh pr checks <n> --watch --required; a non-zero exit stops the run, naming the failing check; nothing lands past it, admin bypass included. - Sign and verify the tag on the checked head (below), then land with
git push origin HEAD:refs/heads/<default>, a fast-forward to that head; fetch, and confirmorigin/<default>is the release branch's head andgh pr view <n> --json statereadsMERGED. A rejected push deletes that local tag and stops the run; a difference stops it. The landing authority is the human's approval at this step, which names the update of the default branch; a review approval on the pull request alone leaves the release on its branch.
- Push the release branch, with
- The tag goes on the commit that carries the release (the approved commit on the direct path; on the pull-request path, the checked head, its number amended in):
git tag -s vX.Y.Z <commit> -F .re0/release/RELEASE_NOTES.local.md --cleanup=verbatim, verified withgit tag -v vX.Y.Zbefore that commit is pushed to the default branch, so the default branch never moves before its tag verifies. Once the commit has landed,git push origin vX.Y.Z; report the path that ran. Where the procedure leaves the tag to a person (step 1), the run lands the commit first and then gives the human these commands, from signing to the push, so that tag follows the procedure's order instead.
- Direct path: sign and verify the tag on the approved commit first (below), then
Watch the workflow.
- Find the tag's run with
gh run list --branch vX.Y.Z, retrying for about a minute; follow it withgh run watch <run-id> --exit-status;gh release view vX.Y.Z --json body,isDraftmust show the notes withisDraftfalse. - With no run, read the workflows at the tagged commit. None matching the tag (
on: push: tags) means nothing was published, and publishing is the human's step by the repository's documented route; a matching one that started no run is reported as not started, and the run stops. Observation is unavailable only afterghitself failed, quoting its error. - A failure caused outside the tagged commit is rerun with
gh run rerun <run-id> --failedonce the cause is gone. One caused inside it is reported and the run stops. - Once the run succeeds, read the version from each package registry its workflow file publishes to, as a user's install would (
npm view <name>@<version> versionfor npm, which prints the version once the registry serves it). A registry can hold a version it accepted as still processing for minutes, so a read that answers not found is repeated every minute or so for about ten minutes from the first read; any other error is quoted and ends the reads. A version still not found is reported as not observed, with the time of each read, and is not called published; steps 12 and 13 go on, and step 11 waits for the human. Rerunning a successful workflow publishes nothing new, so none is started for this, and the version is never published by hand (Rules). - After success, compare the Release body with the tag message minus its signature block and trailing whitespace. A mismatch is reported with its cause and fixed, by a rerun or a re-cut, only on the human's approval; steps 11 to 13 go on.
- Re-cut path, for a tag whose signature or message is wrong, at the same version: it adds and moves no commit, and the new tag points at the old one's commit id. A signature re-cut copies the message byte for byte from
git cat-file tag vX.Y.Z(after the header, before the signature block) into a file, re-signs it withgit tag -s -f vX.Y.Z <commit> -F <file> --cleanup=verbatim, and runs no notes check; a message re-cut carries new notes that pass step 7. Confirmgit tag -v vX.Y.Zand, for a signature re-cut, that the message equals the file byte for byte, then push withgit push --force-with-lease=refs/tags/vX.Y.Z:<old tag object> origin vX.Y.Z. A cause in the tagged commit's files, such as a workflow defect, stops the path: its fix needs a new commit, and a new version once anything was published, the human's decision.
- Close out the contributions. After confirmed success, each contribution the release carries gets a credit comment pointing at the release, and a pull request still open is approved where it has no approval and closed with that comment, each on its own approval. A credit or closing the human asks for is never declined as outside the release; it waits for its own approval like the rest.
- Retire the cycle after the workflow succeeded, where the repository keeps paperthin's iteration casebooks: one untracked folder per build cycle,
.re0/iteration/active/<version>-<workname>/, named for the cycle's provisional version and a short name for its work (the workname). Move the release's folder into.re0/iteration/completed/withmv(it is untracked, so notgit mv), unrenamed, matched by workname when its provisional version differs. Where the repository keeps aTODO.local.md, remove the folder's entry there and fix the casebook's relative links. With no folder matching, nothing moves; a repository that keeps its cycles by another convention is left as it is, and the report names its folder for the human. - Delete the landed branches after the workflow succeeded: the release branch and every pull request head the release landed, never the default branch, on the remote (
git push origin --delete <branch>...) and locally (git branch -D <branch>), each only oncegit merge-base --is-ancestor origin/<branch> origin/<default>holds andgh pr view <n> --json statereadsMERGED. Their commits live on the default branch and the host keeps each pull request's head, so a landed branch left behind only hides the open work among finished names. A branch that did not land (closed, carried or failed) is corpus and stays.
Rules
- Never invent a CLI command or flag; verify each against its docs or a real run.
- Landing the commit and pushing the tag are the run's share of publishing; the rest is the release workflow's. Never perform by hand a step the workflow owns, publishing or titling the release page included, even to rescue a failed run: a failed run is rerun and a re-cut tag pushed (step 10), so the workflow publishes.
- Never push a tag before every manifest's version equals it.
- Earlier tags are history, not precedent: a new note follows step 6 whatever the nearest tag did. This run never checks an existing tag's message (
notes.mjs --tag vX.Y.Zserves a human auditing one), and changes it only by a message re-cut (step 10), never by editing the Release body the workflow copies from it. - negatives-as-corpus: retirement moves the iteration folder, never deletes it; if the release fails or is rolled back, the folder stays live.
- The stops, each its own question in the same run: a gap, a choice among several open pull requests, and each action the procedure leaves to a person, wherever it falls (step 1), an open question bearing on the bump (step 2), the proposal and its local commit (step 8), landing and tagging, and again after a rejected direct push or a moved base (step 9), a mismatch fix or a re-cut tag (step 10), and each credit comment or closing (step 11). An approval covers its own stop only, and one the human already gave in their own words counts for what they saw: after "go ahead with publication", publication is not asked again. A comment they ask for is still shown in its exact text before it posts. A check, run or job is reported as passed, and a review as clean, only for the state it ran on and only from output this skill's run observed, quoted. The run ends when the human declines or defers a stop, or at another stop a step names, and reports what remains without offering it.
- A stop the human clears is one whose cause is their own setup or authority: a commit or tag that cannot be signed, a push their credentials fail, a secret only they can add. It quotes the error, says what is committed, pushed, tagged and published so far, and names what the human does to clear it (as commands where there are any) and what to bring back (the output to show, the word to resume on). Such a stop waits rather than ends the run, a push step 9 stops on included, and the run resumes from what it then observes. It never routes around their identity with another key, another token or an unsigned commit.
- Report to the human in the repository's terms: its files, branches, checks and documents by their own names, and this skill's own machinery (its step numbers, rule names, scripts and sibling skills) by what it did ("the notes check passed"). A part for something the repository does not keep (an iteration folder, an install block, a TODO file) goes unmentioned; a gap, a handoff, and a check that applied but did not run are always reported.
Verification
Before finishing, confirm and report:
- Every manifest's version matches the tag, and the landed subject fits the repository's limit.
- Every commit in the range meets the commit-message standard, the release commit's subject is the pull request's title on that path, followed by its number where the repository's form names the pull request, and the notes passed their check:
notes.mjsexited 0 with a verdict on every (judgment) rule, or, in the repository's own format, each of its rules has a verdict. - Every stop in Rules asked its own question, each action the procedure leaves to a person went to the human as commands, each stop the human clears named what they do and what to bring back, and the run went no further than approved.
- Every file left out of the release commit was read against its recorded owner and shown in step 8, and the commit carries only the files step 8 named.
- The landing path rested on the documented procedure, a rule read, a server rejection, or the absence of all three; the tag verified before its commit moved the default branch, unless the procedure leaves the tag to a person; and any landing moved the default branch to the release branch's head.
- The workflow run completed, its Release body matched the tag, and each registry it publishes to served the version, or the report says what was not published or not observed, and any Release body mismatch with its cause.
- Where an iteration folder matched, it moved with its TODO entry and links, and every gap and every check that applied but did not run is reported.
- Once step 13 ran, no branch the release landed, the default branch aside, remains on the remote or locally, and each of its branches left is one that did not land; when step 13 did not run, the report says so.
- Each claim's verdict quotes the shipped line it rests on, and step 3's review and the notes' review read the range as it landed and the notes as they were tagged, apart from what approval itself wrote (the release commit with its bump and approved findings, and step 9's number amend).
- Where a rebase onto a moved base had a conflict resolved by hand, every line the base gained after the fork point in each file the conflict touched is in the landed head, verbatim or reworded, or a commit of the release says it replaces that line.
Files (paperthin)
-
agents
-
openai.yaml 222 B
Loading…
-
-
scripts
-
notes.mjs 16.3 KB · in bundle
-
notes.test.mjs 18 KB · in bundle
-
-
SKILL.md 30.4 KB
--- name: re0-release description: "Walk a pending change in the repository it runs in through that repository's release procedure end to end, then tag and publish once confirmed. User-invoked: run it when you've decided to ship." disable-model-invocation: true --- Ship a release of the repository this runs in, from gathering what it carries to the published tag. ## Goal A release lands complete and trustworthy: its procedure met, every manifest bumped by kind, notes as the signed tag's message in the repository's documented format or else the house style, and an artifact its workflow publishes. `re0-release` calls `sip` when installed, writes messages to the standard step 5 states, and never calls another user-invoked skill. Each step that commits or writes in public waits for its own approval (Rules). What the text marks "in paperthin", the notes' skill catalog, and the `.agents/install-block.md` and `.re0/iteration/` conventions are this suite's own: the step that names one says what serves in a repository without it, else that part is skipped. It is **user-invoked**: shipping is a deliberate human action, so only the human runs it. ## Workflow 1. **Gather the release.** - Read the owner, repository and default branch with `gh repo view --json nameWithOwner,defaultBranchRef`, else the default branch with `git symbolic-ref --short refs/remotes/origin/HEAD` (its `origin/` dropped), else ask; then that branch's rulesets (`gh api repos/<owner>/<repo>/rules/branches/<default>`) and classic protection (`gh api repos/<owner>/<repo>/branches/<default>/protection`, a 404 meaning none). A rule read there that requires a pull request or reviews sets the pull-request path, and so does a procedure (below) that requires one; anything else, rules that cannot be read (a 403, an origin that is not GitHub or is a `file://` path, no `gh`) included, sets the direct path. - The release branch carries the unreleased changes, and is checked out, up to date with its remote where it has one. On the direct path it is the default branch. On the pull-request path it is the branch checked out when that is not the default branch, with its open pull request where it has one (`gh pr view --json number,headRefName,baseRefName`). From the default branch it is the head of the one open pull request against it (`gh pr list --base <default> --state open --json number,headRefName,title`), checked out before drafting and named in step 8. With several, or with none while a local `release/v*` branch holds commits the default branch lacks (`git for-each-ref --format='%(refname:short)' 'refs/heads/release/v*'`, each read with `git log --oneline origin/<default>..<branch>`), ask which carries the release before drafting anything; with none and no such branch, the default branch itself carries it. - The release branch contains the default branch before anything is drafted: after `git fetch origin`, where `git merge-base --is-ancestor origin/<default> HEAD` fails, rebase it onto it, signed (`git rebase -S origin/<default>`), since a merge commit cannot land on a linear history. A contribution landed on the default branch since the branch forked is then in the range, the notes and the credits. - The release is every change on the release branch since the last release tag (`git describe --tags --abbrev=0 --match 'v*'`, then `git log <tag>..HEAD` and `git diff <tag>`), from the first commit where there is no tag, plus the pending diff. The bump, the notes, the credits and the release commit's message are drafted from that range. A commit whose subject names no pull request is matched to the one it landed through with `gh api repos/<owner>/<repo>/commits/<sha>/pulls`, which gives the credits their number and handle. - The range ships whole, as one release: in house-style notes, its new capabilities go under `### New` and its fixes under `### Also` (step 6). Releases split only by when the human runs this skill, never by dividing a range: a big change of theme, a new capability a reader would tell apart from the last, may ship as its own release once it is done rather than wait for one large release, and work that runs long is released at a natural break, from what has landed by then. - The procedure is the repository's own, in the first of these it keeps, with the release documents that one links to: a release document at its root (a `RELEASING.md`, say), the release sections of its root `AGENTS.md` (Shipping and Releasing, in paperthin), its `CONTRIBUTING.md`. With none, step 8 says the repository documents no procedure, and the run goes on by this skill alone. A release document the procedure links to that does not exist, or a section named here that is gone while no document earlier in this order holds it (in paperthin, an `AGENTS.md` missing its Shipping or its Releasing section), means the procedure moved, not that there is none: that is a gap, so the run stops, reports the name and where it looked, and goes on only from the procedure the human then points to, never from one it guessed. Check each requirement it states on the release's state (a roster, a manifest, a translation); an unmet one is a gap, reported and repaired only once the human authorizes the repair, never set aside. An action it describes is done by the step below that does it, in the repository's wording where the two differ, and step 8 shows the difference. An action it leaves to a named person or role (the maintainer signs the tag, a release manager publishes) is the human's: at the step that would do it, the run gives the human the exact commands, waits, and goes on only from the result it then observes (for a tag, `git tag -v` passing on the fetched tag, its commands given once the commit has landed, as step 9 says). A file named below that the repository lacks is skipped. - Where the release changes what the package says it is (its description, a skill or command added or retired), call the Skill tool with "labelchk" when it is installed, once for the package's keywords and once for the repository's topics, each judging the package as the release ships it. Each keyword or topic change it recommends joins step 8 as a finding, and one the human approves goes into the keywords of every manifest that carries them (when none does, the first manifest the repository has that takes them), the set the repository's topics are projected from, so the page and the manifests never disagree; a repository with no such manifest takes an approved topic by the command labelchk's report names. - A file in the pending diff that belongs to another change or author is excluded once its recorded owner (its commits, a TODO entry, a coordination note) has been read; step 8 shows the exclusion. 2. **Classify the bump** once every open question bearing on what ships is answered (a contract question, a behavior obligation the release would lose); until then, report it and name no version. A lost obligation blocks the release until it is restored or the human rules on it. Classify by kind, never size: a fix of wrong behavior, or a docs-only change, is patch; a new capability a user reaches for, a correct but narrower behavior widened included, is minor, and so is adding or retiring a member of a collection (a skill, a command of a plugin) whose retired name the repository lists with where its job went; a breaking change is major: an existing caller's invocation fails and the package documents no replacement, such as a removed or renamed script command or flag a user calls directly, a changed format of a file a user's files or tools read or write, or a removed install route. State the case; only a minor or major release carries `### New`. 3. **Taste-test.** Call the Skill tool with "sip", this suite's review of what was just made by its own clarity and truth checks, or, on a host with no Skill tool, read `sip`'s `SKILL.md` and follow it; when `sip` is not installed, say that no such review ran. Its findings join step 8 unapplied, each with the output that shows it; never claim a review it did not visibly run. 4. **Plan the bump and checks.** List every manifest that carries the version: `package.json` with its lockfile, set through the package manager (`npm version X.Y.Z --no-git-tag-version`), and plugin manifests such as `.claude-plugin/plugin.json`, where present. Name the checks: the commands the repository's CI runs, else its documented ones (in paperthin, `npm test` and `npm run check`); with neither, step 8 says so. Both run after step 8's approval. 5. **Draft the messages** to the commit-message standard: the local log's shape, or, absent one, a subject plus one `-` bullet per durable change on a single unwrapped line; supporting edits folded in; nothing the diff or version already proves; no co-author tag except a closing `Co-authored-by` trailer crediting a human contributor on a squashed or carried contribution. A pending change and its bump go in one release commit, never split; only when every change in the range is already committed does it carry the bump alone. On the pull-request path every commit in the range lands as it is, so each one meets the standard, and one that does not goes to step 8 for `/re0-git`, the user-invoked skill that rewrites a finished commit's message; the release commit is the head that lands the pull request, so its subject names the release (in paperthin, `chore(release): ship paperthin X.Y.Z with <idea>`), the pull request's title is that subject, and where the repository's commit form names the pull request (in paperthin, ` (#<n>)`), the subject ends with it once the pull request has a number, its digits counted within the repository's limit (72 characters in paperthin). Cleanup of an existing commit goes to the human as `/re0-git`, never called here. 6. **Write the release notes** to `.re0/release/RELEASE_NOTES.local.md`, scratch that becomes the signed tag's message, never committed. Where `git check-ignore -q` finds that path not ignored, add `.re0/` to the file `git rev-parse --git-path info/exclude` names; where that file cannot be written (the host refuses the edit), `.re0/` stays untracked, and step 8 says so. Where the procedure documents its own notes format (a changelog section, a tag-message form), the notes follow it, and each rule it states is a *(judgment)* rule in place of the list below. Otherwise they follow the house style; `scripts/notes.mjs` decides each *(checked)* rule, and you each *(judgment)* one: - one `##` heading with no version number (`X.Y.Z`) in it *(checked)*, naming the release's durable idea *(judgment)*; - one paragraph on one line after it *(checked)*, short and present-tense, saying what is true now *(judgment)*; - sections in this order, each at most once: `### New` (or `### New: <label>`), `### Also`, `### The catalog (N skills)` (`(1 skill)` for one), `### Install` *(checked)*; only those the release earns, the catalog only when the roster needs re-mapping *(judgment)*; - `### New` holds only new capabilities a user reaches for; a fix or tightening of an existing skill goes under `### Also` *(judgment)*; - `### Also` holds only what New does not say, so a single change is one section plus Install: an Also bullet leading with a New bullet's subject fails *(checked)*, any other repeat is *(judgment)*; - every section but Install holds single-line `-` bullets and nothing else *(checked)*; - each New bullet opens with a bold lead *(checked)*: the skill's name (`` **`name`** ``) or a short label (`**One command.**`), never a whole sentence *(judgment)*; - each catalog bullet names a perspective and its skills, plain (`` - `depth/`: `re0` ``) or bold and described (`` - **`depth/`** (one artifact): `re0` ``), listing the N skills the heading counts, each once *(checked)*, which are the real roster *(judgment)*; - `### Install` is the last section and not empty *(checked)*: where the repository keeps an `.agents/install-block.md` (paperthin's one source for its install commands), the contents of its release-notes block for the note's version, fence lines left out *(checked)*, else the install commands the repository documents, verbatim *(judgment)*; with neither, step 8 asks the human for the lines; - each external change is credited inline as `(#123, @handle)`, a run of pull requests as `(#123-#125, @handle)`, each co-author as one more `, @handle`, and no other `#` number appears outside code, link targets and URLs *(checked)*; every external change in the range carries its credit *(judgment)*; - every claim, in the paragraph or a bullet, names a change this release made to a skill, a check, a script or a document (its commits since the tag, `git log <tag>..HEAD -- <its path>`, and the pending diff), never one an earlier release shipped, and says no more than the text the release ships supports (a skill's `SKILL.md` and scripts, the code a check runs, the changed document, and in paperthin the skill's README Index row); a commit message or a summary of the work may point to that text but never stands in for it *(judgment)*; - skill names and paths in backticks *(judgment)*, no em dash *(checked)*, and nothing the tag or version already proves *(judgment)*. 7. **Check the notes.** Notes in the repository's own format get a verdict on each of its rules, and the house-style check never runs on them. House-style notes are checked from anywhere in the repository: `node <this skill's folder>/scripts/notes.mjs .re0/release/RELEASE_NOTES.local.md --version X.Y.Z` (in paperthin the folder is `skills/depth/re0-release`). Exit 0 means every *(checked)* rule holds; an Install reported as not checked is left to its *(judgment)* rule. Exit 1 names each failure by line, fixed in the notes, or, for an `install-block` failure at line 0, in `.agents/install-block.md`. Exit 2 means the check could not run, for the reason its message names. Then write a verdict for each *(judgment)* rule. The verdict on the claims rule takes each claim in turn and quotes, by file and line, the shipped text that makes it true, or for a removal the diff line that deletes it; a claim with no such line fails, and so does one that reaches further than its line, such as an "every", "any" or "each" over cases the line does not cover. The run that wrote the notes is their weakest judge, so once the check and the verdicts pass, call the Skill tool with "sip" on the notes, or follow `sip`'s `SKILL.md` as step 3 says; its findings join step 8 unapplied. Only a reported failure, a verdict's fault or a review finding the human approves changes the text, and only in notes this run wrote. 8. **First confirmation.** Show the whole proposal in one message: - the release branch and range; - the procedure's result, any difference from this skill, and each action it leaves to a person; - the files the commit carries, and any exclusion with the owner it was read against; - `sip`'s run and findings; - the bump with its case, manifests and checks; - the messages, with the release commit subject's length, its number counted; - the full notes, Install included where the format has one, with step 7's exit where it ran and each verdict, or a request for the Install lines where step 6 found none, nothing tagged until they are given; - any exclude line added, or that the exclude file could not be written; - the landing path, the rule or procedure that set it, and its public writes: pushing the release branch, opening a pull request or retitling the open one with a new body, the number added to the release commit's subject, the fast-forward of the default branch, the tag `vX.Y.Z` and its push, and the deletion of the branches it landed once the workflow succeeds (step 13); where `gh` is missing, how landing or watching falls to the human. A change to the exclusion or to what the notes rest on means a redraft, shown again. A review covers only what it read: a commit that joins the range after step 3's review ran means the bump, the messages and the notes are drafted again from the new range and step 3's review runs on the new commits, and a note line written after step 7 ran, other than a fix step 7 itself calls for, means step 7's check, verdicts and review run again on the whole notes, both before the redraft is shown. What approval itself writes reruns neither: the release commit with its bump and approved findings, and step 9's number amend. Nothing tracked is written before approval. On approval, apply the bump and approved `sip` and `labelchk` findings, run step 4's checks and step 7's check and verdicts (its review already ran), quoting their output, and once both pass commit locally the files the proposal named, staged by path (`git add -- <paths>`) and signed (`git commit -S`) as step 9's amend and tag are; a commit that cannot be signed is a stop the human clears (Rules). Read the commit's message back (`git log -1 --format=%B`): it is the approved text exactly, and a mismatch, an added trailer included, is amended before anything is pushed. 9. **Second confirmation, then land and tag.** In the same run, ask to land and publish, naming the path and every public write step 8 listed. On approval: - Direct path: sign and verify the tag on the approved commit first (below), then `git push origin <release branch>`. A rejection naming a protection rule deletes that local tag (`git tag -d vX.Y.Z`) and turns the release to the pull-request path as its own stop: show that path's writes, and ask again. Any other rejection deletes that local tag too and stops. - Pull-request path: `<subject>` is the release commit's subject without its number, and `<body>` a file holding the release commit's bullets. Without `gh` or a GitHub origin, the human lands the commit by this path, by the fast-forward of sub-step 6 rather than a merge button, and the run signs and verifies the tag (below) on the head they name before they land it. 1. Push the release branch, with `--force-with-lease` where a rebase rewrote what was pushed: under its own name, or as `HEAD:refs/heads/release/vX.Y.Z` when it is the default branch. 2. Retitle the open pull request step 1 found (`gh pr edit <n> --title "<subject>" --body-file <body>`), or open one (`gh pr create --base <default> --head <head> --title "<subject>" --body-file <body>`). 3. Where the repository's form names the pull request and the release commit's subject does not yet end with ` (#<n>)`, the check run that opening or retitling started fails on that head by design: amend the message alone to the approved one with ` (#<n>)` added to its subject, both dates kept (in a POSIX shell, `GIT_COMMITTER_DATE="$(git log -1 --format=%cd --date=raw)" git commit --amend -S -F <message-file>`, its tree and author unchanged), and push it with `git push --force-with-lease origin HEAD:refs/heads/<head>` to the ref the pull request's head names. 4. Before landing, the branch must contain its base (`git merge-base --is-ancestor origin/<default> HEAD`). When the base moved, note the fork point (`git merge-base HEAD origin/<default>`) and return to step 1, whose signed rebase brings the base's new commits into the range: the bump, the notes, the credits and the release commit's message are drafted again from it, and step 8 shows the redraft and, on approval, amends the release commit to it instead of adding one. A conflict that rebase stops on, resolved by hand by the run or the human, is read against what the base gained after the fork point, since every check passes on a file that quietly lost a line: note each file it touched (`git diff --name-only --diff-filter=U`) before `git rebase --continue`, and once the rebase completes, list the lines the base added to each (`git diff <fork point> origin/<default> -- <file>`) and find each, verbatim or reworded, in the rebased file, restoring any that is gone in a signed commit of the release that says what it restores, unless a commit of the release says it replaces that line. 5. Wait with `gh pr checks <n> --watch --required`; a non-zero exit stops the run, naming the failing check; nothing lands past it, admin bypass included. 6. Sign and verify the tag on the checked head (below), then land with `git push origin HEAD:refs/heads/<default>`, a fast-forward to that head; fetch, and confirm `origin/<default>` is the release branch's head and `gh pr view <n> --json state` reads `MERGED`. A rejected push deletes that local tag and stops the run; a difference stops it. The landing authority is the human's approval at this step, which names the update of the default branch; a review approval on the pull request alone leaves the release on its branch. - The tag goes on the commit that carries the release (the approved commit on the direct path; on the pull-request path, the checked head, its number amended in): `git tag -s vX.Y.Z <commit> -F .re0/release/RELEASE_NOTES.local.md --cleanup=verbatim`, verified with `git tag -v vX.Y.Z` before that commit is pushed to the default branch, so the default branch never moves before its tag verifies. Once the commit has landed, `git push origin vX.Y.Z`; report the path that ran. Where the procedure leaves the tag to a person (step 1), the run lands the commit first and then gives the human these commands, from signing to the push, so that tag follows the procedure's order instead. 10. **Watch the workflow.** - Find the tag's run with `gh run list --branch vX.Y.Z`, retrying for about a minute; follow it with `gh run watch <run-id> --exit-status`; `gh release view vX.Y.Z --json body,isDraft` must show the notes with `isDraft` false. - With no run, read the workflows at the tagged commit. None matching the tag (`on: push: tags`) means nothing was published, and publishing is the human's step by the repository's documented route; a matching one that started no run is reported as not started, and the run stops. Observation is unavailable only after `gh` itself failed, quoting its error. - A failure caused outside the tagged commit is rerun with `gh run rerun <run-id> --failed` once the cause is gone. One caused inside it is reported and the run stops. - Once the run succeeds, read the version from each package registry its workflow file publishes to, as a user's install would (`npm view <name>@<version> version` for npm, which prints the version once the registry serves it). A registry can hold a version it accepted as still processing for minutes, so a read that answers not found is repeated every minute or so for about ten minutes from the first read; any other error is quoted and ends the reads. A version still not found is reported as not observed, with the time of each read, and is not called published; steps 12 and 13 go on, and step 11 waits for the human. Rerunning a successful workflow publishes nothing new, so none is started for this, and the version is never published by hand (Rules). - After success, compare the Release body with the tag message minus its signature block and trailing whitespace. A mismatch is reported with its cause and fixed, by a rerun or a re-cut, only on the human's approval; steps 11 to 13 go on. - Re-cut path, for a tag whose signature or message is wrong, at the same version: it adds and moves no commit, and the new tag points at the old one's commit id. A signature re-cut copies the message byte for byte from `git cat-file tag vX.Y.Z` (after the header, before the signature block) into a file, re-signs it with `git tag -s -f vX.Y.Z <commit> -F <file> --cleanup=verbatim`, and runs no notes check; a message re-cut carries new notes that pass step 7. Confirm `git tag -v vX.Y.Z` and, for a signature re-cut, that the message equals the file byte for byte, then push with `git push --force-with-lease=refs/tags/vX.Y.Z:<old tag object> origin vX.Y.Z`. A cause in the tagged commit's files, such as a workflow defect, stops the path: its fix needs a new commit, and a new version once anything was published, the human's decision. 11. **Close out the contributions.** After confirmed success, each contribution the release carries gets a credit comment pointing at the release, and a pull request still open is approved where it has no approval and closed with that comment, each on its own approval. A credit or closing the human asks for is never declined as outside the release; it waits for its own approval like the rest. 12. **Retire the cycle** after the workflow succeeded, where the repository keeps paperthin's iteration casebooks: one untracked folder per build cycle, `.re0/iteration/active/<version>-<workname>/`, named for the cycle's provisional version and a short name for its work (the workname). Move the release's folder into `.re0/iteration/completed/` with `mv` (it is untracked, so not `git mv`), unrenamed, matched by workname when its provisional version differs. Where the repository keeps a `TODO.local.md`, remove the folder's entry there and fix the casebook's relative links. With no folder matching, nothing moves; a repository that keeps its cycles by another convention is left as it is, and the report names its folder for the human. 13. **Delete the landed branches** after the workflow succeeded: the release branch and every pull request head the release landed, never the default branch, on the remote (`git push origin --delete <branch>...`) and locally (`git branch -D <branch>`), each only once `git merge-base --is-ancestor origin/<branch> origin/<default>` holds and `gh pr view <n> --json state` reads `MERGED`. Their commits live on the default branch and the host keeps each pull request's head, so a landed branch left behind only hides the open work among finished names. A branch that did not land (closed, carried or failed) is corpus and stays. ## Rules - Never invent a CLI command or flag; verify each against its docs or a real run. - Landing the commit and pushing the tag are the run's share of publishing; the rest is the release workflow's. Never perform by hand a step the workflow owns, publishing or titling the release page included, even to rescue a failed run: a failed run is rerun and a re-cut tag pushed (step 10), so the workflow publishes. - Never push a tag before every manifest's version equals it. - Earlier tags are history, not precedent: a new note follows step 6 whatever the nearest tag did. This run never checks an existing tag's message (`notes.mjs --tag vX.Y.Z` serves a human auditing one), and changes it only by a message re-cut (step 10), never by editing the Release body the workflow copies from it. - **negatives-as-corpus**: retirement moves the iteration folder, never deletes it; if the release fails or is rolled back, the folder stays live. - The stops, each its own question in the same run: a gap, a choice among several open pull requests, and each action the procedure leaves to a person, wherever it falls (step 1), an open question bearing on the bump (step 2), the proposal and its local commit (step 8), landing and tagging, and again after a rejected direct push or a moved base (step 9), a mismatch fix or a re-cut tag (step 10), and each credit comment or closing (step 11). An approval covers its own stop only, and one the human already gave in their own words counts for what they saw: after "go ahead with publication", publication is not asked again. A comment they ask for is still shown in its exact text before it posts. A check, run or job is reported as passed, and a review as clean, only for the state it ran on and only from output this skill's run observed, quoted. The run ends when the human declines or defers a stop, or at another stop a step names, and reports what remains without offering it. - A stop the human clears is one whose cause is their own setup or authority: a commit or tag that cannot be signed, a push their credentials fail, a secret only they can add. It quotes the error, says what is committed, pushed, tagged and published so far, and names what the human does to clear it (as commands where there are any) and what to bring back (the output to show, the word to resume on). Such a stop waits rather than ends the run, a push step 9 stops on included, and the run resumes from what it then observes. It never routes around their identity with another key, another token or an unsigned commit. - Report to the human in the repository's terms: its files, branches, checks and documents by their own names, and this skill's own machinery (its step numbers, rule names, scripts and sibling skills) by what it did ("the notes check passed"). A part for something the repository does not keep (an iteration folder, an install block, a TODO file) goes unmentioned; a gap, a handoff, and a check that applied but did not run are always reported. ## Verification Before finishing, confirm and report: 1. Every manifest's version matches the tag, and the landed subject fits the repository's limit. 2. Every commit in the range meets the commit-message standard, the release commit's subject is the pull request's title on that path, followed by its number where the repository's form names the pull request, and the notes passed their check: `notes.mjs` exited 0 with a verdict on every *(judgment)* rule, or, in the repository's own format, each of its rules has a verdict. 3. Every stop in Rules asked its own question, each action the procedure leaves to a person went to the human as commands, each stop the human clears named what they do and what to bring back, and the run went no further than approved. 4. Every file left out of the release commit was read against its recorded owner and shown in step 8, and the commit carries only the files step 8 named. 5. The landing path rested on the documented procedure, a rule read, a server rejection, or the absence of all three; the tag verified before its commit moved the default branch, unless the procedure leaves the tag to a person; and any landing moved the default branch to the release branch's head. 6. The workflow run completed, its Release body matched the tag, and each registry it publishes to served the version, or the report says what was not published or not observed, and any Release body mismatch with its cause. 7. Where an iteration folder matched, it moved with its TODO entry and links, and every gap and every check that applied but did not run is reported. 8. Once step 13 ran, no branch the release landed, the default branch aside, remains on the remote or locally, and each of its branches left is one that did not land; when step 13 did not run, the report says so. 9. Each claim's verdict quotes the shipped line it rests on, and step 3's review and the notes' review read the range as it landed and the notes as they were tagged, apart from what approval itself wrote (the release commit with its bump and approved findings, and step 9's number amend). 10. Where a rebase onto a moved base had a conflict resolved by hand, every line the base gained after the fork point in each file the conflict touched is in the landed head, verbatim or reworded, or a commit of the release says it replaces that line.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.