From 2a8b2d9567b8233edc0be5904cdbca294f6a22b8 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Mon, 16 Mar 2026 13:03:49 -0500 Subject: [PATCH] feat: /gstack-upgrade standalone uses --force for fresh check Co-Authored-By: Claude Opus 4.6 (1M context) --- gstack-upgrade/SKILL.md | 11 ++++++++++- gstack-upgrade/SKILL.md.tmpl | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gstack-upgrade/SKILL.md b/gstack-upgrade/SKILL.md index 42f13f69..9d635651 100644 --- a/gstack-upgrade/SKILL.md +++ b/gstack-upgrade/SKILL.md @@ -189,4 +189,13 @@ After showing What's New, continue with whatever skill the user originally invok ## Standalone usage -When invoked directly as `/gstack-upgrade` (not from a preamble), follow Steps 2-6 above. If already on the latest version, tell the user: "You're already on the latest version (v{version})." +When invoked directly as `/gstack-upgrade` (not from a preamble): + +1. Force a fresh update check (bypass cache): +```bash +~/.claude/skills/gstack/bin/gstack-update-check --force +``` +Use the output to determine if an upgrade is available. + +2. If `UPGRADE_AVAILABLE `: follow Steps 2-6 above. +3. If no output (up to date): tell the user "You're already on the latest version (v{version})." diff --git a/gstack-upgrade/SKILL.md.tmpl b/gstack-upgrade/SKILL.md.tmpl index a199db6c..a441b8d6 100644 --- a/gstack-upgrade/SKILL.md.tmpl +++ b/gstack-upgrade/SKILL.md.tmpl @@ -187,4 +187,13 @@ After showing What's New, continue with whatever skill the user originally invok ## Standalone usage -When invoked directly as `/gstack-upgrade` (not from a preamble), follow Steps 2-6 above. If already on the latest version, tell the user: "You're already on the latest version (v{version})." +When invoked directly as `/gstack-upgrade` (not from a preamble): + +1. Force a fresh update check (bypass cache): +```bash +~/.claude/skills/gstack/bin/gstack-update-check --force +``` +Use the output to determine if an upgrade is available. + +2. If `UPGRADE_AVAILABLE `: follow Steps 2-6 above. +3. If no output (up to date): tell the user "You're already on the latest version (v{version})."