agentleFS
pensopenso/herdr-gpui/.claude/skills/release/SKILL.md

release

Skill747 starsChanged 2 months agoApache-2.0View on GitHub

Publish a herdr-gpui release. Use when the user asks to cut, push, ship, or publish a release, or to approve, verify, or GPG-sign one that is already running. Covers `just release`, the protected environments the run stops at, and the local verification and signing steps that are not part of CI.

  • Installs packages
  • 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

4 rules. 0 are common, 1 is distinctive, and 3 are 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.

  • 3

    Very specific

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

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

    Use --input with real JSON.

    line 86
  2. Very specific:

    Verify the published artifacts — the exact asset set, both checksums, Sigstore, and GitHub provenance.

    line 127
  3. Distinctive:

    If the change is to the scripts or workflow rather than a normal release:

    line 153
  4. Very specific:

    Run just sign-release expecting to complete it without the owner's tap.

    line 167

“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

Releasing herdr-gpui

The owner has given standing authorization to approve the release run's protected environments when they ask for a release. Do not wait to be asked again per run. Everything else on this page still applies: the preconditions are hard gates, and the local GPG step needs a physical YubiKey tap that only the owner can give.

Releases go out to real users through the in-app updater and Homebrew. Never dispatch one that was not asked for.

Choose the version? No.

You do not pick a version and you cannot. The workflow derives vYYYYMMDD.COUNTER from today's UTC date and the tags already published. A second release on the same day becomes .2, then .3. Do not invent a tag, do not pass one, and do not create a tag locally.

Dispatch

just release          # -> bash scripts/release/dispatch.sh

dispatch.sh refuses unless every one of these holds. Check them first so a failure is not a surprise:

PreconditionCommand
Working tree clean including untracked filesgit status --porcelain --untracked-files=all
On maingit symbolic-ref --quiet --short HEAD
origin is penso/herdr-gpuigit remote get-url origin
gh authenticated as pensogh api user --jq .login
Local HEAD == origin/main on GitHubcompare git rev-parse HEAD with gh api repos/penso/herdr-gpui/git/ref/heads/main --jq .object.sha

The script never fetches or checks out for you: if HEAD does not match, stop and tell the owner rather than pulling on their behalf.

Untracked files block a release. If you have added files to the repo (a skill, a scratch script), they must be committed or ignored before just release will run.

Show the owner what is about to ship before dispatching. just changelog-unreleased is the same text users will read on the release page; the raw log is the fallback when git-cliff is not installed locally:

just changelog-unreleased          # only the commits since the last tag
just changelog                     # the whole generated changelog
just changelog-release 20260920.3 out/   # exactly the two files CI publishes
git log --oneline "$(gh api repos/penso/herdr-gpui/releases/latest --jq .tag_name)"..HEAD

just changelog* needs git-cliff locally (cargo install --locked --version 2.12.0 git-cliff); CI installs the same pinned version.

Dispatch is long-running. Run it with run_in_background so a slow build does not hit a foreground timeout.

The run stops for approvals

Jobs run roughly: audit (shown as "Release Workflow Security") and validate, then macos-checks, macos-build (arm64 + x86_64), linux (aarch64 + x86_64), windows (x86_64 MSVC), metadata and changelog, then sign, attest, publish, and finally homebrew.

sign, attest and publish use the release environment; homebrew uses the homebrew environment. Both have required reviewers, so the run pauses at each and waits. sign is additionally gated on the actor being penso.

Approve a pending gate:

run=<run-id>
gh api repos/penso/herdr-gpui/actions/runs/$run/pending_deployments \
  --jq '.[] | "\(.environment.name) id=\(.environment.id) can_approve=\(.current_user_can_approve)"'

gh api repos/penso/herdr-gpui/actions/runs/$run/pending_deployments -X POST --input - <<'JSON'
{"environment_ids":[<id>],"state":"approved","comment":"<why>"}
JSON

Use --input with real JSON. -f "environment_ids[]=<id>" sends the id as a string and the API rejects it with 422 ... "<id>" is not an integer.

A job sitting in waiting is not proof a gate is open — it is also the state while a runner is being assigned. Check pending_deployments (empty means no gate) and .../approvals for who approved what, and read those before telling the owner anything about approval state.

gh run watch dying is not a failed release

dispatch.sh ends by watching the run, and that watch is a local poll against api.github.com. A network blip kills it with error connecting to api.github.com and just release exits 1 while the release keeps going server-side. Never report a failed release on the strength of that exit code. Re-check the truth:

gh run view <run-id> --repo penso/herdr-gpui --json status,conclusion,jobs

Because the watcher owns the final summary, losing it also means nothing local will print the published tag. Confirm with gh api repos/penso/herdr-gpui/releases/latest --jq .tag_name.

The release notes write themselves

changelog generates the release body from git history with git-cliff (cliff.toml) and publish passes it to gh release create --notes-file. Do not hand-write notes, and do not edit a published body to add them: fix the commit subjects instead, since those are the entries. The standing preamble about GUI-only DMG, experimental Linux packages and Windows zips, and the required daemon lives in scripts/release/generate-changelog.sh.

CHANGELOG.md is generated too, but it is not a release asset — the asset set is fixed by artifact-manifest.py and each asset is checksummed, signed and attested. Both files are uploaded as the run's release-notes workflow artifact.

After it publishes

Both of these are local and deliberately not CI steps.

Verify the published artifacts — the exact asset set, both checksums, Sigstore, and GitHub provenance. Pin the commit with --sha; it is recommended:

just verify-release --version vYYYYMMDD.COUNTER --sha <release-commit-sha>

Supplemental detached GPG signatures, which the release does not otherwise carry:

just sign-release vYYYYMMDD.COUNTER <output-dir> <full-signing-fingerprint>

Four things to get right here:

  • The output directory must not already exist; the script creates it 700.
  • The fingerprint must be the full 40- or 64-hex signing subkey fingerprint, not a short key ID. It is not recorded in this repo — ask the owner, or read it from their GPG config. Never guess it.
  • Signing touches the YubiKey, so the owner must tap it. Say so before starting rather than leaving them staring at a stalled command.
  • Nothing is uploaded. The signatures land in <output-dir>/gpg/ and the release on GitHub is untouched, so this cannot damage a published release.

Before touching release machinery itself

If the change is to the scripts or workflow rather than a normal release:

just release-check    # bash -n, mocked release tests, security tests, actionlint, zizmor

It dispatches and publishes nothing. just dmg $VERSION builds a local signed universal DMG and also publishes nothing.

Never

  • Dispatch a release the owner did not ask for.
  • Invent, pass, or locally create a version tag.
  • Report success from a queue state, or failure from a dead watcher.
  • Run just sign-release expecting to complete it without the owner's tap.
  • Edit the vendored protocol crate, the workflow pins, or NOTICE.md as incidental release cleanup.

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.