agentleFS
colonyopscolonyops/hive/.agents/skills/release/SKILL.md

release

Skill37 starsChanged 57 days agoMITView on GitHub

Cut the next release of every program -- the hive CLI and Hive Desktop under one version. Use when asked to release or publish hive, the CLI, or the desktop app, or when explicitly invoked as `/release`.

  • Reads credentials

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

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Every release ships the hive CLI and Hive Desktop together, under one semver version tagged v<version> (ADR …

    line 10
  2. Distinctive:

    Stop and explain the mismatch if any check fails.

    line 48
  3. Very specific:

    If it reports that no promoted release notes are newer than the last release, this is not recoverable inside the release run: the entries …

    line 64
  4. Very specific:

    Use the candidate, tag, commit, and manifest state printed by prepare.

    line 73
  5. Distinctive:

    Stop if it reports any error.

    line 74
  6. Distinctive:

    After confirmation, run the same local gates used before pushes:

    line 84
  7. Very specific:

    Stop on the first failure.

    line 91
  8. Very specific:

    Do not read .env, print credential environment variables, or call go run ./cmd/tools/release publish directly.

    line 99
  9. Distinctive:

    Never bump past 1 without that change.

    line 144

“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 every program

Every release ships the hive CLI and Hive Desktop together, under one semver version tagged v<version> (ADR every-program-ships-under-one-shared-version). The run starts on this machine because the desktop's signing keys live here. mise loads release credentials automatically; never read .env, inspect secret values, or invoke the release CLI's publish command outside mise.

The run publishes the desktop first: it builds every platform here (macOS plus both Linux architectures, so it needs macOS and a running Docker together), uploads to R2, and writes the stable, beta, and dev manifests. It then pushes the v<version> tag and dispatches publish.yml, which builds the CLI with GoReleaser, creates the one GitHub release with every program's notes, publishes the Homebrew cask, and deploys the site. The run waits for the workflow. Step 9 covers recovering that last step.

The release notes pick the version. The desktop embeds its notes, and the workflow renders the CLI's from the tagged commit, so an entry written after the build would describe a release that cannot display it (ADR release-notes-ship-inside-the-binary). The release publishes the newest version that every program has a promoted entry for and that no release has published. Step 4 covers what to do when there is none.

Arguments

Accept no arguments. Reject a channel or a version: the promoted entries name the version, and there is one release line.

Procedure

  1. Resolve the repository root with git rev-parse --show-toplevel, change to it, and run every command below from there. Read docs/distribution.md.
  2. Run git fetch origin main --tags --prune.
  3. Require all of the following:

    • the working tree is clean;
    • the current branch is main;
    • local main is identical to origin/main (neither ahead nor behind);
    • gh auth status succeeds.

    Stop and explain the mismatch if any check fails. Do not stash, reset, merge, pull, switch branches, or discard work automatically.

  4. Select and validate the candidate with the Go release CLI:

    go run ./cmd/tools/release prepare

    prepare takes the version from the promoted entries and refuses one that does not advance every v* and desktop-v* tag and every live manifest, that lacks an entry with a summary for any program, or whose tag exists locally or on origin. It also runs cmd/desktop/scripts/check-migration-order.sh, which rejects gaps and any change to a SQLite migration already present in the latest reachable release tag.

    If it reports that no promoted release notes are newer than the last release, this is not recoverable inside the release run: the entries have to be committed on main before publishing, and step 3 requires a clean tree identical to origin/main, so they cannot be written here. Stop and tell the operator to run /release-prep. The release-prep skill promotes the accumulated fragments, curates each program's entry, and runs the repository command that creates the branch, commit, push, and pull request. Restart this procedure from step 2 after the pull request merges.

  5. Use the candidate, tag, commit, and manifest state printed by prepare. Stop if it reports any error. Never choose a version from repository tags alone: the R2 history predates this repository and may hold a newer version than any local tag.
  6. Show the candidate version, tag, exact commit SHA and subject, and the current stable, beta, and dev manifests. Ask for an explicit confirmation before doing anything that publishes. Prefer the harness's structured confirmation UI when available; otherwise ask in plain text and wait. The confirmation must make clear that the run will build, sign, notarize, and upload a public desktop release, push the tag, and publish the CLI. Stop on cancellation.
  7. After confirmation, run the same local gates used before pushes:

    mise run check
    mise run desktop:frontend:test

    Stop on the first failure. Verify the worktree is still clean and HEAD still equals origin/main afterward.

  8. Publish through mise, which loads the credentials without exposing them:

    mise run release:publish -- <version>

    Do not read .env, print credential environment variables, or call go run ./cmd/tools/release publish directly. The publisher verifies every live manifest and downloads the public artifact to check its size and SHA-256 before it moves on to the tag.

    R2 operations have bounded retries. If they are exhausted after packaging has completed, keep cmd/desktop/bin intact and resume the same version:

    mise run release:publish -- <version> --resume

    Resume skips builds, signing, and Apple submissions. It re-verifies the local artifacts, reuses only byte-identical R2 objects, uploads missing objects, and finishes partial manifest writes before the normal live verification and GitHub step. Stop if resume reports a local or remote mismatch. Never use --force for recovery and never invent a replacement version for a partial upload.

  9. Publishing finishes by pushing the v<version> tag and dispatching publish.yml, then watching the run. Do not tag or push by hand. If only that step fails (a gh outage, a failed workflow run), the desktop release is already live and verified. Fix the cause, then run the GitHub step again:

    go run ./cmd/tools/release github <version>

    It reuses the tag, watches a run that is still in progress, reports one that succeeded, and dispatches a new run only when no run has created the GitHub release yet. GoReleaser creates the release before the Homebrew cask publish and the site deploy, so for a run that failed after that point the command names what to run instead: gh run rerun <run-id> --failed. Run exactly that; do not dispatch the workflow by hand, because a second run would collide with the release's assets.

    Report the version, the pushed tag and its GitHub release URL, the workflow run URL, and the desktop artifact URL prefix (https://dl.hivedesktop.com/desktop/releases/<version>/).

Version rules

  • A version is semver X.Y.Z, bumped in lockstep for every program. Promotion bumps the newest published version by minor unless asked for patch or major. go run ./cmd/tools/release next prints the version it would take.
  • A major bump to 2 or more needs a /vN module path for the CLI's Go module. Never bump past 1 without that change.
  • A release must advance every v* tag, every desktop-v* tag, and every live manifest. Including the manifests matters because the R2 history predates this repository.

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.