Agent skill

Gaia Release

by amd in amd/gaia

Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement.

MITAuto-check passedTesting & QA

Install Gaia Release

skills CLI
$ npx skills add amd/gaia --skill gaia-release -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install amd/gaia gaia-release --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/amd/gaia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/gaia-release .claude/skills/gaia-release && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gaia-release
GitHub stars
1.6k
Token cost
~8.8k tokens
SKILL.md length
3,756 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement.

  • Works in 7 steps: Draft release notes (PR-ready) → Open the release PR → Pre-tag verification (the hard-won gate) → …
  • The user asks to cut a release
  • SKILL.md covers Argument parsing, Resume detection (run before…, Hard rules (do not violate) and Phase 1 — Draft release notes…, plus 8 more sections
  • Calls git, gh and pip; reaches github.com

What it does

Gaia Release is an agent skill from amd/gaia. Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement. Also cuts release candidates (vX.Y.Z-rcN) for testing before the final. Use when the user asks to 'cut a release', 'cut a release candidate', 'release vX.Y.Z', 'tag a release', or 'publish v...'. Pauses at every irreversible step for user approval.

Its SKILL.md is about 8.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/discord-announcement.md`).

It sits in Testing & QA. It works with Discord. The repository describes itself as: Build AI agents for your PC. The licence is MIT.

When your agent uses it

  • The user asks to cut a release
  • Cut a release candidate

Example prompts

  • “cut a release”
  • “cut a release candidate”
  • “release vX.Y.Z”
  • “/gaia-release”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Draft release notes (PR-ready)
  2. Open the release PR
  3. Pre-tag verification (the hard-won gate)
  4. 5 — Release candidate (default for minor/major; ask for a patch)
  5. Tag and trigger the publish pipeline
  6. Monitor and approve
  7. Post-release verification + announcement

What it can do on your machine

Read from SKILL.md and the folder at commit 6c3bb5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh
    • pip
    • python
    • curl
    • node
    • npx
    • jq
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gaia Release loads about 8.8k tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 3,756 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from amd/gaia at commit 6c3bb5c, republished under its MIT licence (© amd). 3,756 words, ~8,812 tokens.

Download SKILL.mdSave it as .claude/skills/gaia-release/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
gaia-release
description
Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement. Also cuts release candidates (vX.Y.Z-rcN) for testing before the final. Use when the user asks to 'cut a release', 'cut a release candidate', 'release vX.Y.Z', 'tag a release', or 'publish v...'. Pauses at every irreversible step for user approval.

GAIA Release

Run a GAIA release end-to-end against the amd/gaia repo. The skill is a phased checklist with hard gates — each phase produces a concrete artifact, then stops and asks for confirmation before doing anything irreversible (opening a PR, pushing a tag, rerunning a CI job, posting an announcement).

The pre-tag verification phase exists because the v0.17.4 release uncovered two release-blocking bugs that merged-PR CI did not catch (squash-merge silently reverting version.py, and the AppImage smoke test's circular pip install amd-gaia==<unpublished> dependency). Do not skip it.

Argument parsing

Accept one argument in any of these shapes:

  • 0.17.5 — bare semver
  • v0.17.5 — with the v prefix (the actual tag form)
  • 0.17.5.1 — hotfix-style four-part version (rare; e.g. v0.15.4.1)
  • (no argument) — read __version__ from src/gaia/version.py, then suggest the next-patch bump (e.g. 0.17.4 → propose 0.17.5) and ask the user to confirm or override before continuing.

Normalise to the bare form internally (0.17.5) and the tag form externally (v0.17.5). If the user gives a version that is older than or equal to the current __version__, stop and ask — never silently roll backwards.

Resume detection (run before any phase)

The skill is reinvocation-safe — releases span days, and the user will return mid-flow. Before doing anything else, detect where in the flow we are and skip phases that already landed:

bash
git fetch origin --tags
git checkout main && git pull
NOTES_ON_MAIN=$(git ls-tree -r origin/main --name-only | grep -c "^docs/releases/v<version>\.mdx$" || true)
PR_OPEN=$(gh pr list --repo amd/gaia --search "Release v<version> in:title" --state open --json number --jq '.[0].number' || true)
PR_MERGED=$(gh pr list --repo amd/gaia --search "Release v<version> in:title" --state merged --json number --jq '.[0].number' || true)
TAG_EXISTS=$(git tag --list "v<version>")
RELEASE_EXISTS=$(gh release view "v<version>" --repo amd/gaia --json tagName --jq '.tagName' 2>/dev/null || true)

Resume table:

StateAction
RELEASE_EXISTS matchesRelease already shipped. Skip to Phase 6 (smoke test + announcement) only.
TAG_EXISTS, no releaseTag pushed, publish workflow in progress or failed. Resume at Phase 5 (monitor).
v<version>-rcN tags exist, no final tagA release candidate is out. Resume at Phase 3.5 step 4 (test pass) for the highest N. List them with git tag --list "v<version>-rc*".
PR_MERGED, no tagNotes on main. Resume at Phase 3 (pre-tag verification). Do not re-run Phase 1 — never overwrite merged notes.
PR_OPENPR still open. Tell user "PR #N already open at <url> — waiting for merge." Exit.
NOTES_ON_MAIN ≥ 1 but no PRHalf-finished prior attempt landed notes without a PR (rare). Stop and ask the user before continuing.
Nothing matchesFresh release. Start at Phase 1.

Always announce the resume decision before continuing: "Detected v<version> state: PR #831 merged, no tag yet. Resuming at Phase 3 (pre-tag verification)."

A PR_OPEN or PR_MERGED state may have been produced by the nightly automation rather than a person: .github/workflows/nightly-patch-release.yml drafts Phase 1-2 on its own when a patch release is due, and stops before merge and tag. Treat that PR exactly like a human-drafted one — review the notes, then resume at the phase the table gives.

Hard rules (do not violate)

These map to CLAUDE.md. Re-read them whenever this skill runs.

  • Plain language first, in every artifact — the release notes, PR body, Discord post, and your own between-phase status updates all follow CLAUDE.md → How You Communicate: lead with what a user can now do, layer version numbers, SHAs, and pipeline mechanics underneath. Say each point once — don't restate a highlight in the changelog and again in the announcement.
  • No Claude attribution anywhere — not in PR titles, PR bodies, commit messages (no Co-Authored-By: Claude ... trailer), release notes, code comments, or the Discord announcement.
  • No silent fallbacks — if a validator fails, a step times out, or a workflow run isn't found, stop with an actionable error. Do not retry blindly. Do not "proceed anyway."
  • Release notes are bulleted, plain, and short — see Notes format in Phase 1. Every entry is one bullet, never a prose block; no narrative overview paragraph; no emoji; a hard word budget that is checked, not eyeballed. Sections in order: ## Breaking Changes (only if any), ## What's New, ## Bug Fixes, ## Known Issues (only if any), ## Contributors, ## Full Changelog. Patch releases do not include a pip install block.
  • Match the previous release PR body shape exactly — read the most recent merged Release vX.Y.Z PR (e.g. gh pr list --repo amd/gaia --state merged --search "Release v in:title" --limit 3). Open with # GAIA vX.Y.Z Release Notes (no MDX frontmatter in the PR body), end with a Release checklist section. Style drift here costs review cycles.
  • The version.py bump and its notes land in the same commit. docs.yml and tests/unit/test_docs_json_release.py both resolve docs/releases/v<version>.mdx and the docs.json navbar label from the declared __version__, so bumping ahead of the notes (the old 0.17.3 → "bump to 0.17.4 for development" pattern) turns every later docs and unit run red, not just the release PR. Never bump on its own.
  • Bulletproof commits only — every change made by this skill must satisfy the four criteria in CLAUDE.md (validated, critiqued, scope-clean, no half-finished work) before being committed.
  • Pushing tags is irreversible. Always confirm the SHA the tag will point to and the green status of the pre-tag verification run before git push origin v<version>.
  • Manual approval gate at the publish step is human-only — Claude cannot click the GitHub environment "approve" button. Surface the run URL and stop.

Phase 1 — Draft release notes (PR-ready)

Goal: produce docs/releases/v<version>.mdx matching house style; update navigation and the UI package.json.

Steps
  1. Survey commits since previous tag, then sanity-check the version request against scope.

    bash
    PREV=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
    echo "Previous tag: $PREV"
    git log "$PREV..HEAD" --pretty=format:'%h  %s'
    echo
    echo "Total: $(git log $PREV..HEAD --oneline | wc -l) commits"
    echo "Feat:  $(git log $PREV..HEAD --oneline | grep -cE '^[a-f0-9]+ feat') feat commits"
    echo "Fix:   $(git log $PREV..HEAD --oneline | grep -cE '^[a-f0-9]+ fix')  fix commits"

    Group commits by theme (features, fixes, infra, docs). Extract the PR number from each subject ((#NNN)). For each non-trivial entry, open the linked PR or commit body to get the why — release notes need motivation, not just titles.

    Scope-vs-version sanity check (do not skip): apply this rubric against the requested target version:

    Commit shapeSuggested release shape
    Only fix/docs/chore/ci, no featPatch (vX.Y.Z+1) ✓
    1–2 feat commits, small scopePatch acceptable, mention them as "What's New"
    3+ feat commits, or any commit titled ... vX.Y.Z milestone, default-model swap, breaking change, package layout changeMinor (vX.Y+1.0) — push back
    Removal of a public API, CLI flag deletion, config schema break, version-pin floor raised in a non-additive wayMajor (vX+1.0.0) — push back

    If the requested version doesn't match the rubric, stop and surface the mismatch: "You asked for v<requested> (patch). I see N feat commits since <prev> including <one or two examples> — this looks minor-shaped. Continue as patch, or bump to v<suggested>?" Do not silently proceed.

  2. Read recent release notes for structure only — frontmatter shape, section headings, PR-link format. Take length and tone from Notes format below, not from the files: v0.21.1 is the model at 267 narrative words, while v0.22.0 (1705) and v0.23.0 (1119) were flagged in review as too much text in too-blocky a form — they are the regression this section exists to prevent.

    Patch releases are short. Minor/major releases carry more bullets and a pip install block — the per-bullet shape is identical, only the count grows.

  3. Create docs/releases/v<version>.mdx with this skeleton (adapt to whether it's patch / minor / major):

    mdx
    ---
    title: "v<version>"
    description: "<one plain line: what shipped. Not a pitch.>"
    ---
    
    # GAIA v<version> Release Notes
    
    <Optional single sentence naming what this release is about. Drop it entirely if
    the bullets already say it — that is the common case. Never a paragraph.>
    
    ## Breaking Changes
    
    - **<what changed>** — <what to do instead>. (PR [#NNN](https://github.com/amd/gaia/pull/NNN))
    
    ## What's New
    
    - **<what the user can now do>** — `<gaia command>`. <At most one more sentence, only
      if the title genuinely needs it.> (PRs [#NNN](https://github.com/amd/gaia/pull/NNN), [#NNN](https://github.com/amd/gaia/pull/NNN))
    
    ## Bug Fixes
    
    - **<what was broken>** — <what now happens>. (PR [#NNN](https://github.com/amd/gaia/pull/NNN))
    
    ## Known Issues
    
    - **<what still does not work>** — <workaround, or "tracked in [#NNN](https://github.com/amd/gaia/issues/NNN)">.
    
    ## Contributors
    
    - [@handle](https://github.com/handle) — <what they contributed>. (PR [#NNN](https://github.com/amd/gaia/pull/NNN))
    
    ## Full Changelog
    
    **N commits** since v<previous>:
    
    - `<sha>` — <subject>
    - ...
    
    Full Changelog: [v<previous>...v<version>](https://github.com/amd/gaia/compare/v<previous>...v<version>)

    Omit ## Breaking Changes and ## Known Issues when empty — no "None" placeholder. Drop the --- rules between sections; the headings already separate them.

    Generate the changelog by introspecting git, and escape it for MDX. Do not hand-transcribe subjects, and do not pipe git log output in raw — a subject containing < or { is valid git and invalid MDX, which fails CI's mintlify validate. v0.22.0 hit this on #1791's subject ("fix Mintlify MDX validation (unescaped '<' breaks the docs check)") — the one commit whose subject describes the bug it causes.

    bash
    # Generate the `- `<sha>` — <subject>` lines, escaping the two characters MDX
    # treats as syntax. `\<` and `\{` render as literal `<` / `{` (verified against
    # `mintlify validate`), and shas never contain them, so escaping the whole line
    # is safe. Subjects like "AMD <> SpecificAI" survive correctly.
    git log v<previous>..HEAD --pretty=format:'- `%h` — %s' \
      | sed -e 's/</\\</g' -e 's/{/\\{/g' > /tmp/changelog.txt
    
    # Guard: nothing hazardous may survive.
    grep -nE '(^|[^\\])[<{]' /tmp/changelog.txt && echo "MDX HAZARD — fix before continuing" || echo "changelog MDX-safe"

    Sanity-check the count against git log --oneline | wc -l after writing the file (wc -l under-counts by one when the last line has no trailing newline — v0.22.0 claimed 197 when the real count was 198). The claimed count, the listed lines, and git log must all agree.

    Notes format (apply to every entry — this is the point of the skill). Tone is already governed by CLAUDE.md → How You Communicate — plain language, outcome first, each point made exactly once. Do not restate or soften it here. What is release-notes-specific is the shape:

    • Bullets, not paragraphs. Every entry is one bullet: a bold clause naming what the user can now do, then at most one sentence, then the PR links. No ### prose blocks inside What's New.
    • Say it once. A highlight appears in the bullet list or in the opening sentence, never both. The frontmatter description is not a third copy.
    • Factual, not promotional. State the capability and stop. Banned: emoji, "we're excited to announce", "finally", "blazing(-fast)", "game-changer", "seamless", "powerful", "unlock", "Here's the good stuff", "makes X effortless", "no more crashes", invented benchmarks.
    • Order by what users run. Agents and commands first (gaia hub, gaia email, …); SDK, CI, and refactor work last, or omitted when it has no user-visible effect.
    • Word budget — a cap, not a target. ≤ 350 words for a patch, ≤ 600 for a minor/major, measured from the top down to the first of ## Bug Fixes / ## Known Issues / ## Contributors / ## Full Changelog. Those four are reference lists — their length is set by how many fixes actually shipped, and squeezing them hides work. The cap is on the narrative part, which is what bloats. Over budget means cut entries, not reflow them. Step 8 checks it. (Calibration, same measure: v0.21.1 shipped at 267, v0.22.0 at 1705, v0.23.0 at 1119.)

    Example — one highlight:

    Bad (prose block, promotional, three sentences where one works):

    Triage your inbox from the terminal — gaia email

    Point GAIA at your inbox and it sorts the noise from what needs you: drafts replies to routine mail, flags what's urgent, leaves the rest. Runs locally, so your mail never leaves your machine. Try it: gaia email.

    Good (one bullet, plain, factual):

    • Triage your inbox from the terminal — gaia email sorts mail, drafts replies to routine messages, and flags what needs you. Runs locally. (PR #1234)
  4. Update docs/docs.json:

    • Add releases/v<version> to the Releases tab.
    • Bump the navbar label (e.g. v<previous-version> · Lemonade <previous-lemonade> → v<version> · Lemonade <current-lemonade>). Read src/gaia/version.py for the LEMONADE_VERSION constant — it is the source of truth, and the navbar may be drifted from it (Lemonade bumps land outside release PRs).
  5. Sync the UI package version.

    bash
    node installer/version/bump-ui-version.mjs

    Confirm src/gaia/apps/webui/package.json now reads the new version.

  6. Bump the hub component manifests. The terminal hub and Agent UI publish to the Agent Hub R2 catalog on a version tag, and release_components.yml gates the tag against each manifest — R2 paths are immutable, so publishing under a stale version cannot be undone. A mismatch fails the release, by design.

    bash
    sed -i '' "s/^version: .*/version: <version>/" \
      hub/components/terminal-hub/gaia-agent.yaml \
      hub/components/agent-ui/gaia-agent.yaml     # GNU sed: drop the ''
    grep -H '^version:' hub/components/*/gaia-agent.yaml   # both must read <version>

    Then bump the terminal hub's min_gaia_version to <version> too. It needs daemon host API v1.1, which no release before this one ships — so the release it publishes alongside is its minimum, and release_components.yml refuses to publish it under an older core. Leave agent-ui's alone: it talks to gaia.ui.server, not the daemon control plane.

    bash
    sed -i '' "s/^min_gaia_version: .*/min_gaia_version: \"<version>\"/" \
      hub/components/terminal-hub/gaia-agent.yaml     # GNU sed: drop the ''
    python util/check_component_core_api.py --release-version <version>

    Finally, record what the previous release shipped in RELEASED_DAEMON_API in util/check_component_core_api.py — the guard resolves an already-published version from that table, and a missing row makes it fall back to trusting this tree, which is the drift it exists to catch.

  7. Confirm __version__ is correct.

    bash
    grep -E '^__version__' src/gaia/version.py

    The post-prior-release bump usually handles this, but a squash-merge can revert it silently. If it's wrong, edit it. If it's right but reverted later (see Phase 3), the validator will catch it.

  8. Validate — both checks. Run from the repo's activated venv (source .venv/bin/activate on Linux/macOS, .venv\Scripts\activate on Windows; the bare-python Microsoft Store stub will fail). If you're working from a git worktree without its own venv, run from the parent checkout's venv.

    bash
    python util/validate_release_notes.py docs/releases/v<version>.mdx --tag v<version>
    (cd docs && npx -y mintlify@latest validate)   # the docs.yml `validate` job — MUST also pass
    
    # Word budget from *Notes format* — the narrative part only, not the reference lists.
    # Cap: 350 words for a patch, 600 for a minor/major. Over budget means cut entries.
    awk '/^## (Bug Fixes|Known Issues|Contributors|Full Changelog)/{exit} {print}' \
      docs/releases/v<version>.mdx | wc -w

    Both must exit 0. Fix any errors before continuing. If either fails for reasons unrelated to your changes (missing dep, broken import), stop and surface that — do not silently bypass. validate_release_notes.py prints the first failing check (missing/renamed section, absent compare/ link, tag mismatch) — read that line to localise the fix; it has no --verbose flag.

    validate_release_notes.py passing is not sufficient — it is not an MDX parser. CI's validate job additionally runs mintlify validate from docs/, and v0.22.0 failed it after the notes passed the Python validator (see the escaping rule in step 3). Its error is misleading: an unparseable .mdx surfaces as "releases/v<version>" is referenced in the docs.json navigation but the file does not exist — the file exists, it just never parsed. Pre-existing parse errors under docs/plans/ and docs/superpowers/ are reported but non-fatal; leave them alone.

Gate 1 — show the user the draft

Show the diff (git diff --stat plus the new .mdx file inline). Ask: "Approve these release notes and continue to Phase 2 (open PR)?" Wait for explicit yes. Iterate on tone/wording before continuing — much cheaper than fixing on main.


Phase 2 — Open the release PR

Goal: branch, commit, push, open PR, request review.

Steps
  1. Branch and commit.

    bash
    git checkout -b v<version>-release
    git add docs/releases/v<version>.mdx docs/docs.json src/gaia/version.py \
            src/gaia/apps/webui/package.json src/gaia/apps/webui/package-lock.json \
            hub/components/terminal-hub/gaia-agent.yaml \
            hub/components/agent-ui/gaia-agent.yaml
    git status              # confirm scope-clean — no drive-by edits
    git diff --cached --stat
    git commit -m "Release v<version>"
    git push -u origin v<version>-release

    If git status shows anything outside those five files, stop and ask (bump-ui-version.mjs rewrites package-lock.json too — the prior release commit carries all five). The release PR must be scope-clean.

  2. Read the most recent release PR body to match shape.

    bash
    gh pr list --repo amd/gaia --state merged --search "Release v in:title" --limit 3 \
      --json number,title,body | jq -r '.[0]'

    Use that as the structural template for this PR body — same opening, same checklist, same section order. Do not invent a new shape.

  3. Prepare the PR body file. Build it by stripping the MDX frontmatter from the release notes and appending the Release checklist section copied from the previous release PR.

    bash
    # Strip the YAML frontmatter (everything between the first two '---' lines)
    awk '/^---$/{c++; next} c>=2' docs/releases/v<version>.mdx > /tmp/release-body.md
    
    # Append the Release checklist section from the previous release PR
    PREV_PR=$(gh pr list --repo amd/gaia --state merged --search "Release v in:title" --limit 1 --json number --jq '.[0].number')
    gh pr view "$PREV_PR" --repo amd/gaia --json body --jq '.body' \
      | awk '/^## Release checklist/{found=1} found' \
      >> /tmp/release-body.md
    
    # Sanity-check the body before opening the PR
    head -3 /tmp/release-body.md   # should start with "# GAIA v<version> Release Notes"
    tail -10 /tmp/release-body.md  # should end with the checklist

    If the awk pipeline produces an empty file, the previous PR didn't have a ## Release checklist heading — fall back to copying the entire body and editing it manually before continuing.

  4. Open the PR. Title: Release v<version>. Body: the file you just built.

    bash
    gh pr create --repo amd/gaia \
      --title "Release v<version>" \
      --body-file /tmp/release-body.md \
      --reviewer kovtcharov-amd

    Surface the resulting PR URL.

Gate 2 — wait for merge

Stop. Tell the user: "PR opened at <url>. Waiting for review/merge before pre-tag verification. Re-invoke this skill (or /loop) to continue once merged."

Do not poll, do not auto-merge. Do not push the tag from the un-merged branch.


Phase 3 — Pre-tag verification (the hard-won gate)

Goal: prove the merged commit on main actually builds clean before the tag locks it in. Do not skip this. Two release-blocking bugs in v0.17.4 would have shipped without this step.

Show full SKILL.md (1,807 more words)Show less
Steps
  1. Sync local main to the merged commit, and capture the SHA from the release PR (not just the local HEAD).

    bash
    git checkout main && git pull
    # Re-derive from the release PR — survives gate pauses across sessions/shells.
    RELEASE_PR=$(gh pr list --repo amd/gaia --state merged --search "Release v<version> in:title" --json number --jq '.[0].number')
    MERGED_SHA=$(gh pr view "$RELEASE_PR" --repo amd/gaia --json mergeCommit --jq '.mergeCommit.oid')
    echo "Will tag: $MERGED_SHA (from PR #$RELEASE_PR)"
    test "$(git rev-parse HEAD)" = "$MERGED_SHA" || { echo "Local main ($( git rev-parse HEAD)) does not match merged release PR SHA ($MERGED_SHA) — pull, or main has moved past the release commit"; exit 1; }

    When you reach Gate 3 below, carry both $RELEASE_PR and $MERGED_SHA into the gate question text so Phase 4 can re-derive them from the answer rather than depending on shell variables that don't survive the pause.

  2. Re-verify __version__ post-merge. Squash-merges have silently reverted this. If it doesn't match the target version, stop — open a follow-up PR to fix it before tagging. Never tag a wrong version.

    bash
    grep -E '^__version__' src/gaia/version.py
  3. Re-run the release notes validator on the merged tree.

    bash
    python util/validate_release_notes.py docs/releases/v<version>.mdx --tag v<version>
  4. Trigger Build Installers via workflow_dispatch against the merged SHA. This builds the same artifacts the tag push will build, on the same code, before the tag exists.

    bash
    gh workflow run "Build Installers" --repo amd/gaia --ref main
    sleep 5
    RUN_ID=$(gh run list --repo amd/gaia --workflow "Build Installers" --limit 1 --json databaseId -q '.[0].databaseId')
    echo "Watching run $RUN_ID"
    gh run watch "$RUN_ID" --repo amd/gaia

    AppImage smoke jobs (appimage-distro-matrix, appimage-userns-restricted) are the most flaky — appimage-userns-restricted has a 300s state: ready poll (raised from 90s to cover a first-run model download). On real failure, stop and fix root cause; on transient flake (timeout-only, no logic error), gh run rerun $RUN_ID --failed is acceptable.

Gate 3 — green run on the merged commit

Required before continuing:

  • __version__ matches the target.
  • validate_release_notes.py passes.
  • Build Installers run on the merged commit is green (not yellow, not "mostly green except smoke tests").

Show the user the run URL, the release PR number (#$RELEASE_PR), and the merged SHA ($MERGED_SHA). Ask: "Pre-tag verification green on <sha> (release PR #N). Push tag v<version>?" — the SHA and PR number being in the question text means Phase 4 can re-derive them even if the user resumes in a fresh shell.


Phase 3.5 — Release candidate (default for minor/major; ask for a patch)

Goal: put the exact build users will get in front of a tester before it becomes the default. An RC tag runs the same publish.yml, behind the same approval gate, but stays off every stable channel:

Final v<version>RC v<version>-rcN
GitHub Releasenormal, becomes latestpre-release, never latest
PyPI<version><version>rcN — pip install amd-gaia ignores it without --pre
npm @amd-gaia/agent-uidist-tag latest<version>-rc.N under dist-tag next
Agent Hub R2 (release_components.yml)publishesdoes not run — the catalog has no pre-release channel
Websitestable downloadsa collapsed "Try the release candidate" entry, hidden once the final ships
Context7 refresh, release branch, release-notes botrunskipped
Release notesdocs/releases/v<version>.mdxthe same file — no RC-specific notes

version.py stays <version>; the pipeline stamps the RC suffix from the tag (util/release_tag.py), so the final can be tagged on the RC's commit with no further version bump. The one-step Windows setup and the terminal's .pkg/.deb/.rpm packages are not built for an RC (they come from release_components.yml and need a numeric-only version); the RC carries the desktop app installers, the raw terminal binaries, and the wheel/sdist.

Steps
  1. Dry-run the classification — a malformed tag fails validate before anything builds, but catching it locally is cheaper:

    bash
    python util/release_tag.py classify v<version>-rc1
    python util/validate_release_notes.py docs/releases/v<version>.mdx --tag v<version>-rc1

    IS_RC=true, PEP440_VERSION=<version>rc1, NPM_VERSION=<version>-rc.1. Anything else (-rc.1, rc1 without the dash, -rc0, -beta1) is rejected.

  2. Tag the verified SHA from Gate 3 and push — same confirmation rule as Phase 4: the SHA and the green pre-tag run go in the question.

    bash
    git tag -a v<version>-rc1 <merged-sha> -m "Release candidate v<version>-rc1"
    git rev-list -n1 v<version>-rc1   # MUST equal <merged-sha>
    git push origin v<version>-rc1
  3. Monitor and approve exactly as in Phase 5. The approval gate is the same publish environment. There is no refresh-context7 job to wait for; redeploy-website-rc asks the website to rebuild so the RC entry appears.

  4. Personal test pass on a machine that does not already have the release installed (CLAUDE.md: test from the user's real initial state):

    bash
    pip install amd-gaia==<version>rc1 && gaia -v      # must print <version>rc1
    npm view @amd-gaia/agent-ui dist-tags                # latest unchanged, next = <version>-rc.1
    gh release view v<version>-rc1 --repo amd/gaia       # Pre-release, installers attached

    Then install the desktop app from the pre-release and walk the golden paths the release notes advertise.

  5. Problems → fix forward, then -rc2. Land the fix on main through a normal PR, re-run Phase 3 on the new merged SHA, and tag v<version>-rc2 from step 2. Never move or delete an RC tag — each one is a published version on PyPI and npm.

Gate 3.5 — RC passed

Ask: "v<version>-rcN passed testing on <sha>. Tag the final v<version> on that same SHA?" Phase 4 then tags that SHA (re-derive it with git rev-list -n1 v<version>-rcN), not necessarily the release PR's merge commit.


Phase 4 — Tag and trigger the publish pipeline

Goal: push the annotated tag; do nothing else.

Steps
  1. Confirm you are on main at the verified SHA. Re-derive $MERGED_SHA from the release PR (the SHA from Gate 3) — do not trust shell state across the gate pause.

    bash
    git checkout main
    git pull
    # Re-derive from the release PR — the PR number was in the Gate 3 question.
    MERGED_SHA=$(gh pr view <release-pr-number> --repo amd/gaia --json mergeCommit --jq '.mergeCommit.oid')
    test "$(git rev-parse HEAD)" = "$MERGED_SHA" || { echo "main moved past verified SHA $MERGED_SHA — re-verify (Phase 3) before tagging"; exit 1; }
  2. Tag and push.

    bash
    # Annotated, on the verified SHA — every prior release tag is annotated ("Release vX.Y.Z").
    # A bare `git tag v<version>` creates a lightweight tag and breaks convention.
    git tag -a v<version> <merged-sha> -m "Release v<version>"
    git rev-list -n1 v<version>   # MUST equal <merged-sha> before pushing
    git push origin v<version>
  3. Confirm the publish workflow picked it up.

    bash
    sleep 10
    gh run list --repo amd/gaia --workflow publish.yml --limit 3

    The flow is: validate → build (build-pypi + build-npm + build-desktop-installers) → approve-publish (manual gate) → publish (publish-pypi + publish-npm) → post-publish-smoke → github-release → refresh-context7. Surface the run URL.


Phase 5 — Monitor and approve

Goal: watch the run, distinguish flake from real failure, surface the manual approval gate to the human.

Steps
  1. Watch the run.

    bash
    gh run watch <run-id> --repo amd/gaia
  2. On flake (timeout-only, no logic error in the failing step's logs): gh run rerun <run-id> --failed is non-destructive — re-runs only failed jobs and their downstream. Do not rerun the whole workflow; that wastes the publish budget.

  3. On real failure (logic error, missing artifact, validator failure that wasn't there before): stop. Do not push past a red build. Do not delete and re-tag — that path is messy. Surface the failing step + log to the user.

  4. Manual approval gate — when the run reaches the approve-publish job (gated on the publish GitHub environment), surface the URL to the user. Tell them: "Manual approval required at <url>. Claude cannot click this — please approve in browser when ready." Then wait.

  5. After approval, PyPI + npm + GitHub Release jobs run in parallel. Watch to completion.

  6. refresh-context7 is the terminal job and may legitimately fail — that is not a release failure. This job runs after PyPI, npm, GitHub Release, and the desktop installers are already published. Context7's API rejects refresh requests inside a short cooldown window (observed: ~3–6 days between releases) with HTTP 429 (rate-limited); the workflow tolerates 429 and treats any other status as a hard failure. If the job is red, the release is still live. Open the job log, read the Response body: block between the ::stop-commands:: markers, and either accept the cooldown reason or file a follow-up about a new rejection cause. Do not delete or re-tag — see the recovery guidance in the Notes section below.

  7. Never add set -x or curl -v to the refresh-context7 step to "debug" a failure. GHA only masks the verbatim secret value; curl -v prints the Authorization: Bearer <token> header, which is a transformed form that GHA's masking does not catch. Read the captured response body instead — it carries the same diagnostic signal without the leak risk.


Phase 6 — Post-release verification + announcement

Goal: confirm artifacts are live, draft the Discord announcement.

Steps
  1. Smoke test the published wheel.

    bash
    pip install --upgrade amd-gaia==<version>
    gaia -v

    Must report <version>. If it reports the previous version, the squash-merge version.py regression slipped through — escalate immediately.

  2. Verify the GitHub release page.

    bash
    gh release view v<version> --repo amd/gaia

    Required artifacts: .whl, .tar.gz, .deb, .AppImage, .dmg, .exe, and the latest*.yml files for the Electron auto-updater. If any are missing, the corresponding build job didn't run or didn't upload — investigate.

  3. Draft the Discord announcement. Read the just-shipped release notes (docs/releases/v<version>.mdx) to populate the highlight list — reuse the What's New bullets near-verbatim plus any Bug Fix worth surfacing. Same Notes format rules apply: bullets, plain, factual, no emoji.

    The template and format rules live in reference/discord-announcement.md — read it and copy the template verbatim. Every element in it is load-bearing (the @gaia role mention, the backticked version, the fenced install block, the fixed boilerplate sentences); do not improvise the shape.

Gate 6 — present, do not auto-post

Show the user the smoke-test output, the artifact list, and the drafted Discord announcement in a fenced markdown block. Ask: "Post the announcement to Discord?" Wait for explicit yes — Discord posting is human-only (Claude does not have Discord access here, and announcements are visible to all users).


Output between phases

After every phase, output:

  1. Phase N complete.
  2. What changed / what was verified (1–3 bullets).
  3. Concrete artifact (URL, SHA, file path, or fenced draft).
  4. Gate question (always ends with ?, names the next destructive action).

Do not bundle two phases into one user prompt. The gates exist for review.

Notes

  • The argument-passing convention is the target tag, not the previous tag. If the user says "release v0.17.5", that is what gets created — the previous tag is derived via git tag --sort=-v:refname | head -1.
  • Hotfix releases (v0.15.4.1) follow the same flow; the validate_release_notes.py check accepts the four-part form.
  • Release candidates are v<version>-rcN only (Phase 3.5). There is no RC form of a four-part hotfix tag.
  • Minor/major releases (v0.18.0, v1.0.0) need a richer notes structure — a "Highlights" block, the pip install instructions, and migration notes if breaking. The skeleton above is patch-shaped; expand for non-patch releases by mirroring the prior minor/major release notes.
  • If the publish run fails partway through (e.g. PyPI publishes but npm doesn't), do not delete the tag and start over. Resolve the failing job, rerun only that job (gh run rerun <run-id> --failed), and let the rest of the pipeline complete idempotently. The tag is the source of truth — preserve it.

© amd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/gaia-release of amd/gaia.

  • SKILL.md
  • reference/discord-announcement.md

Open the folder on GitHubat commit 6c3bb5c

Compare with similar skills

Gaia Release next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gaia Release compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gaia Release this skillamd/gaia1.6k—~8.8kAutomated safety check: PassMIT
Async Test And Doc Syncdiscord-php/DiscordPHP1.1k—~3.4kAutomated safety check: NotesMIT
Nexu E2E Testnexu-io/nexu3.3k—~1.7kAutomated safety check: PassMIT
Openclaw Parallels SmokeSafeAI-Lab-X/ClawKeeper1k—~1.1kAutomated safety check: PassNone
Agent Browser CLIvercel-labs/agent-browser44k24 repos~864Automated safety check: PassApache-2.0
Electron App Automationvercel-labs/agent-browser44k5 repos~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Async Test And Doc Sync

    discord-php/DiscordPHP

    Maintain test and documentation alignment — PHPUnit tests, async testing patterns, PHPDoc contracts, guide pages, and documentation workflow.

    1.1k GitHub stars~3.4k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Nexu E2E Test

    nexu-io/nexu

    A skill your agent uses when verifying OpenClaw gateway fixes end-to-end, testing skill loading after restart, or running integration tests against the local Nexu+OpenClaw stack.

    3.3k GitHub stars~1.7k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Openclaw Parallels Smoke

    SafeAI-Lab-X/ClawKeeper

    End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests.

    1k GitHub stars~1.1k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Agent Browser CLI

    vercel-labs/agent-browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking…

    44k GitHub starsUsed in 24 repos~864 tokens
    Productivity & AutomationAuto-check passed
  • Electron App Automation

    vercel-labs/agent-browser

    Official

    Automates Electron desktop apps such as VS Code, Slack or Discord by connecting agent-browser to their Chrome DevTools Protocol port.

    44k GitHub starsUsed in 5 repos~1.7k tokens
    Productivity & AutomationAuto-check passed
  • Coding Agent

    TermiX-official/cryptoclaw

    Delegate coding tasks to Codex, Claude Code, or Pi agents via background process.

    100 GitHub starsUsed in 8 repos~2.7k tokens
    DevelopmentAuto-check passed

More from amd/gaia

All 44 skills in this repo
  • Adds a release eval scorecard to a GAIA hub agent by writing a harness adapter, running a real eval, and wiring the result into the agent's README and release gate.

    1.6k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Walks through releasing a GAIA sidecar agent as a frozen binary plus npm client through the tag-triggered Agent Hub CI pipeline, with a human gate before publishing.

    1.6k GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Mines local Claude Code session transcripts with a deterministic Python pipeline to show what the agent is actually used for, how often it fails and what it costs.

    1.6k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Benchmarks AMD's GAIA agent against Claude Code and across models on quality, honesty, steps, tokens, time and real cost, using gaia eval tasks.

    1.6k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Guides safe code changes by finding the right file with grep or semantic search, reading before editing, reproducing bugs first, and proving a fix with a real test run.

    1.6k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Walks through scaffolding, writing and testing a new GAIA agent as a Python class with the SDK, from the base Agent subclass to registered tool methods.

    1.6k GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Works with

Questions about Gaia Release

What does Gaia Release do?

Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement. Gaia Release is an agent skill from amd/gaia. Cut a GAIA release end-to-end: draft notes, open release PR, run pre-tag verification, push the tag, monitor the publish pipeline, and produce the Discord announcement.

When should I use Gaia Release?

Gaia Release fits situations like: the user asks to cut a release; cut a release candidate.

How do I install Gaia Release in Claude Code?

Run `npx skills add amd/gaia --skill gaia-release -a claude-code`. Or copy the skill folder (.claude/skills/gaia-release in amd/gaia) into .claude/skills/gaia-release in your project. Claude Code loads it when a task matches its description.

How do I install Gaia Release in Codex?

Run `npx skills add amd/gaia --skill gaia-release -a codex`. Or copy the skill folder (.claude/skills/gaia-release in amd/gaia) into .agents/skills/gaia-release in your project. Codex loads it when a task matches its description.

Can I use Gaia Release in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amd/gaia --skill gaia-release -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gaia-release, .gemini/skills/gaia-release, .github/skills/gaia-release and .opencode/skills/gaia-release in your project.

What does Gaia Release need to run?

Going by SKILL.md and its folder, Gaia Release needs the command-line tools its instructions call (git, gh, pip, python, curl and node). Our summary lists: Python 3.

Does Gaia Release access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Gaia Release safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gaia Release use?

Gaia Release is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gaia Release use?

About 8.8k tokens (SKILL.md is roughly 35k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gaia Release?

Skills that share tags, products or a category with Gaia Release: Async Test And Doc Sync (discord-php/DiscordPHP, 1.1k stars), Nexu E2E Test (nexu-io/nexu, 3.3k stars), Openclaw Parallels Smoke (SafeAI-Lab-X/ClawKeeper, 1k stars) and Agent Browser CLI (vercel-labs/agent-browser, 44k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gaia Release?

amd (a GitHub organization) maintains it in amd/gaia, which has 1,580 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 6, 2026.

Source: amd/gaia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.