agentleFS
OpenHandsOpenHands/OpenHands-CLI/.agents/skills/cli-release/SKILL.md

cli-release

Skill269 starsChanged 7 months agoMITView on GitHub

This skill should be used when the user asks to "release the CLI", "prepare a CLI release", "publish a new CLI version", "cut a CLI release", "do a release", "bump the CLI version", or mentions the CLI release checklist or release process. Guides through the full OpenHands CLI release workflow from version bump to binary publication, emphasizing human checkpoints.

  • Pipes a download into a shell
  • Reads credentials
  • Deletes or force-pushes
  • Sends data out
  • Commits and pushes

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. ComposioHQ/composio★ 31ksame name
    2. gamedevpl/www.gamedev.pl★ 17same name
    3. Gopyr/gopyr-skills-hub★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Update version in pyproject.toml

    line 54
  2. Distinctive:

    Update snapshot tests (version appears in splash screen SVGs)

    line 56
  3. Distinctive:

    Wait for CI to complete after tagging.

    line 130
  4. Distinctive:

    After publishing, confirm all platform binaries were uploaded:

    line 151
  5. Very specific:

    Should return 200. Allow a few minutes for PyPI indexing.

    line 172
  6. Very specific:

    After publishing the release, wait a couple of minutes.

    line 176
  7. Distinctive:

    If the automated PR was not created, trigger the workflow manually:

    line 191

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CLI Release Guide

This skill walks through the OpenHands CLI release process step by step.

🚨 CRITICAL: NEVER merge the release PR, create/push tags, or publish a GitHub release without the human's explicit approval. Release is the last line of human defense. Always present the current status and ask for confirmation before performing any irreversible action.

⚠️ Tag format: This project uses tags without a v prefix (e.g., 1.13.0, not v1.13.0).

Phase 1: Trigger the Version Bump Workflow

Determine the target version (SemVer X.Y.Z). Then trigger the bump-version.yml workflow, which creates a branch and draft PR automatically.

Via GitHub UI

Navigate to https://github.com/OpenHands/OpenHands-CLI/actions/workflows/bump-version.yml, click Run workflow, enter the version (e.g., 1.14.0), and run it.

Via GitHub API

curl -X POST \
  -H "Authorization: token $GITHUB_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  "https://api.github.com/repos/OpenHands/OpenHands-CLI/actions/workflows/bump-version.yml/dispatches" \
  -d '{
    "ref": "main",
    "inputs": {
      "version": "<version>"
    }
  }'

The workflow will:

  1. Validate version format (X.Y.Z)
  2. Create branch bump-version-<version>
  3. Update version in pyproject.toml
  4. Regenerate uv.lock
  5. Update snapshot tests (version appears in splash screen SVGs)
  6. Open a draft PR titled "Bump version to <version>"

Once the workflow completes, retrieve the PR number for later phases:

gh pr list --repo OpenHands/OpenHands-CLI \
  --head "bump-version-<version>" --json number,title,url

Phase 2: Wait for CI — Tests Must Pass

The bump PR triggers the standard CI suite. All checks must pass.

Monitor status:

gh pr checks <PR_NUMBER> --repo OpenHands/OpenHands-CLI

Key checks to verify:

  • Lint
  • Unit / integration tests
  • Snapshot tests (updated by the bump workflow)
  • Binary build

⏸ Checkpoint — Human Judgment on Failures

Decide with the team whether each failure is:

  • Blocking — must fix before release
  • Known / pre-existing — acceptable to release with a follow-up issue
  • Flaky — re-run the workflow

Re-run failed jobs:

gh run list --repo OpenHands/OpenHands-CLI \
  --branch "bump-version-<version>" --limit 5

gh run rerun <RUN_ID> --repo OpenHands/OpenHands-CLI --failed

Phase 3: Tag the Release

🚨 STOP — Do NOT tag without explicit human approval. Present the CI status summary and ask the human to confirm.

Tag the latest commit on the version bump branch. No v prefix.

git fetch origin
git checkout bump-version-<version>
git reset --hard origin/bump-version-<version>  # ensure we're at latest

# verify tag doesn't already exist
if git rev-parse <version> >/dev/null 2>&1; then
  echo "Error: Tag <version> already exists"
  exit 1
fi

git tag <version>
git push origin --tags

Pushing the tag triggers two automated workflows:

  • cli-build-binary-and-optionally-release.yml — builds platform binaries and creates a draft GitHub release with assets
  • pypi-release.yml — builds and publishes the openhands package to PyPI

Phase 4: Merge the PR

🚨 STOP — Do NOT merge without explicit human approval.

Wait for CI to complete after tagging. Verify all checks passed, then merge:

gh pr checks <PR_NUMBER> --repo OpenHands/OpenHands-CLI
gh pr merge <PR_NUMBER> --repo OpenHands/OpenHands-CLI --merge

Phase 5: Edit and Publish the GitHub Release

🚨 STOP — Do NOT publish without explicit human approval. Publishing finalises the release for users.

Navigate to https://github.com/OpenHands/OpenHands-CLI/releases and edit the draft release created by CI:

  1. Click Auto-generate release notes (or write custom notes)
  2. Review the notes
  3. Click Publish release

⏸ Checkpoint — Verify Release Assets

After publishing, confirm all platform binaries were uploaded:

PlatformAsset name
Linux x86_64openhands-linux-x86_64
Linux ARM64openhands-linux-arm64
macOS Apple Siliconopenhands-macos-arm64
macOS Intelopenhands-macos-intel
gh release view <version> --repo OpenHands/OpenHands-CLI --json assets \
  --jq '.assets[].name'

⏸ Checkpoint — Verify PyPI Publication

curl -s -o /dev/null -w "openhands: %{http_code}\n" \
  "https://pypi.org/pypi/openhands/<version>/json"

Should return 200. Allow a few minutes for PyPI indexing.

Phase 6: Update Install Website

After publishing the release, wait a couple of minutes. The update-install-website.yml workflow automatically opens a PR in install-openhands-website.

gh pr list --repo All-Hands-AI/install-openhands-website \
  --search "update-version-<version>" --json number,title,url

Approve and merge the PR so users get the latest version via:

curl -fsSL https://install.openhands.dev/install.sh | sh

If the automated PR was not created, trigger the workflow manually:

curl -X POST \
  -H "Authorization: token $GITHUB_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  "https://api.github.com/repos/OpenHands/OpenHands-CLI/actions/workflows/update-install-website.yml/dispatches" \
  -d '{
    "ref": "main",
    "inputs": {
      "version": "<version>"
    }
  }'

Phase 7: Post-Release — Notify the Team

Compose a Slack message for the human to post:

🚀 *CLI v<version> released!*

• PyPI: https://pypi.org/project/openhands/<version>/
• Release: https://github.com/OpenHands/OpenHands-CLI/releases/tag/<version>
• Install website PR: https://github.com/All-Hands-AI/install-openhands-website/pulls

See references/post-release-checklist.md for additional verification steps and troubleshooting.

Quick Reference — Full Checklist

  • Trigger bump-version.yml with target version
  • All CI checks pass on the bump PR
  • 🚨 Get human approval, then tag the release (no v prefix)
  • 🚨 Get human approval, then merge the PR
  • 🚨 Get human approval, then publish the GitHub release
  • Verify platform binaries are attached to the release
  • Verify openhands package is available on PyPI
  • Approve and merge the install website PR
  • Notify the team on Slack

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.