agentleFS
air-gappedair-gapped/lessence/.claude/skills/release/SKILL.md

release

Skill4 starsChanged 4 months agoMITView on GitHub

Release workflow for lessence — the agent runs the whole release: version bump, changelog section, release-check, tag, push, publish. Use when preparing a release, checking whether one is ready, fixing a release that went wrong, or understanding how versions are managed.

  • Commits and pushes

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use watch-pr, marketplace and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Hugging FaceSkill

    watch-pr

    Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.

    Also in 3 projects that use this

  • OpenAISkill

    marketplace

    Vercel Marketplace expert guidance — discovering, installing, and managing third-party integrations via the `vercel integration` CLI. Use when building any app that needs an external capability without a dedicated skill — commerce (stores, storefronts, selling products), payments (checkout, subscriptions, billing), observability/monitoring, messaging/email, search, or CMS — or when discovering, installing, or managing integrations.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    engineering-principles

    GPT-RAG Orchestrator architecture and implementation principles. Use for design, review, meaningful refactoring, runtime strategies, FastAPI, Azure integration, security, testing, or operations.

    Also in 4 projects that use this

  • ZAidBinAsifSkill

    write-readme

    Write README files as landing pages not API docs

    Also in 3 projects that use this

  • polyant-aiSkill

    plugin-authoring

    Use when creating, converting, or loading Polyant agent tools/plugins — authoring a *.tool.ts with defineTool, the serialized (JSON Schema) contract, converting a legacy registerTool tool, or wiring an external plugin via PLUGIN_DIRS / src/plugins. Also covers authoring a *.hook.ts with defineHook (conversation lifecycle hooks + control returns halt/injectContext/replaceResponse/regenerate). Covers the module-resolution rules that decide where a plugin can live.

    Also in 3 projects that use this

  • eugenelimSkill

    new-spec

    Use this skill when the user wants to start a new feature with a spec, or wants to write a spec for something they're about to build. Triggers on "new spec", "write a spec for X", "let's spec this out", "start a feature for…". Spec-driven development; the spec drives implementation. Do NOT use for cross-cutting proposals (use `new-rfc`) or recording decisions (use `new-adr`).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    not: start one — push freely, but remember the repo is public and everything pushed is visible.

    line 18
  2. Very specific:

    Never tag by hand and never gh release create by hand: the workflow creates both, after the matrix.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 172 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

Release Workflow

The agent runs the release end to end. There is no bot. release-please was removed on 2026-09-22 after it produced two tagged-but-unpublished versions and a stale changelog; nothing opens a PR against this repo any more.

A release is a tag plus a published GitHub release. Pushing main does not start one — push freely, but remember the repo is public and everything pushed is visible.

The sequence

Nothing here is optional and the order matters: the tag is a public claim and must never point at a commit that failed a check.

# 1. Everything intended for the release is committed and on main.
git status --short          # clean
git log --oneline <last-tag>..HEAD

# 2. Decide the version from what is IN that range, not from habit.
#    feat: -> minor. fix:/perf: -> patch. A changed or removed --format json
#    field, flag or exit code is BREAKING: minor while 0.x, major after 1.0.

# 3. Bump the version and write the changelog section BY HAND.
#    Users read this. Say what changed for them, not what moved in the code.
$EDITOR Cargo.toml CHANGELOG.md
cargo build --release        # refresh Cargo.lock
make gate                    # the pre-commit hook wants it for Cargo.toml
git commit -am "chore: release X.Y.Z"

# 4. Refresh the README compression table AFTER the bump: its freshness
#    check compares src/ and Cargo.toml, so a table measured before the
#    bump is stale by definition. Needs a release binary built from HEAD.
cargo build --release
./scripts/readme-compression.sh --write vX.Y.Z
git commit -am "docs: README compression table measured for vX.Y.Z"
#    And move `verified-at:` in .claude/skills/lessence/references/sources.md
#    to HEAD once the skill has been re-read against every user-facing
#    src/ commit since the old sha.

# 5. The gate. This is what decides "ready" — not judgement.
make release-check           # ~20 min

# 6. Dry run of the release on every platform: the whole test suite, the
#    build, the smoke tests and the packaging, natively on macOS and
#    Windows and under qemu for aarch64. Nothing is tagged or published.
#    Manual only — nothing builds on push.
git push origin main
gh workflow run release-build.yml --ref main
gh run watch "$(gh run list --workflow release-build.yml --limit 1 --json databaseId -q '.[0].databaseId')" --exit-status

# 7. The release, only after both passed. The same jobs run again, and only
#    if every one is green does the workflow create the tag and the GitHub
#    release at the tested commit (notes: the version's CHANGELOG.md
#    section), and only after that publish the crate. A perf delta over the
#    gate's threshold is the owner's call; once accepted, that gate line is
#    the one FAIL release-check may carry, and the handoff states it.
gh workflow run release-build.yml --ref main -f tag=vX.Y.Z
gh run watch "$(gh run list --workflow release-build.yml --limit 1 --json databaseId -q '.[0].databaseId')" --exit-status

Never tag by hand and never gh release create by hand: the workflow creates both, after the matrix. That order is the fix for 0.8.0, which was released first and built second, and whose crate reached crates.io while macOS was failing to compile (yanked). It follows astral-sh/uv and ruff: a manual workflow whose default input is a dry run, release needing every build, publish-crate needing release.

What release-check proves

scripts/release-check.sh, writing target/gate/release.json:

CheckMeaning
gate vs the last published releasenot the last tag — a tag can exist with no release behind it, and comparing to it hides what the upgrade costs
mutants --in-diffthe tests kill the mutants the diff introduced
make cifmt, clippy, doc, tests, deny
slow teststhe wall-clock profile the default profile excludes
README compression tablegenerated at a commit whose src/ equals today's
agent skill re-verifiedsources.md's verified-at: sha covers every user-facing src/ commit
release targetscargo check --release --target for every shipped target: a Linux-only API is caught here, not on the release runners

The skill check used to be a GitHub check on the release-please PR branch. With no PR to hang it on it moved into release-check, because a check that only fires on a branch nobody creates is a check that never runs.

Perf against the last published release is separate and is not in release-check: see CLAUDE.local.md for the script, and state the cumulative number in the handoff.

Version rules

  • Cargo.toml is edited by hand now. Nothing rewrites it.
  • The tag is vX.Y.Z; Cargo.toml carries X.Y.Z.
  • The version string comes from the tag, via git describe. A tag with no release behind it makes every later build claim that version — which is how builds nine commits past v0.7.0 came to report 0.7.0.
  • A tag is public the moment it is pushed. Do not push one speculatively.

If something goes wrong

  • A build or test fails in the release run: nothing is public — the tag is created only after the whole matrix passes. Fix on main, push, and run the release again.
  • The crate did not publish (release created, publish-crate red): gh run rerun <run-id> --failed retries only that job. crates.io publishes are immutable; never publish from a laptop to work around it.
  • A published version is broken: yank it on crates.io (the owner holds the login), turn its GitHub release back into a draft, and supersede it — a yanked version can never be reused.

History worth keeping

Two releases, v0.6.0 and v0.7.0, were tagged and drafted but never published, while users stayed on v0.5.0. That is the failure this process exists to prevent: the drafts were deleted, the tags kept (they are true — those commits were tagged), and the next release supersedes them.

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.