5,449,098 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

/release-beta

Cut a beta pre-release — bump CalVer with --beta, PR to beta branch, CI auto-tags + publishes to npm @beta. Use when user says 'release beta', 'cut beta', '/release-beta', or wants to publish a beta version for pre-release testing.

Installable skillMITBy Soul-Brews-StudioUpdated Oct 30, 2026
INTENDED FORClaude CodeCodexOpenClawCursorInstall in a listed agent.

instructions.md

---
name: release-beta-f9e20f4885f3
description: "Cut a beta pre-release — bump CalVer with --beta, PR to beta branch, CI auto-tags + publishes to npm @beta. Use when user says 'release beta', 'cut beta', '/release-beta', or wants to publish a beta version for pre-release testing."
argument-hint: ""
secret: true
metadata:
  internal: true
---

# /release-beta

Cut a beta pre-release for the current repo.

Beta sits between alpha (bleeding edge) and main (stable):
`alpha` → `beta` → `main`

## Assumptions

- Repo has `scripts/calver.ts` that supports `--beta` + `--check`
- Repo has a `beta` branch on `origin`
- `calver-release.yml` auto-tags + publishes when a version-bump commit lands on `beta`
- Current branch is NOT `main`, `alpha`, or `beta`

## Step 0: Detect repo + verify state

```bash
date "+🕐 %H:%M %Z (%A %d %B %Y)"
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || { echo "❌ Not in a git repo"; exit 1; }
BRANCH=$(git -C "$REPO_ROOT" branch --show-current)
echo "📁 $REPO_ROOT"
echo "🌿 $BRANCH"
```

Hard checks:

```bash
[ "$BRANCH" != "main" ] || { echo "❌ On main"; exit 1; }
[ "$BRANCH" != "alpha" ] || { echo "❌ On alpha"; exit 1; }
[ "$BRANCH" != "beta" ] || { echo "❌ On beta"; exit 1; }
[ -z "$(git -C "$REPO_ROOT" status --porcelain)" ] || { echo "❌ Working tree dirty"; exit 1; }
git -C "$REPO_ROOT" fetch origin beta 2>/dev/null
```

## Step 1: Locate calver script

```bash
CALVER="$REPO_ROOT/scripts/calver.ts"
[ -f "$CALVER" ] || { echo "❌ No scripts/calver.ts"; exit 1; }
```

## Step 2: Compute target

```bash
TARGET=$(TZ=Asia/Bangkok bun "$CALVER" --beta --check 2>&1 | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+' | head -1)
```

## Step 3: Confirm gate

Show full plan. Wait for user `y`/`yes`. Anything else → abort.

```
## Release plan

  Repo:    [REPO_ROOT]
  Branch:  [BRANCH]
  Target:  [TARGET]
  PR base: beta

What will happen on confirm:
  1. bun calver.ts --beta          # writes [TARGET] to package.json
  2. git add package.json
  3. git commit -m "bump: [TARGET]"
  4. git push -u origin [BRANCH]
  5. gh pr create --base beta

Proceed? [y/N]
```

## Step 4: Execute

```bash
TZ=Asia/Bangkok bun "$CALVER" --beta
git -C "$REPO_ROOT" add package.json
git -C "$REPO_ROOT" commit -m "bump: $TARGET"
git -C "$REPO_ROOT" push -u origin "$BRANCH"
gh pr create --base beta --title "release: $TARGET" --body "Cuts $TARGET on merge via calver-release.yml."
```

## Step 5: Output

Print PR URL. Do NOT auto-merge.

```
✅ PR opened: [URL]
📦 On merge to beta → calver-release.yml cuts [TARGET]
🔍 Install: bun add arra-oracle-skills@beta
```

## Promotion flow

```
alpha (bleeding edge) → beta (pre-release testing) → main (stable)

/release-alpha   → PR to alpha → npm @alpha
/release-beta    → PR to beta  → npm @beta
alpha → main PR  → npm @latest (stable)
```

Beta is for features that passed alpha soak and need wider testing before stable.

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.