agentleFS
estebanmr99estebanmr99/lean-agents/.claude/skills/release-train/SKILL.md

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

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. oscout/scout★ 11same name
    2. qyndex/claude-init★ 2same name
    3. 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.

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
  1. Distinctive:

    Run one release per session.

    line 6
  2. Very specific:

    Start: read pending-status, the latest retro, who-builds and SPEC 0/2.

    line 11
  3. Very specific:

    Verify PR: HEAD equals PR head, read the diff, npm ci && npm test on default Node and Node 22, bash scripts/check-private.sh.

    line 16
  4. Very specific:

    Start watchers only as background tasks of the agent harness.

    line 39

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. Preflight: provider smoke test + parsed 30-day spend logged. Check: the smoke file says OK and a total is printed, otherwise stop.
  3. 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 runs npm test on 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.
  4. Launch: one worktree + terminal per issue from origin/main. Check: each worktree HEAD equals the main SHA.
  5. 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.
  6. Verify PR: HEAD equals PR head, read the diff, npm ci && npm test on 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.
  7. 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.
  8. 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/main in a clean temp HOME on Node 22 and quotes the failing line.
  9. 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.
  10. 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.
  11. Cleanup + carry-over: close the terminal, remove the worktree, move leftovers with a comment, update pending-status. Check: git worktree list is clean and milestones are ≤5.
  12. 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, and node scripts/release.mjs <version> all exit 0, and no pin in core/pins.json is older than the previous release.
  13. Publish: main ci.yml green on the SHA, owner approves the tag, .github/workflows/release.yml runs on the v* tag push (gates: tagged commit is an ancestor of origin/main, npm ci, npm test, bash scripts/check-private.sh, npm ci --omit=dev, node scripts/release.mjs <version>), publish creates the GitHub release with --verify-tag, and npm publishes with OIDC provenance when NPM_PUBLISH == 'true' after owner approval on the npm environment. Check: npm view lean-agents version shows the new version as latest with provenance; the record PR updating docs/SPEC.md and docs/ROADMAP.md is open.
  14. 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 list shows only main, git branch shows only main, and no remote branch has a merged PR.
  15. 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.
  16. Retro: condense the transcript; 2 reviewers on different models write independently, then debate. Check: retro-<date>.md with apply-now / repo issues / rejected / keep.
  17. 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> folds changes/<issue>.md fragments into CHANGELOG.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 a v* tag) gates the release: build verifies the tagged SHA is an ancestor of origin/main, runs npm ci, npm test, bash scripts/check-private.sh, npm ci --omit=dev, and node scripts/release.mjs <version> and uploads dist/; publish runs no repo code and creates the GitHub release with --verify-tag; npm publishes the .tgz with --provenance --access public via OIDC trusted publishing when vars.NPM_PUBLISH == 'true' after npm environment 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; nohup or & disown never notify.
  • git add new docs before running the link test; it reads tracked files only.
  • A flaky test gets one rerun plus an issue.
  • timeout is not on macOS by default.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.