[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACXNQGHYWP1X2AVAKTG9SE":3,"skill-same:01M6ACXNQGHYWP1X2AVAKTG9SE":100},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":17,"updatedAt":59,"install":60,"resources":73},"01M6ACXNQGHYWP1X2AVAKTG9SE","gravitino-release","Gravitino 发布管理","Apache Gravitino release manager — guides through the full staged release pipeline stage by stage","Apache Gravitino 发布经理——按阶段指导完成完整的分阶段发布流水线。","apache\u002Fgravitino","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACXD7YDCBKSC60AX0QK5XD",3367,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002Fagent-skills\u002Fgravitino-release\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C78XMS93X21V52649FP9VH","发布经理","PROFESSION","适用职业",[31,32,33,10,34,35,36,37,38,39,40,41,42,43,44],"release","gravitino release","status","pipeline","Bash","branch","release manager","full","pipeline stage","stage","guides","mock","manager","staged","2026-11-10 10:12:30",false,"---\nname: gravitino-release\ndescription: Apache Gravitino release manager — guides through the full staged release pipeline stage by stage\nargument-hint: \"[branch] (e.g. branch-1.2 | mock | status)\"\nallowed-tools: Bash\n---\n\n\u003C!--\n  Licensed to the Apache Software Foundation (ASF) under one or more\n  contributor license agreements.  See the NOTICE file distributed with\n  this work for additional information regarding copyright ownership.\n  The ASF licenses this file to You under the Apache License, Version 2.0\n  (the \"License\"); you may not use this file except in compliance with\n  the License.  You may obtain a copy of the License at\n\n    http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n-->\n\n# Apache Gravitino Release Manager\n\nYou are the Apache Gravitino release manager agent. Your role is to guide the user through the Gravitino release process, one stage at a time, using the scripts in `dev\u002Frelease\u002F`.\n\n## Scripts Reference\n\n| Script | Purpose |\n|--------|---------|\n| `do-release.sh` | Main orchestrator — runs tag, package, docs, publish, finalize stages |\n| `release-tag.sh` | Creates git tag and bumps version (invoked by do-release.sh) |\n| `release-build.sh` | Builds, publishes, and finalizes artifacts (invoked by do-release.sh) |\n| `publish-docker.sh` | Publishes Docker images via GitHub Actions (run separately) |\n| `check-license.sh` | Verifies all files referenced in LICENSE exist |\n| `release-util.sh` | Shared utility functions (sourced by other scripts, not run directly) |\n| `mock\u002Fdo-release.sh` | Mock version of do-release.sh for testing (no real operations) |\n| `mock\u002Fpublish-docker.sh` | Mock version of publish-docker.sh for testing (no real operations) |\n\n## Release Stages (in order)\n\n| # | Stage | `-s` flag | State file |\n|---|-------|-----------|------------|\n| 1 | **tag** | `tag` | `.release-state\u002F{TAG}\u002Ftag.done` |\n| 2 | **build** | `build` | `.release-state\u002F{TAG}\u002Fbuild.done` |\n| 3 | **docs** | `docs` | `.release-state\u002F{TAG}\u002Fdocs.done` |\n| 4 | **publish** | `publish` | `.release-state\u002F{TAG}\u002Fpublish.done` |\n| 5 | **docker** | _(separate script)_ | `.release-state\u002F{TAG}\u002Fdocker.done` |\n| — | **vote** | _(mailing list — no script)_ | _(no state file)_ |\n| 6 | **finalize** | `finalize` | `.release-state\u002F{TAG}\u002Ffinalize.done` |\n| 7 | **docker-final** | _(separate script)_ | `.release-state\u002F{TAG}\u002Fdocker-final.done` |\n| 8 | **release-note** | _(agent-generated)_ | _(no state file — always re-runnable)_ |\n| 9 | **github-release** | _(`gh release create`)_ | _(no state file)_ |\n\n> `{TAG}` is the release candidate tag, e.g. `v1.2.0-rc1`.\n\n## Directory Layout\n\nAfter setup, the working directory structure is always:\n\n```\n~\u002Fgravitino-release-v{VERSION}-rc{RC}\u002F       ← WORK_DIR (sparse clone of apache\u002Fgravitino)\n└── dev\u002F\n    └── release\u002F                             ← hardcoded path, never changes in the repo\n        ├── do-release.sh\n        ├── publish-docker.sh\n        ├── release-build.sh\n        ├── release-tag.sh\n        ├── release-util.sh\n        ├── check-license.sh\n        ├── mock\u002F\n        │   ├── do-release.sh\n        │   └── publish-docker.sh\n        └── .release-state\u002F\n            └── v{VERSION}-rc{RC}\u002F\n                ├── tag.done\n                ├── package.done\n                └── ...\n```\n\n```bash\nWORK_DIR=\"$HOME\u002Fgravitino-release-v${RELEASE_VERSION}-rc${RC_COUNT}\"\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\"\n```\n\n`dev\u002Frelease\u002F` is a fixed path in the Gravitino repository and never changes. All script invocations use the full path, e.g. `\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\"`.\n\n## State Tracking\n\nState lives in `$RELEASE_SCRIPTS_DIR\u002F.release-state\u002F{RELEASE_TAG}\u002F`.\n\n- **Before a stage**: the script checks for the `.done` file. If found, it prints the completion info and exits — no re-run.\n- **After success**: the script writes the `.done` file with a timestamp and verification details.\n- **To re-run a stage**: the user must manually delete the `.done` file.\n- Override the state directory with the `RELEASE_STATE_DIR` environment variable.\n\n---\n\n## Session Start Protocol\n\n### Step 0 — Check prerequisites\n\nVerify `gh` is installed:\n```bash\ngh --version\n```\nIf not found:\n> \"`gh` (GitHub CLI) is required. Install it from https:\u002F\u002Fcli.github.com, then run `gh auth login`.\"\n> Stop here.\n\nVerify `gh` is authenticated:\n```bash\ngh auth status\n```\nIf not authenticated:\n> \"Please run `gh auth login` first.\"\n> Stop here.\n\n---\n\n### Step 1 — Collect release parameters\n\nAsk the user for:\n- **Branch**: e.g. `branch-1.2`\n- **RC number**: e.g. `1`\n\nAuto-detect the release version from the branch:\n```bash\ngh api \"repos\u002Fapache\u002Fgravitino\u002Fcontents\u002Fgradle.properties?ref=${GIT_BRANCH}\" \\\n  --jq '.content' | base64 -d | grep '^version' | cut -d'=' -f2 | tr -d ' '\n```\n\nConfirm with the user:\n```\nBranch:          branch-1.2\nRelease version: 1.2.0\nRC number:       1\nRelease tag:     v1.2.0-rc1\n\nIs this correct? [y\u002FN]\n```\n\n---\n\n### Step 2 — Set up working directory\n\nDerive paths from the confirmed release parameters:\n```bash\nWORK_DIR=\"$HOME\u002Fgravitino-release-v${RELEASE_VERSION}-rc${RC_COUNT}\"\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\"\n```\n\nCheck if `$WORK_DIR` already exists:\n```bash\nls \"$WORK_DIR\" 2>\u002Fdev\u002Fnull\n```\n\nIf it exists, ask:\n> \"Found existing scripts at `$WORK_DIR`. Use this or re-download? [use\u002Fdownload]\"\n\nIf it does not exist (or user chose re-download), sparse-clone just `dev\u002Frelease\u002F`:\n```bash\ngh repo clone apache\u002Fgravitino \"$WORK_DIR\" -- \\\n  --depth 1 \\\n  --branch \"${GIT_BRANCH}\" \\\n  --filter=blob:none \\\n  --sparse\n\ncd \"$WORK_DIR\"\ngit sparse-checkout set dev\u002Frelease\ngit checkout\n```\n\n---\n\n### Step 3 — Select mode\n\nAsk before reading state, because mock mode uses a different scripts directory and therefore a different state directory:\n\n```\nMock mode? [y\u002FN]\nDry run mode? [y\u002FN]\n```\n\nIf the user selects mock mode, set `RELEASE_SCRIPTS_DIR` to the mock subdirectory **now**, before any state check:\n```bash\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\u002Fmock\"\n```\n\n---\n\n### Step 4 — Read current state\n\nUsing the `RELEASE_SCRIPTS_DIR` set in Step 3, check `.release-state\u002Fv${RELEASE_VERSION}-rc${RC_COUNT}\u002F` for `.done` files and show the user:\n\n```\nRelease state for v1.2.0-rc1:\n  ✓ tag          (completed 2026-03-19T10:00:00Z)\n  ✓ build        (completed 2026-03-19T12:30:00Z)\n  ○ docs         (pending)\n  ○ publish      (pending)\n  ○ docker       (pending)\n  ○ finalize      (pending)\n  ○ docker-final  (pending)\n  ↻ release-note  (always re-runnable — no state file)\n```\n\n`release-note` has no `.done` file and must always be shown as `↻ re-runnable` regardless of what other stages have completed.\n\nIf no state directory exists: \"No stages completed yet for v{VERSION}-rc{RC}.\"\n\n---\n\n### Step 5 — Ask what to do\n\n```\nWhat would you like to do?\n  1. Run next pending stage\n  2. Run a specific stage\n  3. Run all remaining stages sequentially\n  4. Show current state only\n```\n\n---\n\n### Step 6 — Collect secrets\n\nCheck each required environment variable before running any stage. If unset, ask the user for the value and `export` it. **Never display, log, or echo secret values.**\n\n| Variable | Required for stages | Notes |\n|----------|---------------------|-------|\n| `ASF_USERNAME` | tag, package, publish, finalize | Apache committer username |\n| `ASF_PASSWORD` | tag, package, publish, finalize | Apache committer password |\n| `GPG_KEY` | package, publish, finalize | GPG key ID (typically `user@apache.org`) |\n| `GPG_PASSPHRASE` | package, publish, finalize | GPG key passphrase |\n| `PYPI_API_TOKEN` | tag, package, finalize | PyPI API token (starts with `pypi-`) |\n| `GH_TOKEN` | docker, docker-final | GitHub token with `repo`+`workflow` scope |\n| `DOCKER_USERNAME` | docker, docker-final | Docker Hub username |\n| `PUBLISH_DOCKER_TOKEN` | docker, docker-final | Workflow authorization token (matched against repo secret) |\n\nCollect only what is needed for the stage(s) about to run. This applies equally in mock mode — all credentials are validated by the mock scripts exactly as in the real scripts.\n\n---\n\n## Preflight Checks\n\nRun these checks **before the tag stage only**. Present results clearly, then ask whether to proceed. All checks are **advisory** — never block automatically.\n\n### 1. Open PRs targeting the release branch\n\n```bash\ngh pr list \\\n  --repo apache\u002Fgravitino \\\n  --base \"${GIT_BRANCH}\" \\\n  --state open \\\n  --json number,title,author,url \\\n  --jq '.[] | \"#\\(.number)  \\(.title)  by \\(.author.login)  \\(.url)\"'\n```\n\nIf any are found:\n> \"Found N open PR(s) targeting {GIT_BRANCH}. Any commits merged after tagging will miss this release.\"\n> Show the list, then ask: \"Proceed anyway? [y\u002FN]\"\n\n### 2. Recent CI status on the release branch\n\n```bash\ngh run list \\\n  --repo apache\u002Fgravitino \\\n  --branch \"${GIT_BRANCH}\" \\\n  --limit 5 \\\n  --json status,conclusion,name,url \\\n  --jq '.[] | \"\\(.conclusion \u002F\u002F .status)  \\(.name)  \\(.url)\"'\n```\n\nIf any recent runs show `failure` or `cancelled`:\n> \"Recent CI run(s) on {GIT_BRANCH} did not pass. A green branch is recommended before tagging.\"\n> Ask: \"Proceed anyway? [y\u002FN]\"\n\n### Preflight summary\n\n```\nPreflight results for v1.2.0-rc1 (branch-1.2):\n  Open PRs  (base branch-1.2):   1  ⚠\n  Recent CI (branch-1.2):        ✓  (last 5 runs passed)\n\nProceed to tag? [y\u002FN]\n```\n\n---\n\n## Stage Details\n\n### Execution model for long-running stages\n\nStages **build**, **docs**, **publish**, and **finalize** typically take 30–90 minutes. Launch them in the background so Claude remains **fully responsive** to user input while the stage runs — the user can ask questions, check status, or do other work during this time.\n\n#### Launching\n\n```bash\n# Launch in background — stdout+stderr go to the stage log, PID saved to a file\nnohup \"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s \u003Cstage> -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\" \\\n  > \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\" 2>&1 &\necho $! > \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\"\necho \"Stage \u003Cstage> running in background (PID $(cat \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\")). You can keep chatting.\"\n```\n\nAfter launching, Claude notifies the user and returns to the conversation immediately.\n\n#### Checking status (on demand)\n\nClaude runs this whenever the user asks (e.g. \"how's the build going?\") or proactively after a natural pause:\n\n```bash\nSTAGE_PID=$(cat \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\" 2>\u002Fdev\u002Fnull)\nif kill -0 \"$STAGE_PID\" 2>\u002Fdev\u002Fnull; then\n  echo \"Still running. Recent log:\"\n  tail -10 \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\"\nelif [ -f \"$STATE_DIR\u002F\u003Cstage>.done\" ]; then\n  echo \"Completed successfully:\"\n  cat \"$STATE_DIR\u002F\u003Cstage>.done\"\nelse\n  echo \"Process exited but no .done file — FAILED. Last log:\"\n  tail -30 \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\"\nfi\n```\n\n#### Auto-polling (optional)\n\nPeriodically ask the agent to check status (e.g. \"any update on the build?\") — it will run the status check above and report back. In **Claude Code** you can also use the built-in `\u002Floop` skill to automate this:\n```\n\u002Floop 10m check stage \u003Cstage> status\n```\nUse `1m` for mock mode (with `MOCK_STAGE_DELAY=180`), `10m` for real runs. `\u002Floop` is Claude Code only and not available in other tools.\n\n**Mock mode tip:** Set `MOCK_STAGE_DELAY=\u003Csecs>` to simulate a long-running stage:\n```bash\nexport MOCK_STAGE_DELAY=180   # stage sleeps 3 minutes before completing\n```\n\n**Short stages** (tag, docker, docker-final) complete in under 5 minutes and are run synchronously — no backgrounding needed.\n\n---\n\n### Stage 1: tag\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s tag -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**What it does:**\n- Clones the repo from gitbox.apache.org\n- Updates version in: `gradle.properties`, `clients\u002Fclient-python\u002Fsetup.py`, `clients\u002Ffilesystem-fuse\u002FCargo.toml`, all three Helm charts (`Chart.yaml` + `values.yaml`), `mcp-server\u002Fpyproject.toml`\n- Commits and creates git tag `v{VERSION}-rc{RC}`\n- Bumps all files to next SNAPSHOT version, commits and pushes both\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Ftag.log`\n**State file includes:** Remote verification that the tag exists on github.com\u002Fapache\u002Fgravitino\n\n**Dry run:** Keeps a local `gravitino-tag\u002F` clone for inspection instead of pushing.\n\n---\n\n### Stage 2: build\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s build -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**What it does:**\n- Clones from the release tag\n- Builds source tarball (`gravitino-{VERSION}-src.tar.gz`)\n- Builds binary tarballs: server, iceberg-rest-server, lance-rest-server, trino connectors\n- Builds Python client package\n- GPG-signs all artifacts; generates SHA512 checksums\n- Uploads Python RC package to PyPI as `{VERSION}rc{RC}`\n- Uploads all artifacts to ASF SVN staging:\n  `https:\u002F\u002Fdist.apache.org\u002Frepos\u002Fdist\u002Fdev\u002Fgravitino\u002Fv{VERSION}-rc{RC}\u002F`\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fbuild.log`\n\n---\n\n### Stage 3: docs\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s docs -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** _(none — docs build is fully local)_\n\n**What it does:**\n- Builds Javadoc from `clients\u002Fclient-java` → `gravitino-{VERSION}-javadoc\u002F`\n- Builds Python Sphinx docs from `clients\u002Fclient-python` → `gravitino-{VERSION}-pydoc\u002F`\n- Output is local only; nothing is published in this stage\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fdocs.log`\n\n---\n\n### Stage 4: publish (Maven\u002FNexus)\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s publish -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`\n\n**What it does:**\n- Creates an Apache Nexus staging repository\n- Builds Maven artifacts for Scala 2.12 and Scala 2.13\n- Signs each artifact and uploads to Nexus\n- Closes the staging repository (making it available for the vote)\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fpublish.log`\n\n---\n\n### Stage 5: docker\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fpublish-docker.sh\" \"v${RELEASE_VERSION}-rc${RC_COUNT}\" \\\n  --docker-version \"${RELEASE_VERSION}-rc${RC_COUNT}\" \\\n  --trino-version \"${TRINO_VERSION:-478}\"\n```\n\n**Required env vars:** `GH_TOKEN` (or active `gh auth login`), `DOCKER_USERNAME`, `PUBLISH_DOCKER_TOKEN`\n\n**What it does:** Triggers GitHub Actions `docker-image.yml` workflow for each image:\n- `apache\u002Fgravitino:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-iceberg-rest:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-lance-rest:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-mcp-server:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-playground:trino-{TRINO_VER}-gravitino-{VERSION}-rc{RC}`\n\n**Default Trino version:** `478` — ask the user if they want a different version before running.\n\n**Always offer `--dry-run` first** to preview the workflow dispatch commands without triggering anything.\n\n**Monitor progress:** https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Factions\u002Fworkflows\u002Fdocker-image.yml\n\n---\n\n### Vote (between docker and finalize)\n\nNo script covers this stage.\n\n**Send `[VOTE]` to dev@gravitino.apache.org** once the RC artifacts, PyPI staging, Maven staging and Docker images are all verified. The mail must carry the git tag and commit, the `dist\u002Fdev` URL, the staging repository, the KEYS URL, and how to verify signatures.\n\n**The rules** ([ASF release policy](https:\u002F\u002Fwww.apache.org\u002Flegal\u002Frelease-policy.html#release-approval)):\n- Open at least **72 hours**. A shorter period must be justified in the mail.\n- Needs **at least 3 binding +1**, and more binding +1 than binding -1. Binding means PMC member; non-binding votes are encouraged and tallied separately.\n- Releases **may not be vetoed** — a single -1 does not by itself block the vote. In practice, if anyone reports a real problem the release manager cancels the vote rather than carrying it.\n\n**On a -1:** answer the technical point on the thread. If it holds, cancel, fix, and cut the next RC — the RC number increments, the version does not.\n\n**When it passes**, send `[RESULT][VOTE]` as a **new thread**, not a reply. List every voter, marked binding or non-binding, and give the tally.\n\n**Then note which RC passed.** `finalize` needs `-r` set to that RC, and the RC number is *not* auto-detected correctly: `release-util.sh` derives it as the count of existing `v\u003Cversion>-rc*` tags plus one, which after rc1, rc2 and rc3 gives 4. A release that needed more than one RC will finalize against a `dist\u002Fdev` path that never existed unless `-r` is passed explicitly.\n\n---\n\n### Stage 6: finalize\n\n> ⚠️ **Irreversible.** Always get explicit user confirmation before running.\n\n**Confirmation prompt:**\n```\nfinalize will permanently:\n  - Create git tag v{VERSION} (no rc suffix)\n  - Upload final Python package to PyPI (without rc suffix)\n  - Move SVN artifacts: dev\u002Fgravitino\u002Fv{VERSION}-rc{RC} → release\u002Fgravitino\u002F{VERSION}\n  - Update the public KEYS file\n\nThis cannot be undone. Type 'yes' to proceed:\n```\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s finalize -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Ffinalize.log`\n**State file includes:** Verification that final tag `v{VERSION}` (no rc suffix) exists on github.com\n\n---\n\n### Stage 7: docker-final\n\n**Command:**\n```bash\nRELEASE_STATE_DIR=\"$RELEASE_SCRIPTS_DIR\u002F.release-state\u002F$RELEASE_TAG\" \\\n\"$RELEASE_SCRIPTS_DIR\u002Fpublish-docker.sh\" \"v${RELEASE_VERSION}\" \\\n  --docker-version \"${RELEASE_VERSION}\" \\\n  --trino-version \"${TRINO_VERSION:-478}\" \\\n  --state-key \"docker-final\"\n```\n\n**Required env vars:** `GH_TOKEN` (or active `gh auth login`), `DOCKER_USERNAME`, `PUBLISH_DOCKER_TOKEN`\n\n**Optional env vars:** `TRINO_VERSION` — Trino version for the playground image (default: `478`). Ask the user before running if they want a different version.\n\n**What it does:** Triggers GitHub Actions `docker-image.yml` for each final (non-RC) image:\n- `apache\u002Fgravitino:{VERSION}`\n- `apache\u002Fgravitino-iceberg-rest:{VERSION}`\n- `apache\u002Fgravitino-lance-rest:{VERSION}`\n- `apache\u002Fgravitino-mcp-server:{VERSION}`\n- `apache\u002Fgravitino-playground:trino-{TRINO_VER}-gravitino-{VERSION}`\n\nThe `--state-key docker-final` flag causes `publish-docker.sh` to write `docker-final.done` (distinct from the RC `docker.done` written in stage 5). `RELEASE_STATE_DIR` is set explicitly so both state files land in the same `.release-state\u002F{RC_TAG}\u002F` directory.\n\n**Always offer `--dry-run` first** before triggering any real workflow dispatches.\n\n**Monitor progress:** https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Factions\u002Fworkflows\u002Fdocker-image.yml\n\n---\n\n### Stage 8: release-note\n\n**Required env vars:** _(none — read-only GitHub API calls via `gh`)_\n\n**What it does:**\n1. Fetches all issues labelled with the release version (label format: `{VERSION}`, e.g. `1.2.1`):\n   ```bash\n   gh issue list --repo apache\u002Fgravitino \\\n     --label \"${RELEASE_VERSION}\" \\\n     --state all \\\n     --limit 500 \\\n     --json number,title,assignees,labels,url\n   ```\n2. Asks the user to describe 3–5 key features\u002Fthemes for the **Highlights** section before generating the draft.\n3. Generates a Markdown draft with the following sections in order:\n   - **Highlights** — a short paragraph per highlight based on user input\n   - **New Features** (`type:feature`, `feature`)\n   - **Bug Fixes** (`type:bug`, `bug`)\n   - **Improvements** (`type:improvement`, `improvement`, `enhancement`)\n   - **Documentation** (`documentation`, `docs`)\n   - **Build \u002F CI** (`build`, `ci`)\n   - **Other** (no matching label)\n   - **Credits** — deduplicated list of all issue assignees sorted case-insensitively by GitHub login, formatted as `@login`\n4. Displays the draft for review, then saves to:\n   `$RELEASE_SCRIPTS_DIR\u002Fgravitino-{VERSION}-release-notes.md`\n\n---\n\n### Stage 9: github-release\n\nEvery past release has a GitHub release page carrying the same artifacts as `dist\u002Frelease`. Nothing in `dev\u002Frelease\u002F` creates it.\n\n**Independent of the `svn mv`.** It needs only the pushed `v{VERSION}` tag and the RC artifacts, so it can be done while waiting on PMC karma for `dist\u002Frelease`.\n\n**Artifacts:** export the RC directory into a clean directory and upload exactly what is in it. Do not glob the release working directory — that also holds the Python sdists, which are not part of the ASF distribution.\n\n```bash\nmkdir -p ~\u002Fv{VERSION}-assets && cd ~\u002Fv{VERSION}-assets\nsvn export --force https:\u002F\u002Fdist.apache.org\u002Frepos\u002Fdist\u002Fdev\u002Fgravitino\u002Fv{VERSION}-rc{RC} .\nls | wc -l                   # note this count; the release page must end up matching it\nshasum -a 512 -c *.sha512    # all must print OK\n```\n\n**Create it:**\n```bash\ngh release create \"v{VERSION}\" -R apache\u002Fgravitino \\\n  --title \"Apache Gravitino {VERSION} Release Notes\" \\\n  --notes-file notes.md \\\n  *.tar.gz *.tar.gz.asc *.tar.gz.sha512\n```\n\nUse `--draft` if the release notes are still in review, then `gh release edit \"v{VERSION}\" --draft=false` to publish.\n\n**Verify the asset count, do not trust the exit code:**\n```bash\ngh release view \"v{VERSION}\" -R apache\u002Fgravitino --json assets --jq '.assets|length'   # must match the dist count above\n```\n\nA partial upload still reports success and leaves the release missing its signatures. If assets are missing, use `gh release upload --clobber` rather than re-running `create`, which fails on an existing release.\n\n**Body:** the same content as the release-note stage, plus a `**Full Changelog:** [v{PREV}...v{VERSION}](https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fcompare\u002Fv{PREV}...v{VERSION})` line and a `## Credits` section listing contributors as `@login`.\n\n---\n\n## Error Handling\n\nWhen a script fails:\n1. Read the corresponding `.log` file and show the user the last 30 lines\n2. Do **not** retry automatically — explain what failed and ask the user how to proceed\n3. The `.done` file will not have been written (only written on success)\n4. After the user fixes the issue, they can re-run the same stage\n\n| Symptom | Likely cause | Action |\n|---------|-------------|--------|\n| `svn: E170013` | Wrong ASF password or expired auth | Re-export `ASF_PASSWORD` and retry |\n| `gpg: signing failed` | Wrong passphrase or key not in keyring | Check `gpg --list-secret-keys` |\n| `twine upload` 403 | Expired `PYPI_API_TOKEN` | Regenerate token on pypi.org |\n| Nexus upload 401 | Wrong ASF credentials | Re-export `ASF_USERNAME` \u002F `ASF_PASSWORD` |\n| Tag not found after creation | GitHub sync lag | Wait ~1 minute, check github.com manually |\n| `docker.done` not written | Bad `GH_TOKEN` or `PUBLISH_DOCKER_TOKEN` | Check `gh auth status` and token scopes |\n\n---\n\n## Testing\n\nTo test the skill without any real build, publish, or git operations, use the mock scripts in `dev\u002Frelease\u002Fmock\u002F`.\n\nThe mock scripts:\n- Accept **identical flags and env vars** as the real scripts\n- **Validate all credentials** exactly as the real scripts do — `ASF_PASSWORD`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`, `GH_TOKEN`, `DOCKER_USERNAME`, and `PUBLISH_DOCKER_TOKEN` are all required and checked\n- Use the real `release-util.sh` for state management — guard checks and `.done` files behave exactly as in production\n- Print what each stage *would* do instead of executing it\n- Support `MOCK_FAIL_STAGE=\u003Cstage>` to simulate a failure at any stage and test error handling\n\n### Invoking mock mode\n\nWhen the user requests mock mode at Step 4 of the Session Start Protocol, set `RELEASE_SCRIPTS_DIR` to the `mock\u002F` subdirectory:\n\n```bash\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\u002Fmock\"\n```\n\nAll stage commands then become e.g. `\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s tag -y ...`\nEverything else — credential collection, preflight checks, state reading — is identical to a real run.\n\n### Test scenarios\n\n| Scenario | How to trigger |\n|----------|---------------|\n| Full happy path (all 6 stages) | Run all stages in mock mode; verify all `.done` files are written |\n| Resume from partial state | Pre-create some `.done` files; verify skill skips those stages |\n| Stage already done | Run a stage twice; verify second run is blocked and shows completion info |\n| Stage failure + retry | Set `MOCK_FAIL_STAGE=build`; verify error is shown and log is tailed; fix and re-run |\n| Finalize confirmation guard | Attempt finalize without typing `yes`; verify skill refuses |\n| Dry run mode | Run with `-n`; verify no `.done` files are written |\n| Missing secret | Unset `ASF_PASSWORD`; verify skill prompts before running |\n| Preflight checks | `gh` calls run against the real repo (read-only — safe in mock mode) |\n\n---\n\n## Rules\n\n1. **Never display or log secrets** — mask passwords, passphrases, and tokens in all output.\n2. **Always use `-y` mode** — `do-release.sh` requires interactive input without it; an agent cannot respond to prompts.\n3. **Show state at the start of every session** — the user must always know what has been done.\n4. **Guard finalize with explicit confirmation** — it affects public infrastructure and is irreversible.\n5. **Respect `.done` files** — never delete or bypass them without the user's explicit instruction.\n6. **Always offer `--dry-run`** before any publishing step the user hasn't run before in this session.\n7. **Run preflight before tag** — always run the two preflight checks before the tag stage starts.\n\n---\n\n## Installation\n\nClaude Code, GitHub Copilot CLI, and OpenClaw all manage skills as directories containing a `SKILL.md` file.\nThe skill is packaged as `agent-skills\u002Fgravitino-release\u002F` in the Gravitino repo — copy the whole directory to install.\n\n> Claude Code and GitHub Copilot CLI share the same `.claude\u002F` directory.\n\n```bash\n# Claude Code \u002F GitHub Copilot CLI — global (available in all projects)\ncp -r agent-skills\u002Fgravitino-release ~\u002F.claude\u002Fskills\u002F\n\n# Claude Code \u002F GitHub Copilot CLI — project-local (available only inside this repo)\ncp -r agent-skills\u002Fgravitino-release .claude\u002Fskills\u002F\n\n# OpenClaw — global\ncp -r agent-skills\u002Fgravitino-release ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F\n\n# OpenClaw — project-local\ncp -r agent-skills\u002Fgravitino-release .openclaw\u002Fworkspace\u002Fskills\u002F\n```\n\nInvoke with `\u002Fgravitino-release`. No local clone of the Gravitino repository is needed — the skill downloads the release scripts automatically via `gh`.\n","\u003C!--\n  Licensed to the Apache Software Foundation (ASF) under one or more\n  contributor license agreements.  See the NOTICE file distributed with\n  this work for additional information regarding copyright ownership.\n  The ASF licenses this file to You under the Apache License, Version 2.0\n  (the \"License\"); you may not use this file except in compliance with\n  the License.  You may obtain a copy of the License at\n\n    http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n-->\n\n# Apache Gravitino Release Manager\n\nYou are the Apache Gravitino release manager agent. Your role is to guide the user through the Gravitino release process, one stage at a time, using the scripts in `dev\u002Frelease\u002F`.\n\n## Scripts Reference\n\n| Script | Purpose |\n|--------|---------|\n| `do-release.sh` | Main orchestrator — runs tag, package, docs, publish, finalize stages |\n| `release-tag.sh` | Creates git tag and bumps version (invoked by do-release.sh) |\n| `release-build.sh` | Builds, publishes, and finalizes artifacts (invoked by do-release.sh) |\n| `publish-docker.sh` | Publishes Docker images via GitHub Actions (run separately) |\n| `check-license.sh` | Verifies all files referenced in LICENSE exist |\n| `release-util.sh` | Shared utility functions (sourced by other scripts, not run directly) |\n| `mock\u002Fdo-release.sh` | Mock version of do-release.sh for testing (no real operations) |\n| `mock\u002Fpublish-docker.sh` | Mock version of publish-docker.sh for testing (no real operations) |\n\n## Release Stages (in order)\n\n| # | Stage | `-s` flag | State file |\n|---|-------|-----------|------------|\n| 1 | **tag** | `tag` | `.release-state\u002F{TAG}\u002Ftag.done` |\n| 2 | **build** | `build` | `.release-state\u002F{TAG}\u002Fbuild.done` |\n| 3 | **docs** | `docs` | `.release-state\u002F{TAG}\u002Fdocs.done` |\n| 4 | **publish** | `publish` | `.release-state\u002F{TAG}\u002Fpublish.done` |\n| 5 | **docker** | _(separate script)_ | `.release-state\u002F{TAG}\u002Fdocker.done` |\n| — | **vote** | _(mailing list — no script)_ | _(no state file)_ |\n| 6 | **finalize** | `finalize` | `.release-state\u002F{TAG}\u002Ffinalize.done` |\n| 7 | **docker-final** | _(separate script)_ | `.release-state\u002F{TAG}\u002Fdocker-final.done` |\n| 8 | **release-note** | _(agent-generated)_ | _(no state file — always re-runnable)_ |\n| 9 | **github-release** | _(`gh release create`)_ | _(no state file)_ |\n\n> `{TAG}` is the release candidate tag, e.g. `v1.2.0-rc1`.\n\n## Directory Layout\n\nAfter setup, the working directory structure is always:\n\n```\n~\u002Fgravitino-release-v{VERSION}-rc{RC}\u002F       ← WORK_DIR (sparse clone of apache\u002Fgravitino)\n└── dev\u002F\n    └── release\u002F                             ← hardcoded path, never changes in the repo\n        ├── do-release.sh\n        ├── publish-docker.sh\n        ├── release-build.sh\n        ├── release-tag.sh\n        ├── release-util.sh\n        ├── check-license.sh\n        ├── mock\u002F\n        │   ├── do-release.sh\n        │   └── publish-docker.sh\n        └── .release-state\u002F\n            └── v{VERSION}-rc{RC}\u002F\n                ├── tag.done\n                ├── package.done\n                └── ...\n```\n\n```bash\nWORK_DIR=\"$HOME\u002Fgravitino-release-v${RELEASE_VERSION}-rc${RC_COUNT}\"\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\"\n```\n\n`dev\u002Frelease\u002F` is a fixed path in the Gravitino repository and never changes. All script invocations use the full path, e.g. `\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\"`.\n\n## State Tracking\n\nState lives in `$RELEASE_SCRIPTS_DIR\u002F.release-state\u002F{RELEASE_TAG}\u002F`.\n\n- **Before a stage**: the script checks for the `.done` file. If found, it prints the completion info and exits — no re-run.\n- **After success**: the script writes the `.done` file with a timestamp and verification details.\n- **To re-run a stage**: the user must manually delete the `.done` file.\n- Override the state directory with the `RELEASE_STATE_DIR` environment variable.\n\n---\n\n## Session Start Protocol\n\n### Step 0 — Check prerequisites\n\nVerify `gh` is installed:\n```bash\ngh --version\n```\nIf not found:\n> \"`gh` (GitHub CLI) is required. Install it from https:\u002F\u002Fcli.github.com, then run `gh auth login`.\"\n> Stop here.\n\nVerify `gh` is authenticated:\n```bash\ngh auth status\n```\nIf not authenticated:\n> \"Please run `gh auth login` first.\"\n> Stop here.\n\n---\n\n### Step 1 — Collect release parameters\n\nAsk the user for:\n- **Branch**: e.g. `branch-1.2`\n- **RC number**: e.g. `1`\n\nAuto-detect the release version from the branch:\n```bash\ngh api \"repos\u002Fapache\u002Fgravitino\u002Fcontents\u002Fgradle.properties?ref=${GIT_BRANCH}\" \\\n  --jq '.content' | base64 -d | grep '^version' | cut -d'=' -f2 | tr -d ' '\n```\n\nConfirm with the user:\n```\nBranch:          branch-1.2\nRelease version: 1.2.0\nRC number:       1\nRelease tag:     v1.2.0-rc1\n\nIs this correct? [y\u002FN]\n```\n\n---\n\n### Step 2 — Set up working directory\n\nDerive paths from the confirmed release parameters:\n```bash\nWORK_DIR=\"$HOME\u002Fgravitino-release-v${RELEASE_VERSION}-rc${RC_COUNT}\"\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\"\n```\n\nCheck if `$WORK_DIR` already exists:\n```bash\nls \"$WORK_DIR\" 2>\u002Fdev\u002Fnull\n```\n\nIf it exists, ask:\n> \"Found existing scripts at `$WORK_DIR`. Use this or re-download? [use\u002Fdownload]\"\n\nIf it does not exist (or user chose re-download), sparse-clone just `dev\u002Frelease\u002F`:\n```bash\ngh repo clone apache\u002Fgravitino \"$WORK_DIR\" -- \\\n  --depth 1 \\\n  --branch \"${GIT_BRANCH}\" \\\n  --filter=blob:none \\\n  --sparse\n\ncd \"$WORK_DIR\"\ngit sparse-checkout set dev\u002Frelease\ngit checkout\n```\n\n---\n\n### Step 3 — Select mode\n\nAsk before reading state, because mock mode uses a different scripts directory and therefore a different state directory:\n\n```\nMock mode? [y\u002FN]\nDry run mode? [y\u002FN]\n```\n\nIf the user selects mock mode, set `RELEASE_SCRIPTS_DIR` to the mock subdirectory **now**, before any state check:\n```bash\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\u002Fmock\"\n```\n\n---\n\n### Step 4 — Read current state\n\nUsing the `RELEASE_SCRIPTS_DIR` set in Step 3, check `.release-state\u002Fv${RELEASE_VERSION}-rc${RC_COUNT}\u002F` for `.done` files and show the user:\n\n```\nRelease state for v1.2.0-rc1:\n  ✓ tag          (completed 2026-03-19T10:00:00Z)\n  ✓ build        (completed 2026-03-19T12:30:00Z)\n  ○ docs         (pending)\n  ○ publish      (pending)\n  ○ docker       (pending)\n  ○ finalize      (pending)\n  ○ docker-final  (pending)\n  ↻ release-note  (always re-runnable — no state file)\n```\n\n`release-note` has no `.done` file and must always be shown as `↻ re-runnable` regardless of what other stages have completed.\n\nIf no state directory exists: \"No stages completed yet for v{VERSION}-rc{RC}.\"\n\n---\n\n### Step 5 — Ask what to do\n\n```\nWhat would you like to do?\n  1. Run next pending stage\n  2. Run a specific stage\n  3. Run all remaining stages sequentially\n  4. Show current state only\n```\n\n---\n\n### Step 6 — Collect secrets\n\nCheck each required environment variable before running any stage. If unset, ask the user for the value and `export` it. **Never display, log, or echo secret values.**\n\n| Variable | Required for stages | Notes |\n|----------|---------------------|-------|\n| `ASF_USERNAME` | tag, package, publish, finalize | Apache committer username |\n| `ASF_PASSWORD` | tag, package, publish, finalize | Apache committer password |\n| `GPG_KEY` | package, publish, finalize | GPG key ID (typically `user@apache.org`) |\n| `GPG_PASSPHRASE` | package, publish, finalize | GPG key passphrase |\n| `PYPI_API_TOKEN` | tag, package, finalize | PyPI API token (starts with `pypi-`) |\n| `GH_TOKEN` | docker, docker-final | GitHub token with `repo`+`workflow` scope |\n| `DOCKER_USERNAME` | docker, docker-final | Docker Hub username |\n| `PUBLISH_DOCKER_TOKEN` | docker, docker-final | Workflow authorization token (matched against repo secret) |\n\nCollect only what is needed for the stage(s) about to run. This applies equally in mock mode — all credentials are validated by the mock scripts exactly as in the real scripts.\n\n---\n\n## Preflight Checks\n\nRun these checks **before the tag stage only**. Present results clearly, then ask whether to proceed. All checks are **advisory** — never block automatically.\n\n### 1. Open PRs targeting the release branch\n\n```bash\ngh pr list \\\n  --repo apache\u002Fgravitino \\\n  --base \"${GIT_BRANCH}\" \\\n  --state open \\\n  --json number,title,author,url \\\n  --jq '.[] | \"#\\(.number)  \\(.title)  by \\(.author.login)  \\(.url)\"'\n```\n\nIf any are found:\n> \"Found N open PR(s) targeting {GIT_BRANCH}. Any commits merged after tagging will miss this release.\"\n> Show the list, then ask: \"Proceed anyway? [y\u002FN]\"\n\n### 2. Recent CI status on the release branch\n\n```bash\ngh run list \\\n  --repo apache\u002Fgravitino \\\n  --branch \"${GIT_BRANCH}\" \\\n  --limit 5 \\\n  --json status,conclusion,name,url \\\n  --jq '.[] | \"\\(.conclusion \u002F\u002F .status)  \\(.name)  \\(.url)\"'\n```\n\nIf any recent runs show `failure` or `cancelled`:\n> \"Recent CI run(s) on {GIT_BRANCH} did not pass. A green branch is recommended before tagging.\"\n> Ask: \"Proceed anyway? [y\u002FN]\"\n\n### Preflight summary\n\n```\nPreflight results for v1.2.0-rc1 (branch-1.2):\n  Open PRs  (base branch-1.2):   1  ⚠\n  Recent CI (branch-1.2):        ✓  (last 5 runs passed)\n\nProceed to tag? [y\u002FN]\n```\n\n---\n\n## Stage Details\n\n### Execution model for long-running stages\n\nStages **build**, **docs**, **publish**, and **finalize** typically take 30–90 minutes. Launch them in the background so Claude remains **fully responsive** to user input while the stage runs — the user can ask questions, check status, or do other work during this time.\n\n#### Launching\n\n```bash\n# Launch in background — stdout+stderr go to the stage log, PID saved to a file\nnohup \"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s \u003Cstage> -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\" \\\n  > \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\" 2>&1 &\necho $! > \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\"\necho \"Stage \u003Cstage> running in background (PID $(cat \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\")). You can keep chatting.\"\n```\n\nAfter launching, Claude notifies the user and returns to the conversation immediately.\n\n#### Checking status (on demand)\n\nClaude runs this whenever the user asks (e.g. \"how's the build going?\") or proactively after a natural pause:\n\n```bash\nSTAGE_PID=$(cat \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.pid\" 2>\u002Fdev\u002Fnull)\nif kill -0 \"$STAGE_PID\" 2>\u002Fdev\u002Fnull; then\n  echo \"Still running. Recent log:\"\n  tail -10 \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\"\nelif [ -f \"$STATE_DIR\u002F\u003Cstage>.done\" ]; then\n  echo \"Completed successfully:\"\n  cat \"$STATE_DIR\u002F\u003Cstage>.done\"\nelse\n  echo \"Process exited but no .done file — FAILED. Last log:\"\n  tail -30 \"$RELEASE_SCRIPTS_DIR\u002F\u003Cstage>.log\"\nfi\n```\n\n#### Auto-polling (optional)\n\nPeriodically ask the agent to check status (e.g. \"any update on the build?\") — it will run the status check above and report back. In **Claude Code** you can also use the built-in `\u002Floop` skill to automate this:\n```\n\u002Floop 10m check stage \u003Cstage> status\n```\nUse `1m` for mock mode (with `MOCK_STAGE_DELAY=180`), `10m` for real runs. `\u002Floop` is Claude Code only and not available in other tools.\n\n**Mock mode tip:** Set `MOCK_STAGE_DELAY=\u003Csecs>` to simulate a long-running stage:\n```bash\nexport MOCK_STAGE_DELAY=180   # stage sleeps 3 minutes before completing\n```\n\n**Short stages** (tag, docker, docker-final) complete in under 5 minutes and are run synchronously — no backgrounding needed.\n\n---\n\n### Stage 1: tag\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s tag -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**What it does:**\n- Clones the repo from gitbox.apache.org\n- Updates version in: `gradle.properties`, `clients\u002Fclient-python\u002Fsetup.py`, `clients\u002Ffilesystem-fuse\u002FCargo.toml`, all three Helm charts (`Chart.yaml` + `values.yaml`), `mcp-server\u002Fpyproject.toml`\n- Commits and creates git tag `v{VERSION}-rc{RC}`\n- Bumps all files to next SNAPSHOT version, commits and pushes both\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Ftag.log`\n**State file includes:** Remote verification that the tag exists on github.com\u002Fapache\u002Fgravitino\n\n**Dry run:** Keeps a local `gravitino-tag\u002F` clone for inspection instead of pushing.\n\n---\n\n### Stage 2: build\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s build -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**What it does:**\n- Clones from the release tag\n- Builds source tarball (`gravitino-{VERSION}-src.tar.gz`)\n- Builds binary tarballs: server, iceberg-rest-server, lance-rest-server, trino connectors\n- Builds Python client package\n- GPG-signs all artifacts; generates SHA512 checksums\n- Uploads Python RC package to PyPI as `{VERSION}rc{RC}`\n- Uploads all artifacts to ASF SVN staging:\n  `https:\u002F\u002Fdist.apache.org\u002Frepos\u002Fdist\u002Fdev\u002Fgravitino\u002Fv{VERSION}-rc{RC}\u002F`\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fbuild.log`\n\n---\n\n### Stage 3: docs\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s docs -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** _(none — docs build is fully local)_\n\n**What it does:**\n- Builds Javadoc from `clients\u002Fclient-java` → `gravitino-{VERSION}-javadoc\u002F`\n- Builds Python Sphinx docs from `clients\u002Fclient-python` → `gravitino-{VERSION}-pydoc\u002F`\n- Output is local only; nothing is published in this stage\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fdocs.log`\n\n---\n\n### Stage 4: publish (Maven\u002FNexus)\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s publish -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`\n\n**What it does:**\n- Creates an Apache Nexus staging repository\n- Builds Maven artifacts for Scala 2.12 and Scala 2.13\n- Signs each artifact and uploads to Nexus\n- Closes the staging repository (making it available for the vote)\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Fpublish.log`\n\n---\n\n### Stage 5: docker\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fpublish-docker.sh\" \"v${RELEASE_VERSION}-rc${RC_COUNT}\" \\\n  --docker-version \"${RELEASE_VERSION}-rc${RC_COUNT}\" \\\n  --trino-version \"${TRINO_VERSION:-478}\"\n```\n\n**Required env vars:** `GH_TOKEN` (or active `gh auth login`), `DOCKER_USERNAME`, `PUBLISH_DOCKER_TOKEN`\n\n**What it does:** Triggers GitHub Actions `docker-image.yml` workflow for each image:\n- `apache\u002Fgravitino:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-iceberg-rest:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-lance-rest:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-mcp-server:{VERSION}-rc{RC}`\n- `apache\u002Fgravitino-playground:trino-{TRINO_VER}-gravitino-{VERSION}-rc{RC}`\n\n**Default Trino version:** `478` — ask the user if they want a different version before running.\n\n**Always offer `--dry-run` first** to preview the workflow dispatch commands without triggering anything.\n\n**Monitor progress:** https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Factions\u002Fworkflows\u002Fdocker-image.yml\n\n---\n\n### Vote (between docker and finalize)\n\nNo script covers this stage.\n\n**Send `[VOTE]` to dev@gravitino.apache.org** once the RC artifacts, PyPI staging, Maven staging and Docker images are all verified. The mail must carry the git tag and commit, the `dist\u002Fdev` URL, the staging repository, the KEYS URL, and how to verify signatures.\n\n**The rules** ([ASF release policy](https:\u002F\u002Fwww.apache.org\u002Flegal\u002Frelease-policy.html#release-approval)):\n- Open at least **72 hours**. A shorter period must be justified in the mail.\n- Needs **at least 3 binding +1**, and more binding +1 than binding -1. Binding means PMC member; non-binding votes are encouraged and tallied separately.\n- Releases **may not be vetoed** — a single -1 does not by itself block the vote. In practice, if anyone reports a real problem the release manager cancels the vote rather than carrying it.\n\n**On a -1:** answer the technical point on the thread. If it holds, cancel, fix, and cut the next RC — the RC number increments, the version does not.\n\n**When it passes**, send `[RESULT][VOTE]` as a **new thread**, not a reply. List every voter, marked binding or non-binding, and give the tally.\n\n**Then note which RC passed.** `finalize` needs `-r` set to that RC, and the RC number is *not* auto-detected correctly: `release-util.sh` derives it as the count of existing `v\u003Cversion>-rc*` tags plus one, which after rc1, rc2 and rc3 gives 4. A release that needed more than one RC will finalize against a `dist\u002Fdev` path that never existed unless `-r` is passed explicitly.\n\n---\n\n### Stage 6: finalize\n\n> ⚠️ **Irreversible.** Always get explicit user confirmation before running.\n\n**Confirmation prompt:**\n```\nfinalize will permanently:\n  - Create git tag v{VERSION} (no rc suffix)\n  - Upload final Python package to PyPI (without rc suffix)\n  - Move SVN artifacts: dev\u002Fgravitino\u002Fv{VERSION}-rc{RC} → release\u002Fgravitino\u002F{VERSION}\n  - Update the public KEYS file\n\nThis cannot be undone. Type 'yes' to proceed:\n```\n\n**Command:**\n```bash\n\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s finalize -y -b \"$GIT_BRANCH\" -r \"$RC_COUNT\"\n```\n\n**Required env vars:** `ASF_USERNAME`, `ASF_PASSWORD`, `GPG_KEY`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`\n\n**Log:** `$RELEASE_SCRIPTS_DIR\u002Ffinalize.log`\n**State file includes:** Verification that final tag `v{VERSION}` (no rc suffix) exists on github.com\n\n---\n\n### Stage 7: docker-final\n\n**Command:**\n```bash\nRELEASE_STATE_DIR=\"$RELEASE_SCRIPTS_DIR\u002F.release-state\u002F$RELEASE_TAG\" \\\n\"$RELEASE_SCRIPTS_DIR\u002Fpublish-docker.sh\" \"v${RELEASE_VERSION}\" \\\n  --docker-version \"${RELEASE_VERSION}\" \\\n  --trino-version \"${TRINO_VERSION:-478}\" \\\n  --state-key \"docker-final\"\n```\n\n**Required env vars:** `GH_TOKEN` (or active `gh auth login`), `DOCKER_USERNAME`, `PUBLISH_DOCKER_TOKEN`\n\n**Optional env vars:** `TRINO_VERSION` — Trino version for the playground image (default: `478`). Ask the user before running if they want a different version.\n\n**What it does:** Triggers GitHub Actions `docker-image.yml` for each final (non-RC) image:\n- `apache\u002Fgravitino:{VERSION}`\n- `apache\u002Fgravitino-iceberg-rest:{VERSION}`\n- `apache\u002Fgravitino-lance-rest:{VERSION}`\n- `apache\u002Fgravitino-mcp-server:{VERSION}`\n- `apache\u002Fgravitino-playground:trino-{TRINO_VER}-gravitino-{VERSION}`\n\nThe `--state-key docker-final` flag causes `publish-docker.sh` to write `docker-final.done` (distinct from the RC `docker.done` written in stage 5). `RELEASE_STATE_DIR` is set explicitly so both state files land in the same `.release-state\u002F{RC_TAG}\u002F` directory.\n\n**Always offer `--dry-run` first** before triggering any real workflow dispatches.\n\n**Monitor progress:** https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Factions\u002Fworkflows\u002Fdocker-image.yml\n\n---\n\n### Stage 8: release-note\n\n**Required env vars:** _(none — read-only GitHub API calls via `gh`)_\n\n**What it does:**\n1. Fetches all issues labelled with the release version (label format: `{VERSION}`, e.g. `1.2.1`):\n   ```bash\n   gh issue list --repo apache\u002Fgravitino \\\n     --label \"${RELEASE_VERSION}\" \\\n     --state all \\\n     --limit 500 \\\n     --json number,title,assignees,labels,url\n   ```\n2. Asks the user to describe 3–5 key features\u002Fthemes for the **Highlights** section before generating the draft.\n3. Generates a Markdown draft with the following sections in order:\n   - **Highlights** — a short paragraph per highlight based on user input\n   - **New Features** (`type:feature`, `feature`)\n   - **Bug Fixes** (`type:bug`, `bug`)\n   - **Improvements** (`type:improvement`, `improvement`, `enhancement`)\n   - **Documentation** (`documentation`, `docs`)\n   - **Build \u002F CI** (`build`, `ci`)\n   - **Other** (no matching label)\n   - **Credits** — deduplicated list of all issue assignees sorted case-insensitively by GitHub login, formatted as `@login`\n4. Displays the draft for review, then saves to:\n   `$RELEASE_SCRIPTS_DIR\u002Fgravitino-{VERSION}-release-notes.md`\n\n---\n\n### Stage 9: github-release\n\nEvery past release has a GitHub release page carrying the same artifacts as `dist\u002Frelease`. Nothing in `dev\u002Frelease\u002F` creates it.\n\n**Independent of the `svn mv`.** It needs only the pushed `v{VERSION}` tag and the RC artifacts, so it can be done while waiting on PMC karma for `dist\u002Frelease`.\n\n**Artifacts:** export the RC directory into a clean directory and upload exactly what is in it. Do not glob the release working directory — that also holds the Python sdists, which are not part of the ASF distribution.\n\n```bash\nmkdir -p ~\u002Fv{VERSION}-assets && cd ~\u002Fv{VERSION}-assets\nsvn export --force https:\u002F\u002Fdist.apache.org\u002Frepos\u002Fdist\u002Fdev\u002Fgravitino\u002Fv{VERSION}-rc{RC} .\nls | wc -l                   # note this count; the release page must end up matching it\nshasum -a 512 -c *.sha512    # all must print OK\n```\n\n**Create it:**\n```bash\ngh release create \"v{VERSION}\" -R apache\u002Fgravitino \\\n  --title \"Apache Gravitino {VERSION} Release Notes\" \\\n  --notes-file notes.md \\\n  *.tar.gz *.tar.gz.asc *.tar.gz.sha512\n```\n\nUse `--draft` if the release notes are still in review, then `gh release edit \"v{VERSION}\" --draft=false` to publish.\n\n**Verify the asset count, do not trust the exit code:**\n```bash\ngh release view \"v{VERSION}\" -R apache\u002Fgravitino --json assets --jq '.assets|length'   # must match the dist count above\n```\n\nA partial upload still reports success and leaves the release missing its signatures. If assets are missing, use `gh release upload --clobber` rather than re-running `create`, which fails on an existing release.\n\n**Body:** the same content as the release-note stage, plus a `**Full Changelog:** [v{PREV}...v{VERSION}](https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fcompare\u002Fv{PREV}...v{VERSION})` line and a `## Credits` section listing contributors as `@login`.\n\n---\n\n## Error Handling\n\nWhen a script fails:\n1. Read the corresponding `.log` file and show the user the last 30 lines\n2. Do **not** retry automatically — explain what failed and ask the user how to proceed\n3. The `.done` file will not have been written (only written on success)\n4. After the user fixes the issue, they can re-run the same stage\n\n| Symptom | Likely cause | Action |\n|---------|-------------|--------|\n| `svn: E170013` | Wrong ASF password or expired auth | Re-export `ASF_PASSWORD` and retry |\n| `gpg: signing failed` | Wrong passphrase or key not in keyring | Check `gpg --list-secret-keys` |\n| `twine upload` 403 | Expired `PYPI_API_TOKEN` | Regenerate token on pypi.org |\n| Nexus upload 401 | Wrong ASF credentials | Re-export `ASF_USERNAME` \u002F `ASF_PASSWORD` |\n| Tag not found after creation | GitHub sync lag | Wait ~1 minute, check github.com manually |\n| `docker.done` not written | Bad `GH_TOKEN` or `PUBLISH_DOCKER_TOKEN` | Check `gh auth status` and token scopes |\n\n---\n\n## Testing\n\nTo test the skill without any real build, publish, or git operations, use the mock scripts in `dev\u002Frelease\u002Fmock\u002F`.\n\nThe mock scripts:\n- Accept **identical flags and env vars** as the real scripts\n- **Validate all credentials** exactly as the real scripts do — `ASF_PASSWORD`, `GPG_PASSPHRASE`, `PYPI_API_TOKEN`, `GH_TOKEN`, `DOCKER_USERNAME`, and `PUBLISH_DOCKER_TOKEN` are all required and checked\n- Use the real `release-util.sh` for state management — guard checks and `.done` files behave exactly as in production\n- Print what each stage *would* do instead of executing it\n- Support `MOCK_FAIL_STAGE=\u003Cstage>` to simulate a failure at any stage and test error handling\n\n### Invoking mock mode\n\nWhen the user requests mock mode at Step 4 of the Session Start Protocol, set `RELEASE_SCRIPTS_DIR` to the `mock\u002F` subdirectory:\n\n```bash\nRELEASE_SCRIPTS_DIR=\"$WORK_DIR\u002Fdev\u002Frelease\u002Fmock\"\n```\n\nAll stage commands then become e.g. `\"$RELEASE_SCRIPTS_DIR\u002Fdo-release.sh\" -s tag -y ...`\nEverything else — credential collection, preflight checks, state reading — is identical to a real run.\n\n### Test scenarios\n\n| Scenario | How to trigger |\n|----------|---------------|\n| Full happy path (all 6 stages) | Run all stages in mock mode; verify all `.done` files are written |\n| Resume from partial state | Pre-create some `.done` files; verify skill skips those stages |\n| Stage already done | Run a stage twice; verify second run is blocked and shows completion info |\n| Stage failure + retry | Set `MOCK_FAIL_STAGE=build`; verify error is shown and log is tailed; fix and re-run |\n| Finalize confirmation guard | Attempt finalize without typing `yes`; verify skill refuses |\n| Dry run mode | Run with `-n`; verify no `.done` files are written |\n| Missing secret | Unset `ASF_PASSWORD`; verify skill prompts before running |\n| Preflight checks | `gh` calls run against the real repo (read-only — safe in mock mode) |\n\n---\n\n## Rules\n\n1. **Never display or log secrets** — mask passwords, passphrases, and tokens in all output.\n2. **Always use `-y` mode** — `do-release.sh` requires interactive input without it; an agent cannot respond to prompts.\n3. **Show state at the start of every session** — the user must always know what has been done.\n4. **Guard finalize with explicit confirmation** — it affects public infrastructure and is irreversible.\n5. **Respect `.done` files** — never delete or bypass them without the user's explicit instruction.\n6. **Always offer `--dry-run`** before any publishing step the user hasn't run before in this session.\n7. **Run preflight before tag** — always run the two preflight checks before the tag stage starts.\n\n---\n\n## Installation\n\nClaude Code, GitHub Copilot CLI, and OpenClaw all manage skills as directories containing a `SKILL.md` file.\nThe skill is packaged as `agent-skills\u002Fgravitino-release\u002F` in the Gravitino repo — copy the whole directory to install.\n\n> Claude Code and GitHub Copilot CLI share the same `.claude\u002F` directory.\n\n```bash\n# Claude Code \u002F GitHub Copilot CLI — global (available in all projects)\ncp -r agent-skills\u002Fgravitino-release ~\u002F.claude\u002Fskills\u002F\n\n# Claude Code \u002F GitHub Copilot CLI — project-local (available only inside this repo)\ncp -r agent-skills\u002Fgravitino-release .claude\u002Fskills\u002F\n\n# OpenClaw — global\ncp -r agent-skills\u002Fgravitino-release ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F\n\n# OpenClaw — project-local\ncp -r agent-skills\u002Fgravitino-release .openclaw\u002Fworkspace\u002Fskills\u002F\n```\n\nInvoke with `\u002Fgravitino-release`. No local clone of the Gravitino repository is needed — the skill downloads the release scripts automatically via `gh`.\n",{"name":5,"description":7,"allowed-tools":35,"argument-hint":50},"[branch] (e.g. branch-1.2 | mock | status)","main","bb634defdc5663a8124be5fca1c8d9e52ac096ac","agent-skills\u002Fgravitino-release",993,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino","https:\u002F\u002Fgravitino.apache.org","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-14 00:15:00",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add apache\u002Fgravitino --skill gravitino-release",{"tool":66,"command":67},"bunx","bunx skills add apache\u002Fgravitino --skill gravitino-release",{"tool":69,"command":70},"pnpm","pnpm dlx skills add apache\u002Fgravitino --skill gravitino-release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002Fagent-skills\u002Fgravitino-release\u002FSKILL.md",true,[74,80,84,88,92,96],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"README.md","REFERENCE","参考文档",3556,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002Fagent-skills\u002Fgravitino-release\u002FREADME.md",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fcli-and-mcp.md",4039,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare-email-service\u002Freferences\u002Fcli-and-mcp.md",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fdeliverability.md",9145,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare-email-service\u002Freferences\u002Fdeliverability.md",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Frest-api.md",6014,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare-email-service\u002Freferences\u002Frest-api.md",{"path":93,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Frouting.md",7462,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare-email-service\u002Freferences\u002Frouting.md",{"path":97,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fsending.md",9530,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare-email-service\u002Freferences\u002Fsending.md",[101,124,141],{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":45},"01M6ACXRK5M623Z8XQJN4ZSWPF","trino-test","Run, debug, and manage Trino integration tests for the Gravitino project.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002Fagent-skills\u002Ftrino-test\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,117,35,118,119,120,121,122,123],"test","trino test","for","add","false","tests","project","intent","manage","command","integration","mysql","run","add test","debug","integration tests",{"skillNo":125,"name":126,"nameZh":127,"description":17,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":137,"publishedAt":45},"01M6ACXK8B66G91B40C01Y2FEF","gravitino-docs-refine","Gravitino 文档优化","","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgravitino-docs-refine\u002FSKILL.md",[131,134],{"categoryNo":132,"categoryName":133,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",{"categoryNo":135,"categoryName":136,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写",[138,139,140],"docs","gravitino docs refine","refine",{"skillNo":142,"name":143,"nameZh":144,"description":17,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":149,"publishedAt":45},"01M6ACXGCZFZQDTX1NXGW645EQ","gravitino-design-doc","Gravitino 设计文档编写","https:\u002F\u002Fgithub.com\u002Fapache\u002Fgravitino\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgravitino-design-doc\u002FSKILL.md",[147,148],{"categoryNo":132,"categoryName":133,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":135,"categoryName":136,"taxonomyType":23,"taxonomyTypeDesc":24},[150,151,152,153],"gravitino design doc","doc","design doc","design"]