Skills Explorer Add Skills

gstack-upgrade

An agent skill by garrytan, from garrytan/gstack. Tags: automation, deployment, setup.

What it does

Upgrade gstack to the latest version.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

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

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/garrytan/gstack
cp -r gstack/gstack-upgrade ~/.claude/skills/gstack-upgrade

Safety box score

Grade D, elevated risk: 65 of 100 risk points, rated 2026-10-16. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill upgrades gstack by fetching remote code, replacing the local install, running migrations, and pruning stale state under the user's home directory. The main risks are destructive rollback/reset behavior, authenticated GitHub/GitLab repo changes, and runtime execution of externally fetched installers during the upgrade.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)It runs shell commands and external installers, including `git pull --ff-only`, `git reset --hard origin/main`, and `bunx playwright install chromium`, so the agent can execute code fetched during the upgrade.
Network access3 (high)It downloads from and talks to remote services with `git fetch origin`, `git clone --depth 1 https://github.com/garrytan/gstack.git`, `gh repo rename`, and `bunx playwright install chromium`, so upgrade traffic leaves the machine and pulls in remote content.
Filesystem reach3 (high)It writes and deletes in the user's home tree and can recursively remove installs or caches, e.g. `rm -rf "$INSTALL_DIR"`, `rm -rf "${rev_dir}"`, and `rm -rf "$LOCAL_GSTACK"`.
Secrets & credentials2 (moderate)It operates through authenticated account state (`gh auth status`, `glab auth status`) and edits home-state/config files like `~/.claude`, `~/.gstack`, and `~/.gbrain`, so it can act with the person's logged-in credentials and stored settings.
Privilege & persistence0 (none)There is no `sudo`, service registration, global package install, or shell/OS startup-file editing in the shipped scripts.
Instruction hijack surface1 (low)The skill tells the agent to skip prompts and proceed automatically in some modes, e.g. `Skip AskUserQuestion` when auto-upgrade is enabled and `Proceed directly to Step 2`, but it does not fetch or follow untrusted prompt text.
Irreversible actions3 (high)Its purpose is to make changes automatically, including replacing the install, deleting stale copies, stopping daemons, and in migrations renaming remote repos or sources with `--yes`/`--ff-only` behavior.
Transparency2 (moderate)The bundle is readable, but it triggers unpinned runtime-fetched content such as `git clone --depth 1 https://github.com/garrytan/gstack.git` and `bunx playwright install chromium`, which a static reviewer cannot inspect from these files.

Before installing

Rated 2026-10-16 by an automated review of 17 files from the skill's repository.

Source

Repository
garrytan/gstack (all skills from this repository)
Path
gstack-upgrade/SKILL.md
Branch
main
Updated
2026-10-05