agentleFS
atuinshatuinsh/atuin/.agents/skills/release/SKILL.md

release

Skill33k starsChanged 14 days agoMITView on GitHub

Orchestrate a multi-step Atuin CLI release — version bumping, changelog generation, PR creation, tagging, and crates.io publishing. Invoke with /release or /release <version>.

  • Deletes or force-pushes
  • Commits and pushes

193 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about atuinsh/atuin

The biggest 5 of 120 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 120

Talked about on GitHub, Bluesky, YouTube, Hacker News and the web (120 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 47

42 more on Bluesky

On YouTube · 19

14 more on YouTube

On Hacker News · 2

On the web · 2

Used with

Projects with it also use create-agent-adapter, changelog-style 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.
  • MicrosoftSkill

    create-agent-adapter

    Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

    Also in 6 projects that use this

  • GrinvSkill

    changelog-style

    Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

    Also in 4 projects that use this

  • GrinvSkill

    docs-consistency-check

    Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    component-release

    Prepares and validates GPT-RAG MCP component releases. Use for versions, dependency locks, changelog entries, release branches, tags, GitHub Releases, and platform pin coordination.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps AI Landing Zone contributor, user, and operator documentation aligned with shipped Bicep behavior. Use for parameters, defaults, outputs, topology, deployment flow, operations, or releases.

    Also in 8 projects that use this

  • m13vSkill

    test-release

    Use when the user says "test the release", "smoke test", "verify the build works", "test staging", "test the new version", or after promoting a release to staging/beta/stable. Smoke-tests the shipped Fazm production app via Sparkle auto-update on local + MacStadium, sends test queries via distributed notifications, checks logs. Does NOT build anything.

    Also in 3 projects that use this

  • +3 more from Grinv

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. 0 are common, 15 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 10

    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:

    Verify these tools are installed: git, cargo, gh, git-cliff.

    line 27
  2. Very specific:

    Use command -v for each. If any are missing, report which ones and stop.

    line 31
  3. Distinctive:

    After determining the version:

    line 43
  4. Very specific:

    If it contains a - (e.g. 18.15.0-beta.1), it is a prerelease.

    line 44
  5. Distinctive:

    Checkpoint: Ask the user to confirm before proceeding.

    line 47
  6. Distinctive:

    If both come back empty, say so and continue to Step 3.

    line 73
  7. Distinctive:

    If either is non-empty:

    line 82
  8. Distinctive:

    Checkpoint: Use AskUserQuestion (multiSelect) to ask which of these PRs should in fact be merged at their labeled time.

    line 86
  9. Very specific:

    Never merge an after-release PR early to get it into the release, and never reclassify a PR from one label to the other.

    line 100
  10. Very specific:

    ALL subsequent Bash commands run from $WORKDIR.

    line 117
  11. Very specific:

    Create a release branch named after the version (no v prefix): git checkout -b <VERSION>

    line 123
  12. Very specific:

    Run cargo check to update Cargo.lock.

    line 135
  13. Very specific:

    Verify the workspace version was actually updated by re-reading it from Cargo.toml.

    line 143
  14. Very specific:

    If an existing ## [unreleased] or ## [Unreleased] section exists,

    line 167
  15. Distinctive:

    Checkpoint: Read and display the new changelog entry to the user.

    line 173
  16. Distinctive:

    Ask if they want any edits.

    line 174
  17. Distinctive:

    When the PR shows as merged, proceed to the next step.

    line 228
  18. Distinctive:

    Check it is still mergeable and its checks are green:

    line 241
  19. Distinctive:

    If it is not mergeable, or checks are red, report that and ask the user how to proceed.

    line 246
  20. Distinctive:

    Wait for the release workflow the tag just triggered:

    line 289
  21. Distinctive:

    If the release is missing, is still a draft, or has no assets, stop.

    line 304
  22. Very specific:

    If yes, publish every crate in the workspace using --no-verify (the code already passed CI, and verification fails when crates.io hasn't …

    line 342
  23. Distinctive:

    Do not keep a hardcoded list of crates — discover them dynamically so new crates are never missed:

    line 346
  24. Distinctive:

    If it fails with "already uploaded", report it as a skip (not an error) — some crates are versioned independently and may already be …

    line 362
  25. Distinctive:

    If it fails for any other reason, stop and report the error.

    line 366

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

Atuin CLI Release

You are orchestrating a release of the Atuin CLI. Follow the steps below in order, pausing at each checkpoint for user confirmation. Do not skip steps or combine them.

Current State

  • Workspace version: !sed -n '/^\[workspace\.package\]/,/^\[/s/^version = "\(.*\)"/\1/p' Cargo.toml
  • Latest tag: !git describe --tags --abbrev=0 2>/dev/null || echo "none"
  • Suggested next version: !git-cliff --bumped-version 2>/dev/null | sed 's/^v//' || echo "(unknown)"

Step 1 — Check Dependencies

Verify these tools are installed: git, cargo, gh, git-cliff.

On macOS, also verify gsed. On Linux, sed is already GNU sed.

Use command -v for each. If any are missing, report which ones and stop.

Set the SED variable for later use: if on macOS, SED=gsed; on Linux, SED=sed.


Step 2 — Determine Version

The target version may be provided as $ARGUMENTS. If it's empty, use AskUserQuestion to ask for the new version (show the current state above for reference).

After determining the version:

  • If it contains a - (e.g. 18.15.0-beta.1), it is a prerelease. Note this — it affects changelog and publish behavior later.
  • Show the user: current → new and whether it's a prerelease.
  • Checkpoint: Ask the user to confirm before proceeding.

Step 2.5 — Survey Release-Labeled PRs

Two labels mark PRs whose merge has to be timed around the release. They are typically PRs touching docs/ or install.sh — changes that deploy on merge to main rather than shipping inside the release artifact.

LabelMerged atIn the tag & artifact?
merge-immediately-before-releaseStep 7.5 — after the prep PR merges, before the tagYes
merge-immediately-after-releaseStep 8.5 — after the release workflow uploads assetsNo

Check both:

gh pr list --repo atuinsh/atuin --state open \
    --label merge-immediately-before-release \
    --json number,title,url
gh pr list --repo atuinsh/atuin --state open \
    --label merge-immediately-after-release \
    --json number,title,url

If both come back empty, say so and continue to Step 3. No checkpoint needed.

The two labels are mutually exclusive: they name opposite sides of the tag. If a PR number comes back in both lists, that is a labelling mistake — the two queries are independent, so it would otherwise be approved twice, merged at Step 7.5, then merged again at Step 8.5 against an already-closed PR. Stop and ask the user which single timing applies, then treat it as carrying only that label for the rest of the release. Do not guess, and do not carry it into both steps.

If either is non-empty:

  1. Show the user every PR found, grouped by label, with its number, title, and the merge point from the table above.
  2. Checkpoint: Use AskUserQuestion (multiSelect) to ask which of these PRs should in fact be merged at their labeled time.
  3. Record the approved set — it carries to Step 7.5 and Step 8.5. A PR the user declines is left alone for the remainder of the release: don't merge it, don't raise it again.

Take each label at face value. It records the PR author's decision about timing; it is not a suggestion for you to re-evaluate:

  • An after-release PR is not in the tag and not in the release artifact. That is the intended outcome, not a problem to solve. The label is for changes that deploy the moment they merge, so artifact inclusion is irrelevant to them. An author who needed the change in the artifact would have labeled it merge-immediately-before-release.
  • Never merge an after-release PR early to get it into the release, and never reclassify a PR from one label to the other.

Step 3 — Set Up Working Directory

Clone a fresh copy into a temp directory:

WORKDIR=$(mktemp -d)
git clone git@github.com:atuinsh/atuin.git "$WORKDIR"

Print the working directory path so the user can find it if needed.

NOTE: ALL subsequent Bash commands run from $WORKDIR.


Step 4 — Create Branch & Update Versions

  1. Create a release branch named after the version (no v prefix): git checkout -b <VERSION>
  2. Replace the old version with the new one in all Cargo.toml files. Escape dots in the old version so sed treats them literally:

    VERSION_PATTERN="${OLD_VERSION//./\\.}"
    find . -type f -name 'Cargo.toml' -not -path './.git/*' \
        -exec $SED -i "s/$VERSION_PATTERN/$NEW_VERSION/g" {} \;
  3. Run cargo check to update Cargo.lock.
  4. Show git diff --stat and the version-related lines from the diff:
    git diff --unified=0 -- '*.toml' | grep '^\+.*version' | grep -vF '+++'
    Remember to use macOS grep arguments on macOS systems.
  5. Verify the workspace version was actually updated by re-reading it from Cargo.toml.
  6. Checkpoint: Show the diff summary and ask the user to confirm the version changes look correct.

Step 5 — Update Changelog

The changelog strategy differs for prereleases vs stable releases:

  • Prerelease: Maintain a running ## [unreleased] section containing all changes since the last stable release. Use: git-cliff --unreleased --strip all (cliff.toml's ignore_tags already ignores beta/alpha tags, so --unreleased spans back to the last stable release automatically.)
  • Stable release: Generate a versioned entry that replaces the [unreleased] section. Use: git-cliff --unreleased --tag "v<VERSION>" --strip all

Then update CHANGELOG.md:

  1. If an existing ## [unreleased] or ## [Unreleased] section exists, remove it entirely (the heading and all content up to the next ## heading).
  2. Insert the new entry before the first existing ## version heading.
  3. Checkpoint: Read and display the new changelog entry to the user. Ask if they want any edits. If so, make the requested changes using the Edit tool. Repeat until they're satisfied.

Step 5.5 — Update Contributors

Regenerate CONTRIBUTORS, which atuin contributors prints:

git log --format='%aN <%aE>' \
    | grep -vE '\[bot\]|^atuin-bot ' \
    | LC_ALL=C sort -uf > CONTRIBUTORS

LC_ALL=C keeps the order the same on macOS and Linux. Tell the user how many names were added (git diff --numstat -- CONTRIBUTORS).


Step 6 — Commit & Push

Stage all changes and commit:

chore(release): prepare for release <VERSION>

Push the branch with --set-upstream origin.


Step 7 — Create PR & Wait for Merge

Create the PR

Extract the changelog entry body (everything between the new ## heading and the next one) for the PR description.

For prereleases, the heading to match is ## [unreleased]. For stable releases, it's ## <VERSION> (escape dots in the awk pattern).

Create the PR:

gh pr create \
    --title "chore(release): prepare for release <VERSION>" \
    --body "<body with changelog>" \
    --repo atuinsh/atuin \
    --draft

Show the PR URL to the user. Tell the user to go review the PR, mark it ready, and comment /merge on it.

When the PR shows as merged, proceed to the next step.


Step 7.5 — Merge merge-immediately-before-release PRs

Skip to Step 8 unless Step 2.5 recorded approved PRs with this label.

The prep PR has merged and the tag does not exist yet. This is the only window in which these PRs land in v<VERSION> and its artifacts.

For each approved PR:

  1. Check it is still mergeable and its checks are green:
    gh pr view <N> --repo atuinsh/atuin \
        --json mergeable,mergeStateStatus,statusCheckRollup
    If it is not mergeable, or checks are red, report that and ask the user how to proceed. Do not force it through.
  2. Checkpoint: Show the PR number and title and ask the user to confirm this specific merge. Step 2.5 approved the timing; this confirms merging now.
  3. Merge, then wait until the PR shows as merged:
    gh pr comment <N> --repo atuinsh/atuin --body /merge
    gh pr view <N> --repo atuinsh/atuin --json state --jq .state  # until MERGED

These commits land in the tag but are absent from the changelog generated in Step 5, which was cut before they merged. That is expected — do not regenerate the changelog to include them.


Step 8 — Tag Release

Back in the working directory:

git checkout main
git pull
git tag "v<VERSION>"
git push --tags

Tell the user the tag was pushed and the release CI workflow has been triggered.


Step 8.5 — Merge merge-immediately-after-release PRs

Skip to Step 9 unless Step 2.5 recorded approved PRs with this label.

"After the release" means after the release workflow has finished and the assets exist — not merely after the tag was pushed. These PRs deploy the instant they merge, so a docs change announcing the new version must not go live while the release it points at is still building.

  1. Wait for the release workflow the tag just triggered:
    gh run list --repo atuinsh/atuin --workflow release.yml \
        --branch "v<VERSION>" --limit 1
    gh run watch <run-id> --repo atuinsh/atuin --exit-status
    --exit-status is what makes a failed run exit non-zero. Without it gh run watch prints the failure but still exits 0, and a broken release sails through into the merges below. If it exits non-zero, stop here — do not go on to the release lookup.
  2. Confirm the release exists and has assets attached:
    gh release view "v<VERSION>" --repo atuinsh/atuin --json assets,isDraft
    If the release is missing, is still a draft, or has no assets, stop. Report it and merge nothing — these PRs keep until the release is actually out. A release object alone is not evidence: it may predate this run or have been left half-built by a failed workflow. What clears this gate is a non-draft release with assets attached.
  3. Re-check that each approved PR is still mergeable and its checks are green:
    gh pr view <N> --repo atuinsh/atuin \
        --json mergeable,mergeStateStatus,statusCheckRollup
    Step 2.5 surveyed these PRs before the release was even built, so its findings are now many minutes stale — long enough for a PR to pick up a conflict or a red check. If it is not mergeable, or checks are red, report that and ask the user how to proceed. Do not force it through. These PRs deploy the instant they merge, so there is no CI gate downstream to catch a bad one.
  4. Checkpoint: For each approved PR, show its number and title and ask the user to confirm this specific merge. Step 2.5 approved the timing; this confirms merging now.
  5. Merge each PR the user confirms:
    gh pr comment <N> --repo atuinsh/atuin --body /merge

Merging a docs/ change here fires trigger-docs-deploy.yml and the docs go out immediately. That is the whole point of the label.


Step 9 — Publish to crates.io

If this is a prerelease, skip this step entirely and tell the user.

If this is a stable release, ask the user whether to publish.

If yes, publish every crate in the workspace using --no-verify (the code already passed CI, and verification fails when crates.io hasn't indexed a freshly-published dependency yet).

Do not keep a hardcoded list of crates — discover them dynamically so new crates are never missed:

ls crates/

Publish each one from crates/<name>:

cargo publish --no-verify 2>&1

Publish in dependency order: if a publish fails because a dependency isn't on crates.io yet (e.g. "failed to select a version for the requirement"), publish that dependency first, then retry the failed crate.

If it fails with "already uploaded", report it as a skip (not an error) — some crates are versioned independently and may already be published at their current version.

If it fails for any other reason, stop and report the error.


Completion

Summarize what was done:

  • Version released
  • PR URL
  • Tag name
  • Which label-timed PRs were merged, and which the user declined (if any)
  • Which crates were published (if any)
  • Working directory path and how to clean it up (rm -rf)

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.