gstack-upgrade
Skill36 starsChanged 6 months agoMITView on GitHub
Upgrade gstack to the latest version. Detects global vs vendored install, runs the upgrade, and shows what's new. Use when asked to "upgrade gstack", "update gstack", or "get latest version".
- Deletes or force-pushes
17 other projects use a version of this, 12 of them edited.
Adopted by
Most recently taken up by
- garrytan/gstackedited, first seen Oct 7, 2026
- leishifu666/skillsedited, first seen Sep 29, 2026
- Samin12/skillsedited, first seen Aug 14, 2026
- greenharborlabs/claude-skillstheir own version, first seen Aug 9, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Aug 6, 2026
- Biznomad/claude-skillstheir own version, first seen Jul 14, 2026
Used with
Projects with it also use open-gstack-browser, gstack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 4 projects that use this
ayudaySkillgstack
Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with elements, verify page state, diff before/after actions, take annotated screenshots, check responsive layouts, test forms and uploads, handle dialogs, and assert element states. ~100ms per command. Use when you need to test a feature, verify a deployment, dogfood a user flow, or file a bug with evidence.
Also in 6 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 6 projects that use this
AICreator-WindSkilldocument-release
技术作家工具。更新项目文档。
Also in 6 projects that use this
Kit4SomeSkillunfreeze
Also in 6 projects that use this
AICreator-WindSkillqa-only
纯 QA 报告工具。只生成 bug 报告,不修复。
Also in 6 projects that use this
- +3 more from ayuday
- +1 more from AICreator-Wind
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 12
- garrytan/gstack★ 143k23% same
- lucas-flatwhite/gstack-ko★ 4481% same
- WillNigri/Agentic-Tool-Optimization★ 3484% same
- CarbeneAI/Forge★ 984% same
- Samin12/skills★ 990% same
- CodeWithBehnam/cc-docs★ 278% same
- leishifu666/skills★ 147% same
- mahiunfiltered/claude-code-skills★ 187% same
- sagnikmitra/skills★ 181% same
- adryanmoldokkr32-pixel/gstack★ 086% same
2 more not listed
Wrote their own version · 5
- mphaxise/gstack-port-for-codex★ 4same name
- nileshteji/skills★ 1same name
- Biznomad/claude-skills★ 0same name
- greenharborlabs/claude-skills★ 0same name
- Moliboy5000/.claude★ 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 repository50 other files it gives its agents.
- gs:autoplanSkill
- gs:benchmark-modelsSkill
- gs:benchmarkSkill
- gs:browseSkill
- gs:canarySkill
- gs:carefulSkill
- gs:checkpointSkill
- gs:codexSkill
- context-restoreSkill
- context-saveSkill
- gs:csoSkill
- gs:design-consultationSkill
- gs:design-htmlSkill
- gs:design-reviewSkill
- gs:design-shotgunSkill
- gs:devex-reviewSkill
- document-generateSkill
- gs:document-releaseSkill
- gs:freezeSkill
- gs:guardSkill
- gs:healthSkill
- gs:investigateSkill
- gs:land-and-deploySkill
- gs:landing-reportSkill
- gs:learnSkill
- gs:maintainer-auditorSkill
- make-pdfSkill
- gs:office-hoursSkill
- gs:open-gstack-browserSkill
- gs:pair-agentSkill
- gs:plan-ceo-reviewSkill
- gs:plan-design-reviewSkill
- gs:plan-devex-reviewSkill
- gs:plan-eng-reviewSkill
- gs:plan-tuneSkill
- gs:qa-onlySkill
- gs:qaSkill
- gs:retroSkill
- gs:reviewSkill
- gs:scrapeSkill
- gs:setup-browser-cookiesSkill
- gs:setup-deploySkill
- gs:setup-gbrainSkill
- gs:shipSkill
- gs:skillifySkill
- gs:gstackSkill
- specSkill
- gs:sync-gbrainSkill
- gs:unfreezeSkill
- gs:gstack-upgradeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 7 are common, 0 are distinctive, and 10 are very specific to this project.
7
Common
Most of the 13 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 61
If "Not now": Write snooze state with escalating backoff (first snooze = 24h, second = 48h, third+ = 1 week), then continue with the …
- Common: line 122
Use the install directory from Step 2's output below:
- Common: line 130
Use the install type and directory detected in Step 2:
- Very specific: line 141
If $STASH_OUTPUT contains "Saved working directory", warn the user: "Note: local changes were stashed.
- Common: line 157
Use the install directory from Step 2.
- Very specific: line 174
If
LOCAL_GSTACKis non-empty ANDTEAM_MODEistrue: Remove the vendored copy. Team mode uses the global install as the single source … - Very specific: line 197
If ./setup fails, restore from backup and warn the user:
- Very specific: line 207
After ./setup completes, run any migration scripts for versions between the old and new version.
- Very specific: line 242
Read $INSTALL_DIR/CHANGELOG.md.
- Common: line 259
After showing What's New, continue with whatever skill the user originally invoked.
- Very specific: line 265
When invoked directly as /gstack-upgrade (not from a preamble):
- Common: line 273
Use the output to determine if an upgrade is available.
- Very specific: line 275
If UPGRADE_AVAILABLE <old> <new>: follow Steps 2-6 above.
- Common: line 277
If no output (primary is up to date): check for a stale local vendored copy.
- Very specific: line 279
Run the Step 2 bash block above to detect the primary install type and directory (INSTALL_TYPE and INSTALL_DIR).
- Very specific: line 283
If
LOCAL_GSTACKis non-empty ANDTEAM_MODEistrue: Remove the vendored copy using the Step 4.5 team-mode removal bash block above. - Very specific: line 293
If versions differ: follow the Step 4.5 sync bash block above to update the local copy from the primary.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --><!-- Regenerate: bun run gen:skill-docs -->/gstack-upgrade
Upgrade gstack to the latest version and show what's new.
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=$($GSTACK_ROOT/bin/gstack-config get auto_upgrade | Out-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. If ./setup fails during auto-upgrade, restore from backup (.bak directory) and warn the user: "Auto-upgrade failed — restored previous version. Run /gstack-upgrade manually to retry."
Otherwise, use AskUserQuestion:
- Question: "gstack v{new} is available (you're on v{old}). Upgrade now?"
- Options: ["Yes, upgrade now", "Always keep me up to date", "Not now", "Never ask again"]
If "Yes, upgrade now": Proceed to Step 2.
If "Always keep me up to date":
$GSTACK_ROOT/bin/gstack-config set auto_upgrade trueTell user: "Auto-upgrade enabled. Future updates will install automatically." Then proceed to Step 2.
If "Not now": Write snooze state with escalating backoff (first snooze = 24h, second = 48h, third+ = 1 week), then continue with the current skill. Do not mention the upgrade again.
_SNOOZE_FILE="$HOME/.gstack/update-snoozed"
_REMOTE_VER="{new}"
_CUR_LEVEL=0
if [ -f "$_SNOOZE_FILE" ]; then
_SNOOZED_VER=$(awk '{print $1}' "$_SNOOZE_FILE")
if [ "$_SNOOZED_VER" = "$_REMOTE_VER" ]; then
_CUR_LEVEL=$(awk '{print $2}' "$_SNOOZE_FILE")
case "$_CUR_LEVEL" in *[!0-9]*) _CUR_LEVEL=0 ;; esac
fi
fi
_NEW_LEVEL=$((_CUR_LEVEL + 1))
[ "$_NEW_LEVEL" -gt 3 ] ; _NEW_LEVEL=3
echo "$_REMOTE_VER $_NEW_LEVEL $(date +%s)" > "$_SNOOZE_FILE"Note: {new} is the remote version from the UPGRADE_AVAILABLE output — substitute it from the update check result.
Tell user the snooze duration: "Next reminder in 24h" (or 48h or 1 week, depending on level). Tip: "Set auto_upgrade: true in ~/.gstack/config.yaml for automatic upgrades."
If "Never ask again":
$GSTACK_ROOT/bin/gstack-config set update_check falseTell user: "Update checks disabled. Run $GSTACK_ROOT/bin/gstack-config set update_check true to re-enable."
Continue with the current skill.
Step 2: Detect install type
if [ -d "$HOME/.agents/skills/gstack/.git" ]; then
INSTALL_TYPE="global-git"
INSTALL_DIR="$HOME/.agents/skills/gstack"
elif [ -d "$HOME/.gstack/repos/gstack/.git" ]; then
INSTALL_TYPE="global-git"
INSTALL_DIR="$HOME/.gstack/repos/gstack"
elif [ -d ".agents/skills/gstack/.git" ]; then
INSTALL_TYPE="local-git"
INSTALL_DIR=".agents/skills/gstack"
elif [ -d ".agents/skills/gstack/.git" ]; then
INSTALL_TYPE="local-git"
INSTALL_DIR=".agents/skills/gstack"
elif [ -d ".agents/skills/gstack" ]; then
INSTALL_TYPE="vendored"
INSTALL_DIR=".agents/skills/gstack"
elif [ -d "$HOME/.agents/skills/gstack" ]; then
INSTALL_TYPE="vendored-global"
INSTALL_DIR="$HOME/.agents/skills/gstack"
else
echo "ERROR: gstack not found"
exit 1
fi
echo "Install type: $INSTALL_TYPE at $INSTALL_DIR"The install type and directory path printed above will be used in all subsequent steps.
Step 3: Save old version
Use the install directory from Step 2's output below:
OLD_VERSION=$(cat "$INSTALL_DIR/VERSION" | Out-Null ; echo "unknown")Step 4: Upgrade
Use the install type and directory detected in Step 2:
For git installs (global-git, local-git):
cd "$INSTALL_DIR"
STASH_OUTPUT=$(git stash 2>&1)
git fetch origin
git reset --hard origin/main
./setupIf $STASH_OUTPUT contains "Saved working directory", warn the user: "Note: local changes were stashed. Run git stash pop in the skill directory to restore them."
For vendored installs (vendored, vendored-global):
PARENT=$(dirname "$INSTALL_DIR")
TMP_DIR=$(mktemp -d)
git clone --depth 1 https://github.com/garrytan/gstack.git "$TMP_DIR/gstack"
mv "$INSTALL_DIR" "$INSTALL_DIR.bak"
mv "$TMP_DIR/gstack" "$INSTALL_DIR"
cd "$INSTALL_DIR" ; ./setup
Remove-Item -Recurse -Force "$INSTALL_DIR.bak" "$TMP_DIR"Step 4.5: Handle local vendored copy
Use the install directory from Step 2. Check if there's also a local vendored copy, and whether team mode is active:
_ROOT=$(git rev-parse --show-toplevel | Out-Null)
LOCAL_GSTACK=""
if [ -n "$_ROOT" ] ; [ -d "$_ROOT/.agents/skills/gstack" ]; then
_RESOLVED_LOCAL=$(cd "$_ROOT/.agents/skills/gstack" ; pwd -P)
_RESOLVED_PRIMARY=$(cd "$INSTALL_DIR" ; pwd -P)
if [ "$_RESOLVED_LOCAL" != "$_RESOLVED_PRIMARY" ]; then
LOCAL_GSTACK="$_ROOT/.agents/skills/gstack"
fi
fi
_TEAM_MODE=$($GSTACK_ROOT/bin/gstack-config get team_mode | Out-Null ; echo "false")
echo "LOCAL_GSTACK=$LOCAL_GSTACK"
echo "TEAM_MODE=$_TEAM_MODE"If LOCAL_GSTACK is non-empty AND TEAM_MODE is true: Remove the vendored copy. Team mode uses the global install as the single source of truth.
cd "$_ROOT"
git rm -r --cached .agents/skills/gstack/ | Out-Null ; true
if ! grep -qF '.agents/skills/gstack/' .gitignore | Out-Null; then
echo '.agents/skills/gstack/' >> .gitignore
fi
Remove-Item -Recurse -Force "$LOCAL_GSTACK"Tell user: "Removed vendored copy at $LOCAL_GSTACK (team mode active — global install is the source of truth). Commit the .gitignore change when ready."
If LOCAL_GSTACK is non-empty AND TEAM_MODE is NOT true: Update it by copying from the freshly-upgraded primary install (same approach as README vendored install):
mv "$LOCAL_GSTACK" "$LOCAL_GSTACK.bak"
cp -Rf "$INSTALL_DIR" "$LOCAL_GSTACK"
Remove-Item -Recurse -Force "$LOCAL_GSTACK/.git"
cd "$LOCAL_GSTACK" ; ./setup
Remove-Item -Recurse -Force "$LOCAL_GSTACK.bak"Tell user: "Also updated vendored copy at $LOCAL_GSTACK — commit .agents/skills/gstack/ when you're ready."
If ./setup fails, restore from backup and warn the user:
Remove-Item -Recurse -Force "$LOCAL_GSTACK"
mv "$LOCAL_GSTACK.bak" "$LOCAL_GSTACK"Tell user: "Sync failed — restored previous version at $LOCAL_GSTACK. Run /gstack-upgrade manually to retry."
Step 4.75: Run version migrations
After ./setup completes, run any migration scripts for versions between the old
and new version. Migrations handle state fixes that ./setup alone can't cover
(stale config, orphaned files, directory structure changes).
MIGRATIONS_DIR="$INSTALL_DIR/gstack-upgrade/migrations"
if [ -d "$MIGRATIONS_DIR" ]; then
for migration in $(find "$MIGRATIONS_DIR" -maxdepth 1 -name 'v*.sh' -type f | Out-Null | sort -V); do
# Extract version from filename: v0.15.2.0.sh → 0.15.2.0
m_ver="$(basename "$migration" .sh | sed 's/^v//')"
# Run if this migration version is newer than old version
# (simple string compare works for dotted versions with same segment count)
if [ "$OLD_VERSION" != "unknown" ] ; [ "$(printf '%s\n%s' "$OLD_VERSION" "$m_ver" | sort -V | head -1)" = "$OLD_VERSION" ] ; [ "$OLD_VERSION" != "$m_ver" ]; then
echo "Running migration $m_ver..."
bash "$migration" ; echo " Warning: migration $m_ver had errors (non-fatal)"
fi
done
fiMigrations are idempotent bash scripts in gstack-upgrade/migrations/. Each is named
v{VERSION}.sh and runs only when upgrading from an older version. See CONTRIBUTING.md
for how to add new migrations.
Step 5: Write marker + clear cache
New-Item -ItemType Directory -Force ~/.gstack
echo "$OLD_VERSION" > ~/.gstack/just-upgraded-from
Remove-Item -Force ~/.gstack/last-update-check
Remove-Item -Force ~/.gstack/update-snoozedStep 6: Show What's New
Read $INSTALL_DIR/CHANGELOG.md. Find all version entries between the old version and the new version. Summarize as 5-7 bullets grouped by theme. Don't overwhelm — focus on user-facing changes. Skip internal refactors unless they're significant.
Format:
gstack v{new} — upgraded from v{old}!
What's new:
- [bullet 1]
- [bullet 2]
- ...
Happy shipping!Step 7: Continue
After showing What's New, continue with whatever skill the user originally invoked. The upgrade is done — no further action needed.
Standalone usage
When invoked directly as /gstack-upgrade (not from a preamble):
- Force a fresh update check (bypass cache):
$GSTACK_ROOT/bin/gstack-update-check --force | Out-Null ; \
.agents/skills/gstack/bin/gstack-update-check --force | Out-Null ; trueUse the output to determine if an upgrade is available.
- If
UPGRADE_AVAILABLE <old> <new>: follow Steps 2-6 above. - If no output (primary is up to date): check for a stale local vendored copy.
Run the Step 2 bash block above to detect the primary install type and directory (INSTALL_TYPE and INSTALL_DIR). Then run the Step 4.5 detection bash block above to check for a local vendored copy (LOCAL_GSTACK) and team mode status (TEAM_MODE).
If LOCAL_GSTACK is empty (no local vendored copy): tell the user "You're already on the latest version (v{version})."
If LOCAL_GSTACK is non-empty AND TEAM_MODE is true: Remove the vendored copy using the Step 4.5 team-mode removal bash block above. Tell user: "Global v{version} is up to date. Removed stale vendored copy (team mode active). Commit the .gitignore change when ready."
If LOCAL_GSTACK is non-empty AND TEAM_MODE is NOT true, compare versions:
PRIMARY_VER=$(cat "$INSTALL_DIR/VERSION" | Out-Null ; echo "unknown")
LOCAL_VER=$(cat "$LOCAL_GSTACK/VERSION" | Out-Null ; echo "unknown")
echo "PRIMARY=$PRIMARY_VER LOCAL=$LOCAL_VER"If versions differ: follow the Step 4.5 sync bash block above to update the local copy from the primary. Tell user: "Global v{PRIMARY_VER} is up to date. Updated local vendored copy from v{LOCAL_VER} → v{PRIMARY_VER}. Commit .agents/skills/gstack/ when you're ready."
If versions match: tell the user "You're on the latest version (v{PRIMARY_VER}). Global and local vendored copy are both up to date."
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
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.

