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

release-prep

Skill41 starsChanged 7 days agoMITView on GitHub

Curate every program's accumulated changelog fragments into its entry for the next release, then create the release-notes pull request. Use when explicitly asked to prepare release notes or invoked as `/release-prep [version]`.

  • Commits and pushes

23 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Clean: run mise run changelog:promote, adding -- --bump <level> for a bump level or -- <version> for an explicit version.

    line 57
  2. Very specific:

    Read the promoted entry, its deleted source fragments from HEAD, and recent committed entries for voice and structure.

    line 74
  3. Very specific:

    write one quoted summary sentence that names the release's main user-facing outcomes.

    line 81
  4. Distinctive:

    remove notes for work reverted before this release.

    line 84
  5. Distinctive:

    update stale bullets so they describe the behavior that will ship.

    line 85
  6. Distinctive:

    remove empty sections and keep the remaining sections in that order.

    line 87
  7. Distinctive:

    do not mention implementation names, commits, issues, pull requests, or ADRs.

    line 89
  8. Distinctive:

    do not invent claims that the fragments or repository history do not support.

    line 90
  9. Distinctive:

    Follow the release-notes skill's product-copy rules.

    line 92
  10. Distinctive:

    Read each complete entry again after editing.

    line 99
  11. Distinctive:

    Run the focused parser tests and the release tool's dry run:

    line 105
  12. Distinctive:

    Run git diff --check, then read each complete entry and the deleted-fragment list one final time.

    line 112
  13. Very specific:

    If the command says it committed and pushed but gh pr create failed, the promotion is already safe on the release-notes branch.

    line 124

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

Prepare release notes

Prepare the changelog entries that must land before a release. Every release ships the hive CLI and Hive Desktop under one version, so promotion writes one entry per program. This command edits product copy, then delegates the branch, commit, push, and pull request to the repository's release tooling.

The version this promotes is the version the release publishes: mise run release reads it from the entries.

Arguments

Accept no argument, one bump level (patch, minor, or major), or one explicit version such as 0.60.0. No argument means minor. The release tool bumps the newest version across every tag and live manifest by that level. Reject a prerelease, a v prefix, and extra arguments.

1. Load the project rules

Resolve the repository root with git rev-parse --show-toplevel, change to it, and run every command from there. Read these files before editing:

  • ../release-notes/SKILL.md for product-copy rules;
  • docs/distribution.md for the current release contract.

The repository command mise run changelog:pr is the authority on the branch, commit, push, and pull request. Do not use pr-create-auto, create the branch by hand, or write a separate commit.

2. Validate the starting state

Run:

git fetch origin main --tags --prune
git status --porcelain=v1 --untracked-files=all
git branch --show-current
git rev-parse HEAD
git rev-parse origin/main
gh auth status

Require main, HEAD equal to origin/main, and successful GitHub authentication. Do not pull, reset, stash, switch branches, or discard work to make the checks pass.

Two worktree states are valid:

  1. Clean: run mise run changelog:promote, adding -- --bump <level> for a bump level or -- <version> for an explicit version.
  2. Already promoted: continue without promoting again when the only changes are one untracked <version>.md in each of cmd/hive/releasenotes/changelog/ and cmd/desktop/releasenotes/changelog/, all for the same version, and deleted files under their unreleased/ directories.

For an already promoted tree, require the entry filename to match an explicit version argument. Any other dirty state is unrelated work. Stop and report it.

Promotion writes an empty summary, combines each program's fragments into its entry, and deletes those fragments. A program with no fragments still gets an entry, with an empty body. Never create or rename a versioned entry by hand.

3. Curate the entries

Curate each program's entry on its own: its readers are that program's users. Read the promoted entry, its deleted source fragments from HEAD, and recent committed entries for voice and structure. Read the commit history since the last release when a note needs verification. Inspect a focused diff only when the history does not establish the user-visible behavior.

Edit each promoted entry as one release, not as a list of pull requests:

  • write one quoted summary sentence that names the release's main user-facing outcomes;
  • combine bullets that describe the same feature or surface;
  • remove notes for work reverted before this release;
  • update stale bullets so they describe the behavior that will ship;
  • order bullets by user value within Added, Changed, and Fixed;
  • remove empty sections and keep the remaining sections in that order;
  • preserve specific UI labels, shortcuts, config keys, and platform differences;
  • do not mention implementation names, commits, issues, pull requests, or ADRs;
  • do not invent claims that the fragments or repository history do not support.

Follow the release-notes skill's product-copy rules. The summary and each bullet must describe what the user gets in the release. Do not write a work log or a release-process summary.

An entry with an empty body still needs a summary. Say in one sentence that the release has no user-facing changes to that program; do not invent any.

Read each complete entry again after editing. Check that the summary covers the body, near-duplicate bullets are gone, and every sentence still describes the current product.

4. Verify and create the pull request

Run the focused parser tests and the release tool's dry run:

go test ./cmd/hive/releasenotes/... ./cmd/desktop/releasenotes/...
mise run changelog:pr -- --dry-run

Run git diff --check, then read each complete entry and the deleted-fragment list one final time. Fix all failures before continuing. Then run:

mise run changelog:pr

This command creates the fixed release-notes branch, commits only the promoted entries and deleted fragments, pushes the branch, and opens the pull request. The git hooks run the repository checks. Do not duplicate those steps with manual git or gh commands.

If the command says it committed and pushed but gh pr create failed, the promotion is already safe on the release-notes branch. Follow the recovery command from the error exactly and do not promote or commit again. For any other failure, stop without rewriting history or changing branches to hide the problem.

Report the version, summary, branch, commit, pull request URL, and tests that ran.

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.