agentleFS
aterryluaterrylu/autonomOS/.claude/skills/release/SKILL.md

release

Skill9 starsChanged 2 months agoMITView on GitHub

Make a published GitHub Release's notes friendly — rewrite the mechanical, one-line-per-PR changelog body into autonomOS's themed/emoji format (the v0.3.0 style Terry approved). Use when asked to "make the release notes friendly", "theme the release body", "prettify the release notes", or generate the friendly release notes for a version. Reads the mechanical body from scripts/release-notes.ts, regroups the PRs into themed sections, and applies the result via `gh release edit`. Does NOT cut releases or edit CHANGELOG.md.

  • Pipes a download into a shell

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

10 rules. 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user gave a version/tag, use it.

    line 45
  2. Distinctive:

    If it doesn't exist, STOP and tell the user — this skill enhances a *published* release.

    line 52
  3. Very specific:

    Run, from the repo root (pass the bare version, NOT the v tag — the script matches a ## [<version>] heading and exit(1)s if given v0.4.0):

    line 57
  4. Very specific:

    Call out breaking changes explicitly in the prose (see #220 in the example: "Breaking change: …").

    line 110
  5. Very specific:

    Run this hard check against $FRIENDLY (the file from step 3).

    line 124
  6. Very specific:

    NOT run gh release edit. Fix the body and re-check, or stop and report.

    line 142
  7. Very specific:

    If any changeset in this release bumps the agent-record format (AGENT_SCHEMA_VERSION in packages/server/src/agents/store.ts), put this …

    line 157
  8. Distinctive:

    No emoji or phrasing is banned by default.

    line 213
  9. Very specific:

    Never edits CHANGELOG.md — that is the committed mechanical archive (the floor).

    line 233
  10. Very specific:

    Never touches scripts/sync-changelog.ts or scripts/release-notes.ts — it consumes their output, it does not modify them.

    line 235

“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 — friendly release-notes rewrite

autonomOS ships release notes in two layers (see ADR-044):

  • Floor of correctness — the mechanical, one-line-per-PR body that scripts/sync-changelog.ts consolidates into CHANGELOG.md and scripts/release-notes.ts extracts. CI publishes this automatically. It is always correct and never themed.
  • Ceiling of friendliness — the themed/emoji body Terry approved for v0.3.0. That is what this skill produces.

This skill is the ceiling. The model doing the rewrite is the Claude Code session running this skill — there is no API key, no Anthropic SDK call, and no CI step. You read the mechanical body, transform it, and apply it to the live release. Because the mechanical floor already shipped from CI, this is a safe, reversible enhancement of an already-correct release body.

The spec is canonical-example.md. Read it in full before writing anything. It is the exact v0.3.0 mechanical→friendly pair. Match its structure, density, and tone. Do not try to be cleverer than the example — consistency with it IS the goal.

Preconditions: gh must be authenticated (gh auth status) and bun available. If gh isn't logged in, step 1's commands fail with an auth error — that is an auth problem, NOT a missing release; don't tell the user to publish one.


Procedure

1. Determine the version and tag

  • If the user gave a version/tag, use it. Otherwise derive the version from packages/server/package.json (.version) — that is the just-released version.
  • The bare version is e.g. 0.4.0. The tag is v0.4.0 (version with a leading v). Keep them distinct — release-notes.ts wants the bare version; gh wants the tag.
  • Confirm the release exists and is published: gh release view "v<version>" --json tagName,isDraft,body If it doesn't exist, STOP and tell the user — this skill enhances a published release; it does not create one.

2. Get the mechanical body (the input — never hand-type it)

Run, from the repo root (pass the bare version, NOT the v tag — the script matches a ## [<version>] heading and exit(1)s if given v0.4.0):

bun scripts/release-notes.ts <version>

This prints the exact mechanical floor for that version — the same text CI published. This is your input. Do not reconstruct it from git log, the PR list, or the live release body — release-notes.ts is the single source of truth, and using it guarantees you operate on the same PR set CI shipped.

Sanity-check the input is complete. The step-4 guardrail guarantees your friendly body matches this mechanical input exactly — but it cannot tell whether the input itself is complete. That is the floor's responsibility (ADR-044). Cross-check the PR count against the release's actual contents:

gh release view "v<version>" --json body --jq '.body' | grep -coE '#[0-9]+'   # PRs CI saw
bun scripts/release-notes.ts <version> | grep -coE '#[0-9]+'                    # PRs you got

If the mechanical body is far sparser than the release actually contains, STOP and flag it. Do not reconstruct the missing PRs yourself — a thin mechanical body means sync-changelog.ts under-collected, an upstream floor bug to report, not something the ceiling should paper over. (Releases predating PR #244 — e.g. v0.3.0 — have a known-incomplete committed CHANGELOG.md section for this reason.)

3. Transform mechanical → friendly, into a temp file

Following canonical-example.md, produce the friendly body and write it to a temp file — that file is the single artifact you check in step 4 and apply in step 6:

FRIENDLY="$(mktemp)"   # write your finished friendly body here

The transformation:

  1. Lede — one short paragraph naming the release's headline themes (what a user would most want to know landed).
  2. Themed ## sections, each with a leading emoji — group PRs by what the work does for the user, NOT by changeset severity. Related PRs cluster together (all the Codex work, all the usage-limit work) regardless of whether they were minor or patch. Order sections by importance, headline themes first.
  3. One bullet per PR, in this exact shape:
    - <emoji> **[#NNN](https://github.com/aterrylu/autonomOS/pull/NNN) — Short imperative title.** One or two sentences of concrete, friendly explanation: what it does and why it matters.
    • The visible #NNN and the /pull/NNN in the URL must be the same number (the step-4 check verifies this — a mismatched link is as bad as a dropped PR).
    • Drop the sha and the raw conventional-commit prefix; rewrite the title into plain, user-facing language.
    • Call out breaking changes explicitly in the prose (see #220 in the example: "Breaking change: …").
  4. Footer — a --- then the fixed boilerplate footer (see step 5).

Reorder freely by theme; the mechanical input's severity grouping and PR ordering do NOT constrain the friendly output. The ONE thing that must survive is the set of PRs (next step).

4. ⛔ Guardrail self-check — MANDATORY before applying

This is the load-bearing invariant. The mechanical floor exists because a prior bug silently dropped 20 of 21 PRs from a release body (ADR-044); the friendly ceiling must NOT reintroduce that failure.

Run this hard check against $FRIENDLY (the file from step 3). It verifies the PR set survived AND that every link points where its text says:

mech=$(bun scripts/release-notes.ts <version> | grep -oE '#[0-9]+' | sort -u)
# Visible #NNN tokens in the friendly body must equal the mechanical set:
txt=$(grep -oE '#[0-9]+' "$FRIENDLY" | sort -u)
# Link targets /pull/NNN must ALSO equal the mechanical set (catches wrong hrefs):
url=$(grep -oE '/pull/[0-9]+' "$FRIENDLY" | grep -oE '[0-9]+' | sed 's/^/#/' | sort -u)
if [ "$mech" = "$txt" ] && [ "$mech" = "$url" ]; then echo "PASS — every PR preserved"; else
  echo "STOP — PR set mismatch:"
  echo " visible #NNN missing:"; comm -23 <(echo "$mech") <(echo "$txt")
  echo " visible #NNN invented:"; comm -13 <(echo "$mech") <(echo "$txt")
  echo " link /pull/NNN missing:"; comm -23 <(echo "$mech") <(echo "$url")
  echo " link /pull/NNN wrong/invented:"; comm -13 <(echo "$mech") <(echo "$url"); fi

PASS = proceed. Anything else = a PR was dropped, invented, or mislinked → do NOT run gh release edit. Fix the body and re-check, or stop and report.

Also confirm (hard):

  • ≥1 themed ## section header.
  • Footer present verbatim (step 5).
  • No rogue HTML / scripts — no <script, no raw HTML tags beyond the inline <textarea>-style spans that legitimately appear inside backticks.

Soft check (investigate, don't auto-STOP): the friendly body should be longer than the mechanical (it adds prose) but not absurdly so — very roughly 1.5×–6× the mechanical character count. Wildly outside that range is a smell worth a look, not an automatic failure.

4b. Storage-format marker (ADR-105 — required when it applies)

If any changeset in this release bumps the agent-record format (AGENT_SCHEMA_VERSION in packages/server/src/agents/store.ts), put this exact line at the very top of the friendly body:

<!-- autonomos:storage-format-change -->

It is invisible on GitHub, and the in-app update reads it to warn the operator — before they click Update — that older versions can't read the new format and going back restores their pre-update snapshot. Never add it when the format did not change; never express it only in prose (the server does not parse prose). Check: git diff v<prev>..v<version> -- packages/server/src/agents/store.ts | grep AGENT_SCHEMA_VERSION.

5. The fixed footer (reproduce verbatim)

Stable boilerplate every release — fully fixed, nothing in it varies per release:

---

📦 **Install / upgrade:** `curl -fsSL https://raw.githubusercontent.com/aterrylu/autonomOS/main/scripts/install.sh | sh && autonomos start`
💾 **Manual download:** grab `autonomos-<os>-<arch>.tar.gz` for your platform from the assets below (verify against `SHA256SUMS`)

Thanks for using autonomOS! 💛

Note: canonical-example.md's v0.3.0 footer still shows the old desktop-app lines (DMG download + auto-update) — those were accurate for v0.3.0 but the Electron desktop app was cut in #273/ADR-051. This step, not the example, is the authoritative footer. Do not reproduce the DMG or auto-update lines.

6. Apply

This step encodes the current decision: apply directly + reversible. It is intentionally isolated so it's a one-block change if the invocation model changes (e.g. output-only, or agent-automated). See "Configuration" below.

  1. The finished friendly body is already in $FRIENDLY (step 3).
  2. Show the user the full friendly body and the step-4 guardrail result (the PASS line, footer present, etc.).
  3. Apply it to the live release:
    gh release edit "v<version>" --notes-file "$FRIENDLY"
  4. Confirm: print gh release view "v<version>" --web (or the release URL) so the user can eyeball the rendered result. gh release edit is fully reversible — re-run /release or edit again if anything looks off.

Tonal guardrails

  • Match canonical-example.md's voice: warm, concrete, user-facing. Lead with what changed for the user, not the implementation.
  • Footer is fixed boilerplate — reproduce verbatim (step 5).
  • No emoji or phrasing is banned by default. (If Terry specifies tonal constraints — emojis to avoid, phrasings to avoid — add them here; this is the one section meant to absorb those without touching the procedure.)

Configuration / current decisions

These are the choices baked into the procedure above; they're called out so a future change is a small, obvious edit rather than a hunt:

  • Apply mode = apply-directly (step 6 runs gh release edit). To make the skill output-only, replace step 6's gh release edit call with "print the body for the user to paste" and stop.
  • Invocation = manual — a human or agent runs /release <version> after a release publishes. To automate, have an autonomOS agent invoke this skill on a new-release signal; the skill body does not change.

Notes

  • Works from the main repo or any worktree — all paths are repo-relative and scripts/release-notes.ts reads from the repo root.
  • Never edits CHANGELOG.md — that is the committed mechanical archive (the floor). This skill only edits the GitHub Release body (the ceiling).
  • Never touches scripts/sync-changelog.ts or scripts/release-notes.ts — it consumes their output, it does not modify 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.