garrytan avatar

Gstack Upgrade

Upgrade the gstack install to the latest release, with auto-upgrade and snooze handling built in.

CCM score
62 of 100
skills.sh installs
388
GitHub stars
142.6K
last updated
Nov 25, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the upgrade flow for gstack skills: prompt the user, detect the install type, save the old version, and fast-forward the checkout
  • Handles git installs (global or local) and vendored copies, with backup restore for vendored installs and a recorded pre-upgrade commit for git installs
  • Enforces a Bun minimum-version check before advancing, and a stop when a local checkout has diverged from the upstream release channel
  • Designed for gstack users who want updates offered, snoozed, or applied automatically through the gstack-config settings

Install

$ npx -y skills add garrytan/gstack --skill gstack-upgrade -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

/gstack-upgrade

Inline upgrade flow

This section is referenced by all skill preambles when they detect UPGRADE_AVAILABLE.

Step 1: Ask the user (or auto-upgrade)

First, check if auto-upgrade is enabled:

_AUTO=""
[ "${GSTACK_AUTO_UPGRADE:-}" = "1" ] && _AUTO="true"
[ -z "$_AUTO" ] && _AUTO=$(~/.claude/skills/gstack/bin/gstack-config get auto_upgrade 2>/dev/null || true)
echo "AUTO_UPGRADE=$_AUTO"

If AUTO_UPGRADE=true or AUTO_UPGRADE=1: Skip AskUserQuestion. Log "Auto-upgrading gstack v{old} → v{new}..." and proceed directly to Step 2. On setup failure, follow Step 4's install-specific recovery: vendored installs restore their backup; git installs stop with the pre-upgrade commit recorded, without a destructive reset. Never claim restoration unless it actually succeeded.

Details

Repository
github.com/garrytan/gstack
Category
Git & Releases
License
MIT
First seen
Nov 25, 2026

More from garrytan/gstack

All 63

Similar to Gstack Upgrade

More Git & Releases