release-train
Skill4 starsChanged 5 days agoMITView on GitHub
Use when cutting a lean-agents release: one release per session, start to finish, with the same gated steps.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- oscout/scouttheir own version, first seen Nov 26, 2026
- 5thlayer/skillworkstheir own version, first seen Nov 8, 2026
- qyndex/claude-inittheir own version, first seen Oct 13, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- oscout/scout★ 11same name
- qyndex/claude-init★ 2same name
- 5thlayer/skillworks★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- coordinateSkill
- parallel-sessionsSkill
- setup-doctorSkill
- token-auditSkill
- update-modelsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Run one release per session.
- Very specific: line 11
Start: read pending-status, the latest retro, who-builds and SPEC 0/2.
- Very specific: line 16
Verify PR: HEAD equals PR head, read the diff, npm ci && npm test on default Node and Node 22, bash scripts/check-private.sh.
- Very specific: line 39
Start watchers only as background tasks of the agent harness.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run one release per session. Read the private details (models, budget, workspace paths) from the agent's memory at run time; this skill holds only the generic steps.
Steps
- Start: read pending-status, the latest retro, who-builds and SPEC 0/2; run
date -u. Check: each milestone has ≤5 open issues and the UTC date is noted. - Preflight: provider smoke test + parsed 30-day spend logged. Check: the smoke file says OK and a total is printed, otherwise stop.
- Spec per issue: task first, rules last (local gate incl. Node 22,
[\\/]in path regexes, a test per finding, no main checkout); the worker done gate runsnpm teston Node 22 in a hermetic env (only PATH, HOME, NVM_DIR), expected paths in tests use path.join/path.sep, never a literal '/' or '', and any new external CLI flag cites its minimum version from docs/compatibility.md in the PR body. Check: one spec file per issue. - Launch: one worktree + terminal per issue from
origin/main. Check: each worktree HEAD equals the main SHA. - Watch: one batch monitor (PR opened, worker exit/error prefix, CI done). Check: no stray watchers; a dead worker is cleaned up within 1 h.
- Verify PR: HEAD equals PR head, read the diff,
npm ci && npm teston default Node and Node 22,bash scripts/check-private.sh. Check: counts posted in a PR comment; never paste private memory details (models, budgets, paths) into PR comments or issues. - Review: code, security (cwd/PATH), PO vs "Done when"; the header carries
date -u+ SHA; a different model for data-sensitive PRs. Check: 3 verdicts recorded; the security reviewer rejects a PR that adds an external CLI flag without its minimum-version line. - Fix round: all findings in one worker message; each MEDIUM+ finding gets a test that fails on the pre-fix SHA; same-agent re-review. Check: re-review approves and names the tests; before writing a fix spec for a CI-only failure the coordinator reproduces it on
origin/mainin a clean temp HOME on Node 22 and quotes the failing line. - Coordinator edits only conflicts, release/docs and assertion-keeping harness fixes; each one is re-reviewed; no spec branches on the Node version and "never narrow an assertion" also covers the specs the coordinator writes. Check: a PR comment lists the coordinator commits + the reviewer's OK.
- Merge gate: required checks green on the head SHA (a known flake is rerun once, with an issue filed), findings ledger complete, REST squash merge. Check: merge API message + ledger comment.
- Cleanup + carry-over: close the terminal, remove the worktree, move leftovers with a comment, update pending-status. Check:
git worktree listis clean and milestones are ≤5. - Release PR in a worktree: fold fragments with
node scripts/changelog.mjs <version>, version bumps, security audit of the range, PO review. Check:npm test,node scripts/lint-workflows.mjs,shellcheck install.sh scripts/*.sh tests/*.sh,bash scripts/check-private.sh, andnode scripts/release.mjs <version>all exit 0, and no pin incore/pins.jsonis older than the previous release. - Publish: main
ci.ymlgreen on the SHA, owner approves the tag,.github/workflows/release.ymlruns on thev*tag push (gates: tagged commit is an ancestor oforigin/main,npm ci,npm test,bash scripts/check-private.sh,npm ci --omit=dev,node scripts/release.mjs <version>),publishcreates the GitHub release with--verify-tag, andnpmpublishes with OIDC provenance whenNPM_PUBLISH == 'true'after owner approval on thenpmenvironment. Check:npm view lean-agents versionshows the new version as latest with provenance; the record PR updatingdocs/SPEC.mdanddocs/ROADMAP.mdis open. - Clean up: remove every merged worktree, every local and remote branch whose PR is merged or closed, worker logs and temp HOMEs; archive specs and retro notes outside the repo tree. Check:
git worktree listshows only main,git branchshows only main, and no remote branch has a merged PR. - Site and listing: update the project site and the public listings with the new version and highlights (after the site issue lands). Check: the live site shows the new version.
- Retro: condense the transcript; 2 reviewers on different models write independently, then debate. Check:
retro-<date>.mdwith apply-now / repo issues / rejected / keep. - Next-session prompt: top-risk repo issues first, saved in pending-status and given to the owner; end the session. Check: the prompt names the issues, the first step and the budget read from the agent's memory at run time.
Checks and scripts
- Local pre-release checks:
npm test,node scripts/lint-workflows.mjs,shellcheck install.sh scripts/*.sh tests/*.sh,bash scripts/check-private.sh. node scripts/changelog.mjs <version>foldschanges/<issue>.mdfragments intoCHANGELOG.md.node scripts/release.mjs <version>builds release artifacts (dist/*.tgz,*.tar.gz,*.zip,SHA256SUMS,install.sh,install.ps1,notes.md)..github/workflows/release.yml(triggered by pushing av*tag) gates the release:buildverifies the tagged SHA is an ancestor oforigin/main, runsnpm ci,npm test,bash scripts/check-private.sh,npm ci --omit=dev, andnode scripts/release.mjs <version>and uploadsdist/;publishruns no repo code and creates the GitHub release with--verify-tag;npmpublishes the.tgzwith--provenance --access publicvia OIDC trusted publishing whenvars.NPM_PUBLISH == 'true'afternpmenvironment approval.
Shell traps
- Launch workers with
bash -c; zsh does not word-split an unquoted$spec. - Start watchers only as background tasks of the agent harness;
nohupor& disownnever notify. git addnew docs before running the link test; it reads tracked files only.- A flaky test gets one rerun plus an issue.
timeoutis not on macOS by default.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

