[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E00JG9J6M9PJNJ2Y2SWTCZ":3,"skill-same:01M6E00JG9J6M9PJNJ2Y2SWTCZ":130},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6E00JG9J6M9PJNJ2Y2SWTCZ","gstack-upgrade",null,"Upgrade gstack to the latest version.","westn\u002Fgstack-pi-port","westn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F224833?v=4","01M6DZW54VKKV0RAMJWH6EGXZ5","Fredrik Nordell","01M6DZW596W0RYE47PT4SZSDJA",1,"MIT","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002FSKILL.md",[],[19,20,21,22,23,24],"gstack upgrade","gstack","upgrade","update","version","get","2026-11-10 10:12:30",false,"---\nname: gstack-upgrade\nversion: 1.1.0\ndescription: Upgrade gstack to the latest version.\ntriggers:\n  - upgrade gstack\n  - update gstack version\n  - get latest gstack\n---\n\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nDetects global vs vendored install,\nruns the upgrade, and shows what's new. Use when asked to \"upgrade gstack\",\n\"update gstack\", or \"get latest version\".\n\nVoice triggers (speech-to-text aliases): \"upgrade the tools\", \"update the tools\", \"gee stack upgrade\", \"g stack upgrade\".\n\n# \u002Fskill:gstack-upgrade\n\nUpgrade gstack to the latest version and show what's new.\n\n## Inline upgrade flow\n\nThis section is referenced by all skill preambles when they detect `UPGRADE_AVAILABLE`.\n\n### Step 1: Ask the user (or auto-upgrade)\n\nFirst, check if auto-upgrade is enabled:\n```bash\n_AUTO=\"\"\n[ \"${GSTACK_AUTO_UPGRADE:-}\" = \"1\" ] && _AUTO=\"true\"\n[ -z \"$_AUTO\" ] && _AUTO=$(~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get auto_upgrade 2>\u002Fdev\u002Fnull || true)\necho \"AUTO_UPGRADE=$_AUTO\"\n```\n\n**If `AUTO_UPGRADE=true` or `AUTO_UPGRADE=1`:** Skip asking the user in chat. Log \"Auto-upgrading gstack v{old} → v{new}...\" and proceed directly to Step 2. If `.\u002Fsetup` fails during auto-upgrade, restore from backup (`.bak` directory) and warn the user: \"Auto-upgrade failed — restored previous version. Run `\u002Fskill:gstack-upgrade` manually to retry.\"\n\n**Otherwise**, ask the user in chat:\n- Question: \"gstack **v{new}** is available (you're on v{old}). Upgrade now?\"\n- Options: [\"Yes, upgrade now\", \"Always keep me up to date\", \"Not now\", \"Never ask again\"]\n\n**If \"Yes, upgrade now\":** Proceed to Step 2.\n\n**If \"Always keep me up to date\":**\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set auto_upgrade true\n```\nTell user: \"Auto-upgrade enabled. Future updates will install automatically.\" Then proceed to Step 2.\n\n**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.\n```bash\n_SNOOZE_FILE=\"$HOME\u002F.gstack\u002Fupdate-snoozed\"\n_REMOTE_VER=\"{new}\"\n_CUR_LEVEL=0\nif [ -f \"$_SNOOZE_FILE\" ]; then\n  _SNOOZED_VER=$(awk '{print $1}' \"$_SNOOZE_FILE\")\n  if [ \"$_SNOOZED_VER\" = \"$_REMOTE_VER\" ]; then\n    _CUR_LEVEL=$(awk '{print $2}' \"$_SNOOZE_FILE\")\n    case \"$_CUR_LEVEL\" in *[!0-9]*) _CUR_LEVEL=0 ;; esac\n  fi\nfi\n_NEW_LEVEL=$((_CUR_LEVEL + 1))\n[ \"$_NEW_LEVEL\" -gt 3 ] && _NEW_LEVEL=3\necho \"$_REMOTE_VER $_NEW_LEVEL $(date +%s)\" > \"$_SNOOZE_FILE\"\n```\nNote: `{new}` is the remote version from the `UPGRADE_AVAILABLE` output — substitute it from the update check result.\n\nTell user the snooze duration: \"Next reminder in 24h\" (or 48h or 1 week, depending on level). Tip: \"Set `auto_upgrade: true` in `~\u002F.gstack\u002Fconfig.yaml` for automatic upgrades.\"\n\n**If \"Never ask again\":**\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set update_check false\n```\nTell user: \"Update checks disabled. Run `~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set update_check true` to re-enable.\"\nContinue with the current skill.\n\n### Step 2: Detect install type\n\n```bash\nif [ -d \"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"global-git\"\n  INSTALL_DIR=\"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\"\nelif [ -d \"$HOME\u002F.gstack\u002Frepos\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"global-git\"\n  INSTALL_DIR=\"$HOME\u002F.gstack\u002Frepos\u002Fgstack\"\nelif [ -d \".pi\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"local-git\"\n  INSTALL_DIR=\".pi\u002Fskills\u002Fgstack\"\nelif [ -d \".agents\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"local-git\"\n  INSTALL_DIR=\".agents\u002Fskills\u002Fgstack\"\nelif [ -d \".pi\u002Fskills\u002Fgstack\" ]; then\n  INSTALL_TYPE=\"vendored\"\n  INSTALL_DIR=\".pi\u002Fskills\u002Fgstack\"\nelif [ -d \"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\" ]; then\n  INSTALL_TYPE=\"vendored-global\"\n  INSTALL_DIR=\"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\"\nelse\n  echo \"ERROR: gstack not found\"\n  exit 1\nfi\necho \"Install type: $INSTALL_TYPE at $INSTALL_DIR\"\n```\n\nThe install type and directory path printed above will be used in all subsequent steps.\n\n### Step 3: Save old version\n\nUse the install directory from Step 2's output below:\n\n```bash\nOLD_VERSION=$(cat \"$INSTALL_DIR\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\n```\n\n### Step 4: Upgrade\n\nUse the install type and directory detected in Step 2:\n\n**For git installs** (global-git, local-git):\n\nFast-forward first (#2517) — the same policy the session-update auto-upgrade\nuses. `--autostash` carries local edits over the pull; render-footprint dirt\nis discarded first because it is regenerable and poisons stashes (#2569):\n```bash\ncd \"$INSTALL_DIR\"\n# Discard render-footprint dirt (#2569): pre-v1.67 gbrain-enabled installs\n# ran gen:skill-docs:user IN PLACE, leaving generated SKILL.md \u002F sections\n# files permanently modified. They are regenerable (setup re-renders to\n# ~\u002F.gstack\u002Frender), so discarding is lossless.\ngit checkout -- 'SKILL.md' '*\u002FSKILL.md' '*\u002Fsections\u002F*.md' 2>\u002Fdev\u002Fnull || true\ngit fetch origin\ngit pull --ff-only --autostash origin main && .\u002Fsetup && echo \"FF_OK\"\n```\n\nIf the output ends with `FF_OK`, the upgrade is done — skip the fallback\nbelow entirely.\n\n**Fallback (ff-only refused — local commits or divergence).** `git reset\n--hard` DESTROYS things: a clean tree with unpushed local commits still loses\nthose commits. Gate it (#2517):\n\n1. Run `git status --porcelain` and `git rev-list origin\u002Fmain..HEAD --oneline`\n   in `$INSTALL_DIR`.\n2. If BOTH are empty, the reset is provably safe — run the fallback block\n   below without asking.\n3. Otherwise ask via ask the user in chat (one-way door — destructive), listing\n   exactly what will be discarded: each dirty file and each unpushed commit\n   by hash + subject. Options: **A)** Discard them and upgrade (reset) —\n   requires the explicit letter; **B)** Abort the upgrade so the user can\n   rescue their work first (recommended when local commits exist). Never\n   proceed on a vague reply.\n\n```bash\ncd \"$INSTALL_DIR\"\nSTASH_OUTPUT=$(git stash 2>&1)\ngit reset --hard origin\u002Fmain\n.\u002Fsetup\n```\nIf `$STASH_OUTPUT` contains \"Saved working directory\", warn the user: \"Note: local changes were stashed (any modified generated SKILL.md\u002Fsections files were discarded first — they regenerate on setup). Run `git stash pop` in the skill directory to restore your own changes.\"\n\n**For vendored installs** (vendored, vendored-global):\n```bash\nPARENT=$(dirname \"$INSTALL_DIR\")\n# A stale .bak from a previously crashed upgrade would make the mv below NEST\n# the live install inside it and the failure-restore arm would \"restore\" the\n# stale backup. It may also be the only good copy from that crashed run —\n# abort and let the human inspect, never delete it silently.\n[ -e \"$INSTALL_DIR.bak\" ] && { echo \"ERROR: stale backup exists at $INSTALL_DIR.bak (from a previous failed upgrade?) — inspect it, salvage\u002Fremove it, then re-run.\" >&2; exit 1; }\nTMP_DIR=$(mktemp -d) || { echo \"ERROR: mktemp failed — aborting upgrade (install untouched).\" >&2; exit 1; }\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port.git \"$TMP_DIR\u002Fgstack-pi-port\" || { echo \"ERROR: clone failed — aborting upgrade (install untouched).\" >&2; rm -rf \"$TMP_DIR\"; exit 1; }\nmv \"$INSTALL_DIR\" \"$INSTALL_DIR.bak\"\nif mv \"$TMP_DIR\u002Fgstack-pi-port\u002Fport\u002Fgstack\" \"$INSTALL_DIR\"; then\n  cd \"$INSTALL_DIR\" && .\u002Fsetup\n  rm -rf \"$INSTALL_DIR.bak\" \"$TMP_DIR\"\nelse\n  mv \"$INSTALL_DIR.bak\" \"$INSTALL_DIR\"\n  echo \"ERROR: swap failed — previous install restored; upgrade aborted.\" >&2\n  rm -rf \"$TMP_DIR\"\n  exit 1\nfi\n```\n\n### Step 4.5: Handle local vendored copy\n\nUse the install directory from Step 2. Check if there's also a local vendored copy, and whether team mode is active:\n\n```bash\n_ROOT=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\nLOCAL_GSTACK=\"\"\nif [ -n \"$_ROOT\" ] && [ -d \"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\" ]; then\n  _RESOLVED_LOCAL=$(cd \"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\" && pwd -P)\n  _RESOLVED_PRIMARY=$(cd \"$INSTALL_DIR\" && pwd -P)\n  if [ \"$_RESOLVED_LOCAL\" != \"$_RESOLVED_PRIMARY\" ]; then\n    LOCAL_GSTACK=\"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\"\n  fi\nfi\n_TEAM_MODE=$(~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get team_mode 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"LOCAL_GSTACK=$LOCAL_GSTACK\"\necho \"TEAM_MODE=$_TEAM_MODE\"\n```\n\n**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.\n\n```bash\ncd \"$_ROOT\"\ngit rm -r --cached .pi\u002Fskills\u002Fgstack\u002F 2>\u002Fdev\u002Fnull || true\nif ! grep -qF '.pi\u002Fskills\u002Fgstack\u002F' .gitignore 2>\u002Fdev\u002Fnull; then\n  echo '.pi\u002Fskills\u002Fgstack\u002F' >> .gitignore\nfi\nrm -rf \"$LOCAL_GSTACK\"\n```\nTell user: \"Removed vendored copy at `$LOCAL_GSTACK` (team mode active — global install is the source of truth). Commit the `.gitignore` change when ready.\"\n\n**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):\n```bash\nmv \"$LOCAL_GSTACK\" \"$LOCAL_GSTACK.bak\"\ncp -Rf \"$INSTALL_DIR\" \"$LOCAL_GSTACK\"\nrm -rf \"$LOCAL_GSTACK\u002F.git\"\ncd \"$LOCAL_GSTACK\" && .\u002Fsetup\nrm -rf \"$LOCAL_GSTACK.bak\"\n```\nTell user: \"Also updated vendored copy at `$LOCAL_GSTACK` — commit `.pi\u002Fskills\u002Fgstack\u002F` when you're ready.\"\n\nIf `.\u002Fsetup` fails, restore from backup and warn the user:\n```bash\nrm -rf \"$LOCAL_GSTACK\"\nmv \"$LOCAL_GSTACK.bak\" \"$LOCAL_GSTACK\"\n```\nTell user: \"Sync failed — restored previous version at `$LOCAL_GSTACK`. Run `\u002Fskill:gstack-upgrade` manually to retry.\"\n\n### Step 4.75: Run version migrations\n\nAfter `.\u002Fsetup` completes, run any migration scripts for versions between the old\nand new version. Migrations handle state fixes that `.\u002Fsetup` alone can't cover\n(stale config, orphaned files, directory structure changes).\n\n```bash\nMIGRATIONS_DIR=\"$INSTALL_DIR\u002Fgstack-upgrade\u002Fmigrations\"\nif [ -d \"$MIGRATIONS_DIR\" ]; then\n  for migration in $(find \"$MIGRATIONS_DIR\" -maxdepth 1 -name 'v*.sh' -type f 2>\u002Fdev\u002Fnull | sort -V); do\n    # Extract version from filename: v0.15.2.0.sh → 0.15.2.0\n    m_ver=\"$(basename \"$migration\" .sh | sed 's\u002F^v\u002F\u002F')\"\n    # Run if this migration version is newer than old version\n    # (simple string compare works for dotted versions with same segment count)\n    if [ \"$OLD_VERSION\" != \"unknown\" ] && [ \"$(printf '%s\\n%s' \"$OLD_VERSION\" \"$m_ver\" | sort -V | head -1)\" = \"$OLD_VERSION\" ] && [ \"$OLD_VERSION\" != \"$m_ver\" ]; then\n      echo \"Running migration $m_ver...\"\n      # GSTACK_INSTALL_DIR: migrations that clean the INSTALL (not just\n      # ~\u002F.gstack state) default to ~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack when unset —\n      # a repo-local install would silently no-op without this.\n      GSTACK_INSTALL_DIR=\"$INSTALL_DIR\" bash \"$migration\" || echo \"  Warning: migration $m_ver had errors (non-fatal)\"\n    fi\n  done\nfi\n```\n\nMigrations are idempotent bash scripts in `gstack-upgrade\u002Fmigrations\u002F`. Each is named\n`v{VERSION}.sh` and runs only when upgrading from an older version. See CONTRIBUTING.md\nfor how to add new migrations.\n\n### Step 4.8: Stop any stale daemon (unconditional)\n\nA browse daemon started before the upgrade keeps serving the OLD binary's code\nuntil it is stopped — it survives `git reset --hard` and `.\u002Fsetup` because the\nrunning process holds the old executable (#2551). Always run this step, using\nthe install directory detected in Step 2.\n\n```bash\nINSTALL_DIR_PLACEHOLDER=\"\u003Cinstall dir from Step 2>\"\nNEW_HASH=$(cat \"$INSTALL_DIR_PLACEHOLDER\u002Fbrowse\u002Fdist\u002F.version\" 2>\u002Fdev\u002Fnull || echo \"\")\n_STATE_FILE=\"${BROWSE_STATE_FILE:-$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\u002F.gstack\u002Fbrowse.json}\"\nif [ -z \"$NEW_HASH\" ] || [ ! -f \"$_STATE_FILE\" ]; then\n  echo \"DAEMON_CHECK=none (no state file or no fresh build hash)\"\nelse\n  DAEMON_PID=$(sed -n 's\u002F.*\"pid\"[[:space:]]*:[[:space:]]*\\([0-9][0-9]*\\).*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  DAEMON_PORT=$(sed -n 's\u002F.*\"port\"[[:space:]]*:[[:space:]]*\\([0-9][0-9]*\\).*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  OLD_HASH=$(sed -n 's\u002F.*\"binaryVersion\"[[:space:]]*:[[:space:]]*\"\\([^\"]*\\)\".*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  if [ -z \"$DAEMON_PID\" ] || ! kill -0 \"$DAEMON_PID\" 2>\u002Fdev\u002Fnull; then\n    echo \"DAEMON_CHECK=dead (no live daemon to stop)\"\n  elif [ \"$OLD_HASH\" = \"$NEW_HASH\" ]; then\n    echo \"DAEMON_CHECK=current (daemon already runs the new binary)\"\n  elif curl -fsS --max-time 2 \"http:\u002F\u002F127.0.0.1:$DAEMON_PORT\u002Fhealth\" 2>\u002Fdev\u002Fnull | grep -q '\"status\":\"healthy\"'; then\n    echo \"DAEMON_CHECK=stale-responsive pid=$DAEMON_PID hash=${OLD_HASH:-unknown} -> $NEW_HASH\"\n    \"$INSTALL_DIR_PLACEHOLDER\u002Fbrowse\u002Fdist\u002Fbrowse\" stop && echo \"DAEMON_STOPPED=yes\"\n  else\n    echo \"DAEMON_CHECK=stale-busy pid=$DAEMON_PID hash=${OLD_HASH:-unknown} -> $NEW_HASH\"\n  fi\nfi\n```\n\nReplace `\u003Cinstall dir from Step 2>` with the actual install directory before\nrunning. Interpret the `DAEMON_CHECK` result:\n\n1. **`stale-responsive` + `DAEMON_STOPPED=yes`:** Tell the user \"Stopped the\n   old browse daemon (binary {OLD_HASH} → {NEW_HASH}). The next browse command\n   starts a fresh daemon on the new binary.\"\n2. **`stale-busy`:** The daemon runs the old binary but is mid-work — DEFER to\n   it, never kill a busy daemon during upgrade. Tell the user: \"A browse daemon\n   is still running the pre-upgrade binary ({OLD_HASH} → {NEW_HASH}) but is\n   busy right now. When it finishes, stop it with `browse stop` — or force it\n   immediately with `browse --force-restart stop` (loses that session's\n   tabs\u002Fcookies\u002Flogins).\"\n3. **`none` \u002F `dead` \u002F `current`:** Nothing to do — say nothing.\n\n### Step 5: Write marker + clear cache\n\n```bash\nmkdir -p ~\u002F.gstack\necho \"$OLD_VERSION\" > ~\u002F.gstack\u002Fjust-upgraded-from\nrm -f ~\u002F.gstack\u002Flast-update-check\nrm -f ~\u002F.gstack\u002Fupdate-snoozed\n```\n\n### Step 6: Show What's New\n\nRead `$INSTALL_DIR\u002FCHANGELOG.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.\n\nFormat:\n```\ngstack v{new} — upgraded from v{old}!\n\nWhat's new:\n- [bullet 1]\n- [bullet 2]\n- ...\n\nHappy shipping!\n```\n\n### Step 7: Continue\n\nAfter showing What's New, continue with whatever skill the user originally invoked. The upgrade is done — no further action needed.\n\n---\n\n## Standalone usage\n\nWhen invoked directly as `\u002Fskill:gstack-upgrade` (not from a preamble):\n\n1. Force a fresh update check (bypass cache):\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check --force 2>\u002Fdev\u002Fnull || \\\n.pi\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check --force 2>\u002Fdev\u002Fnull || true\n```\nUse the output to determine if an upgrade is available.\n\n2. If `UPGRADE_AVAILABLE \u003Cold> \u003Cnew>`: follow Steps 2-6 above.\n\n3. If no output (primary is up to date): check for a stale local vendored copy.\n\nRun 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`).\n\n**If `LOCAL_GSTACK` is empty** (no local vendored copy): tell the user \"You're already on the latest version (v{version}).\"\n\n**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.\"\n\n**If `LOCAL_GSTACK` is non-empty AND `TEAM_MODE` is NOT `true`**, compare versions:\n```bash\nPRIMARY_VER=$(cat \"$INSTALL_DIR\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\nLOCAL_VER=$(cat \"$LOCAL_GSTACK\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"PRIMARY=$PRIMARY_VER LOCAL=$LOCAL_VER\"\n```\n\n**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 `.pi\u002Fskills\u002Fgstack\u002F` when you're ready.\"\n\n**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.\"\n","\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nDetects global vs vendored install,\nruns the upgrade, and shows what's new. Use when asked to \"upgrade gstack\",\n\"update gstack\", or \"get latest version\".\n\nVoice triggers (speech-to-text aliases): \"upgrade the tools\", \"update the tools\", \"gee stack upgrade\", \"g stack upgrade\".\n\n# \u002Fskill:gstack-upgrade\n\nUpgrade gstack to the latest version and show what's new.\n\n## Inline upgrade flow\n\nThis section is referenced by all skill preambles when they detect `UPGRADE_AVAILABLE`.\n\n### Step 1: Ask the user (or auto-upgrade)\n\nFirst, check if auto-upgrade is enabled:\n```bash\n_AUTO=\"\"\n[ \"${GSTACK_AUTO_UPGRADE:-}\" = \"1\" ] && _AUTO=\"true\"\n[ -z \"$_AUTO\" ] && _AUTO=$(~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get auto_upgrade 2>\u002Fdev\u002Fnull || true)\necho \"AUTO_UPGRADE=$_AUTO\"\n```\n\n**If `AUTO_UPGRADE=true` or `AUTO_UPGRADE=1`:** Skip asking the user in chat. Log \"Auto-upgrading gstack v{old} → v{new}...\" and proceed directly to Step 2. If `.\u002Fsetup` fails during auto-upgrade, restore from backup (`.bak` directory) and warn the user: \"Auto-upgrade failed — restored previous version. Run `\u002Fskill:gstack-upgrade` manually to retry.\"\n\n**Otherwise**, ask the user in chat:\n- Question: \"gstack **v{new}** is available (you're on v{old}). Upgrade now?\"\n- Options: [\"Yes, upgrade now\", \"Always keep me up to date\", \"Not now\", \"Never ask again\"]\n\n**If \"Yes, upgrade now\":** Proceed to Step 2.\n\n**If \"Always keep me up to date\":**\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set auto_upgrade true\n```\nTell user: \"Auto-upgrade enabled. Future updates will install automatically.\" Then proceed to Step 2.\n\n**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.\n```bash\n_SNOOZE_FILE=\"$HOME\u002F.gstack\u002Fupdate-snoozed\"\n_REMOTE_VER=\"{new}\"\n_CUR_LEVEL=0\nif [ -f \"$_SNOOZE_FILE\" ]; then\n  _SNOOZED_VER=$(awk '{print $1}' \"$_SNOOZE_FILE\")\n  if [ \"$_SNOOZED_VER\" = \"$_REMOTE_VER\" ]; then\n    _CUR_LEVEL=$(awk '{print $2}' \"$_SNOOZE_FILE\")\n    case \"$_CUR_LEVEL\" in *[!0-9]*) _CUR_LEVEL=0 ;; esac\n  fi\nfi\n_NEW_LEVEL=$((_CUR_LEVEL + 1))\n[ \"$_NEW_LEVEL\" -gt 3 ] && _NEW_LEVEL=3\necho \"$_REMOTE_VER $_NEW_LEVEL $(date +%s)\" > \"$_SNOOZE_FILE\"\n```\nNote: `{new}` is the remote version from the `UPGRADE_AVAILABLE` output — substitute it from the update check result.\n\nTell user the snooze duration: \"Next reminder in 24h\" (or 48h or 1 week, depending on level). Tip: \"Set `auto_upgrade: true` in `~\u002F.gstack\u002Fconfig.yaml` for automatic upgrades.\"\n\n**If \"Never ask again\":**\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set update_check false\n```\nTell user: \"Update checks disabled. Run `~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set update_check true` to re-enable.\"\nContinue with the current skill.\n\n### Step 2: Detect install type\n\n```bash\nif [ -d \"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"global-git\"\n  INSTALL_DIR=\"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\"\nelif [ -d \"$HOME\u002F.gstack\u002Frepos\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"global-git\"\n  INSTALL_DIR=\"$HOME\u002F.gstack\u002Frepos\u002Fgstack\"\nelif [ -d \".pi\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"local-git\"\n  INSTALL_DIR=\".pi\u002Fskills\u002Fgstack\"\nelif [ -d \".agents\u002Fskills\u002Fgstack\u002F.git\" ]; then\n  INSTALL_TYPE=\"local-git\"\n  INSTALL_DIR=\".agents\u002Fskills\u002Fgstack\"\nelif [ -d \".pi\u002Fskills\u002Fgstack\" ]; then\n  INSTALL_TYPE=\"vendored\"\n  INSTALL_DIR=\".pi\u002Fskills\u002Fgstack\"\nelif [ -d \"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\" ]; then\n  INSTALL_TYPE=\"vendored-global\"\n  INSTALL_DIR=\"$HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\"\nelse\n  echo \"ERROR: gstack not found\"\n  exit 1\nfi\necho \"Install type: $INSTALL_TYPE at $INSTALL_DIR\"\n```\n\nThe install type and directory path printed above will be used in all subsequent steps.\n\n### Step 3: Save old version\n\nUse the install directory from Step 2's output below:\n\n```bash\nOLD_VERSION=$(cat \"$INSTALL_DIR\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\n```\n\n### Step 4: Upgrade\n\nUse the install type and directory detected in Step 2:\n\n**For git installs** (global-git, local-git):\n\nFast-forward first (#2517) — the same policy the session-update auto-upgrade\nuses. `--autostash` carries local edits over the pull; render-footprint dirt\nis discarded first because it is regenerable and poisons stashes (#2569):\n```bash\ncd \"$INSTALL_DIR\"\n# Discard render-footprint dirt (#2569): pre-v1.67 gbrain-enabled installs\n# ran gen:skill-docs:user IN PLACE, leaving generated SKILL.md \u002F sections\n# files permanently modified. They are regenerable (setup re-renders to\n# ~\u002F.gstack\u002Frender), so discarding is lossless.\ngit checkout -- 'SKILL.md' '*\u002FSKILL.md' '*\u002Fsections\u002F*.md' 2>\u002Fdev\u002Fnull || true\ngit fetch origin\ngit pull --ff-only --autostash origin main && .\u002Fsetup && echo \"FF_OK\"\n```\n\nIf the output ends with `FF_OK`, the upgrade is done — skip the fallback\nbelow entirely.\n\n**Fallback (ff-only refused — local commits or divergence).** `git reset\n--hard` DESTROYS things: a clean tree with unpushed local commits still loses\nthose commits. Gate it (#2517):\n\n1. Run `git status --porcelain` and `git rev-list origin\u002Fmain..HEAD --oneline`\n   in `$INSTALL_DIR`.\n2. If BOTH are empty, the reset is provably safe — run the fallback block\n   below without asking.\n3. Otherwise ask via ask the user in chat (one-way door — destructive), listing\n   exactly what will be discarded: each dirty file and each unpushed commit\n   by hash + subject. Options: **A)** Discard them and upgrade (reset) —\n   requires the explicit letter; **B)** Abort the upgrade so the user can\n   rescue their work first (recommended when local commits exist). Never\n   proceed on a vague reply.\n\n```bash\ncd \"$INSTALL_DIR\"\nSTASH_OUTPUT=$(git stash 2>&1)\ngit reset --hard origin\u002Fmain\n.\u002Fsetup\n```\nIf `$STASH_OUTPUT` contains \"Saved working directory\", warn the user: \"Note: local changes were stashed (any modified generated SKILL.md\u002Fsections files were discarded first — they regenerate on setup). Run `git stash pop` in the skill directory to restore your own changes.\"\n\n**For vendored installs** (vendored, vendored-global):\n```bash\nPARENT=$(dirname \"$INSTALL_DIR\")\n# A stale .bak from a previously crashed upgrade would make the mv below NEST\n# the live install inside it and the failure-restore arm would \"restore\" the\n# stale backup. It may also be the only good copy from that crashed run —\n# abort and let the human inspect, never delete it silently.\n[ -e \"$INSTALL_DIR.bak\" ] && { echo \"ERROR: stale backup exists at $INSTALL_DIR.bak (from a previous failed upgrade?) — inspect it, salvage\u002Fremove it, then re-run.\" >&2; exit 1; }\nTMP_DIR=$(mktemp -d) || { echo \"ERROR: mktemp failed — aborting upgrade (install untouched).\" >&2; exit 1; }\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port.git \"$TMP_DIR\u002Fgstack-pi-port\" || { echo \"ERROR: clone failed — aborting upgrade (install untouched).\" >&2; rm -rf \"$TMP_DIR\"; exit 1; }\nmv \"$INSTALL_DIR\" \"$INSTALL_DIR.bak\"\nif mv \"$TMP_DIR\u002Fgstack-pi-port\u002Fport\u002Fgstack\" \"$INSTALL_DIR\"; then\n  cd \"$INSTALL_DIR\" && .\u002Fsetup\n  rm -rf \"$INSTALL_DIR.bak\" \"$TMP_DIR\"\nelse\n  mv \"$INSTALL_DIR.bak\" \"$INSTALL_DIR\"\n  echo \"ERROR: swap failed — previous install restored; upgrade aborted.\" >&2\n  rm -rf \"$TMP_DIR\"\n  exit 1\nfi\n```\n\n### Step 4.5: Handle local vendored copy\n\nUse the install directory from Step 2. Check if there's also a local vendored copy, and whether team mode is active:\n\n```bash\n_ROOT=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\nLOCAL_GSTACK=\"\"\nif [ -n \"$_ROOT\" ] && [ -d \"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\" ]; then\n  _RESOLVED_LOCAL=$(cd \"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\" && pwd -P)\n  _RESOLVED_PRIMARY=$(cd \"$INSTALL_DIR\" && pwd -P)\n  if [ \"$_RESOLVED_LOCAL\" != \"$_RESOLVED_PRIMARY\" ]; then\n    LOCAL_GSTACK=\"$_ROOT\u002F.pi\u002Fskills\u002Fgstack\"\n  fi\nfi\n_TEAM_MODE=$(~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get team_mode 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"LOCAL_GSTACK=$LOCAL_GSTACK\"\necho \"TEAM_MODE=$_TEAM_MODE\"\n```\n\n**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.\n\n```bash\ncd \"$_ROOT\"\ngit rm -r --cached .pi\u002Fskills\u002Fgstack\u002F 2>\u002Fdev\u002Fnull || true\nif ! grep -qF '.pi\u002Fskills\u002Fgstack\u002F' .gitignore 2>\u002Fdev\u002Fnull; then\n  echo '.pi\u002Fskills\u002Fgstack\u002F' >> .gitignore\nfi\nrm -rf \"$LOCAL_GSTACK\"\n```\nTell user: \"Removed vendored copy at `$LOCAL_GSTACK` (team mode active — global install is the source of truth). Commit the `.gitignore` change when ready.\"\n\n**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):\n```bash\nmv \"$LOCAL_GSTACK\" \"$LOCAL_GSTACK.bak\"\ncp -Rf \"$INSTALL_DIR\" \"$LOCAL_GSTACK\"\nrm -rf \"$LOCAL_GSTACK\u002F.git\"\ncd \"$LOCAL_GSTACK\" && .\u002Fsetup\nrm -rf \"$LOCAL_GSTACK.bak\"\n```\nTell user: \"Also updated vendored copy at `$LOCAL_GSTACK` — commit `.pi\u002Fskills\u002Fgstack\u002F` when you're ready.\"\n\nIf `.\u002Fsetup` fails, restore from backup and warn the user:\n```bash\nrm -rf \"$LOCAL_GSTACK\"\nmv \"$LOCAL_GSTACK.bak\" \"$LOCAL_GSTACK\"\n```\nTell user: \"Sync failed — restored previous version at `$LOCAL_GSTACK`. Run `\u002Fskill:gstack-upgrade` manually to retry.\"\n\n### Step 4.75: Run version migrations\n\nAfter `.\u002Fsetup` completes, run any migration scripts for versions between the old\nand new version. Migrations handle state fixes that `.\u002Fsetup` alone can't cover\n(stale config, orphaned files, directory structure changes).\n\n```bash\nMIGRATIONS_DIR=\"$INSTALL_DIR\u002Fgstack-upgrade\u002Fmigrations\"\nif [ -d \"$MIGRATIONS_DIR\" ]; then\n  for migration in $(find \"$MIGRATIONS_DIR\" -maxdepth 1 -name 'v*.sh' -type f 2>\u002Fdev\u002Fnull | sort -V); do\n    # Extract version from filename: v0.15.2.0.sh → 0.15.2.0\n    m_ver=\"$(basename \"$migration\" .sh | sed 's\u002F^v\u002F\u002F')\"\n    # Run if this migration version is newer than old version\n    # (simple string compare works for dotted versions with same segment count)\n    if [ \"$OLD_VERSION\" != \"unknown\" ] && [ \"$(printf '%s\\n%s' \"$OLD_VERSION\" \"$m_ver\" | sort -V | head -1)\" = \"$OLD_VERSION\" ] && [ \"$OLD_VERSION\" != \"$m_ver\" ]; then\n      echo \"Running migration $m_ver...\"\n      # GSTACK_INSTALL_DIR: migrations that clean the INSTALL (not just\n      # ~\u002F.gstack state) default to ~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack when unset —\n      # a repo-local install would silently no-op without this.\n      GSTACK_INSTALL_DIR=\"$INSTALL_DIR\" bash \"$migration\" || echo \"  Warning: migration $m_ver had errors (non-fatal)\"\n    fi\n  done\nfi\n```\n\nMigrations are idempotent bash scripts in `gstack-upgrade\u002Fmigrations\u002F`. Each is named\n`v{VERSION}.sh` and runs only when upgrading from an older version. See CONTRIBUTING.md\nfor how to add new migrations.\n\n### Step 4.8: Stop any stale daemon (unconditional)\n\nA browse daemon started before the upgrade keeps serving the OLD binary's code\nuntil it is stopped — it survives `git reset --hard` and `.\u002Fsetup` because the\nrunning process holds the old executable (#2551). Always run this step, using\nthe install directory detected in Step 2.\n\n```bash\nINSTALL_DIR_PLACEHOLDER=\"\u003Cinstall dir from Step 2>\"\nNEW_HASH=$(cat \"$INSTALL_DIR_PLACEHOLDER\u002Fbrowse\u002Fdist\u002F.version\" 2>\u002Fdev\u002Fnull || echo \"\")\n_STATE_FILE=\"${BROWSE_STATE_FILE:-$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\u002F.gstack\u002Fbrowse.json}\"\nif [ -z \"$NEW_HASH\" ] || [ ! -f \"$_STATE_FILE\" ]; then\n  echo \"DAEMON_CHECK=none (no state file or no fresh build hash)\"\nelse\n  DAEMON_PID=$(sed -n 's\u002F.*\"pid\"[[:space:]]*:[[:space:]]*\\([0-9][0-9]*\\).*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  DAEMON_PORT=$(sed -n 's\u002F.*\"port\"[[:space:]]*:[[:space:]]*\\([0-9][0-9]*\\).*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  OLD_HASH=$(sed -n 's\u002F.*\"binaryVersion\"[[:space:]]*:[[:space:]]*\"\\([^\"]*\\)\".*\u002F\\1\u002Fp' \"$_STATE_FILE\" | head -1)\n  if [ -z \"$DAEMON_PID\" ] || ! kill -0 \"$DAEMON_PID\" 2>\u002Fdev\u002Fnull; then\n    echo \"DAEMON_CHECK=dead (no live daemon to stop)\"\n  elif [ \"$OLD_HASH\" = \"$NEW_HASH\" ]; then\n    echo \"DAEMON_CHECK=current (daemon already runs the new binary)\"\n  elif curl -fsS --max-time 2 \"http:\u002F\u002F127.0.0.1:$DAEMON_PORT\u002Fhealth\" 2>\u002Fdev\u002Fnull | grep -q '\"status\":\"healthy\"'; then\n    echo \"DAEMON_CHECK=stale-responsive pid=$DAEMON_PID hash=${OLD_HASH:-unknown} -> $NEW_HASH\"\n    \"$INSTALL_DIR_PLACEHOLDER\u002Fbrowse\u002Fdist\u002Fbrowse\" stop && echo \"DAEMON_STOPPED=yes\"\n  else\n    echo \"DAEMON_CHECK=stale-busy pid=$DAEMON_PID hash=${OLD_HASH:-unknown} -> $NEW_HASH\"\n  fi\nfi\n```\n\nReplace `\u003Cinstall dir from Step 2>` with the actual install directory before\nrunning. Interpret the `DAEMON_CHECK` result:\n\n1. **`stale-responsive` + `DAEMON_STOPPED=yes`:** Tell the user \"Stopped the\n   old browse daemon (binary {OLD_HASH} → {NEW_HASH}). The next browse command\n   starts a fresh daemon on the new binary.\"\n2. **`stale-busy`:** The daemon runs the old binary but is mid-work — DEFER to\n   it, never kill a busy daemon during upgrade. Tell the user: \"A browse daemon\n   is still running the pre-upgrade binary ({OLD_HASH} → {NEW_HASH}) but is\n   busy right now. When it finishes, stop it with `browse stop` — or force it\n   immediately with `browse --force-restart stop` (loses that session's\n   tabs\u002Fcookies\u002Flogins).\"\n3. **`none` \u002F `dead` \u002F `current`:** Nothing to do — say nothing.\n\n### Step 5: Write marker + clear cache\n\n```bash\nmkdir -p ~\u002F.gstack\necho \"$OLD_VERSION\" > ~\u002F.gstack\u002Fjust-upgraded-from\nrm -f ~\u002F.gstack\u002Flast-update-check\nrm -f ~\u002F.gstack\u002Fupdate-snoozed\n```\n\n### Step 6: Show What's New\n\nRead `$INSTALL_DIR\u002FCHANGELOG.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.\n\nFormat:\n```\ngstack v{new} — upgraded from v{old}!\n\nWhat's new:\n- [bullet 1]\n- [bullet 2]\n- ...\n\nHappy shipping!\n```\n\n### Step 7: Continue\n\nAfter showing What's New, continue with whatever skill the user originally invoked. The upgrade is done — no further action needed.\n\n---\n\n## Standalone usage\n\nWhen invoked directly as `\u002Fskill:gstack-upgrade` (not from a preamble):\n\n1. Force a fresh update check (bypass cache):\n```bash\n~\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check --force 2>\u002Fdev\u002Fnull || \\\n.pi\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check --force 2>\u002Fdev\u002Fnull || true\n```\nUse the output to determine if an upgrade is available.\n\n2. If `UPGRADE_AVAILABLE \u003Cold> \u003Cnew>`: follow Steps 2-6 above.\n\n3. If no output (primary is up to date): check for a stale local vendored copy.\n\nRun 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`).\n\n**If `LOCAL_GSTACK` is empty** (no local vendored copy): tell the user \"You're already on the latest version (v{version}).\"\n\n**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.\"\n\n**If `LOCAL_GSTACK` is non-empty AND `TEAM_MODE` is NOT `true`**, compare versions:\n```bash\nPRIMARY_VER=$(cat \"$INSTALL_DIR\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\nLOCAL_VER=$(cat \"$LOCAL_GSTACK\u002FVERSION\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"PRIMARY=$PRIMARY_VER LOCAL=$LOCAL_VER\"\n```\n\n**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 `.pi\u002Fskills\u002Fgstack\u002F` when you're ready.\"\n\n**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.\"\n",{"name":5,"version":30,"triggers":31,"description":7},"1.1.0",[32,33,34],"upgrade gstack","update gstack version","get latest gstack","main","30109be4b796544f50f067915edf4d9874dc50d2","port\u002Fgstack\u002Fgstack-upgrade",0,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port","https:\u002F\u002Fgithub.com\u002Fwestn","2026-09-04 10:21:48",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add westn\u002Fgstack-pi-port --skill gstack-upgrade",{"tool":48,"command":49},"bunx","bunx skills add westn\u002Fgstack-pi-port --skill gstack-upgrade",{"tool":51,"command":52},"pnpm","pnpm dlx skills add westn\u002Fgstack-pi-port --skill gstack-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002FSKILL.md",true,[56,62,66,70,74,78,82,86,90,94,98,102,106,110,116,120,124],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"migrations\u002Fv0.15.2.0.sh","SCRIPT","脚本",845,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv0.15.2.0.sh",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"migrations\u002Fv0.16.2.0.sh",2382,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv0.16.2.0.sh",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"migrations\u002Fv1.0.0.0.sh",1627,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.0.0.0.sh",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"migrations\u002Fv1.1.3.0.sh",6740,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.1.3.0.sh",{"path":75,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":76,"sourceHtmlUrl":77},"migrations\u002Fv1.17.0.0.sh",2472,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.17.0.0.sh",{"path":79,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":80,"sourceHtmlUrl":81},"migrations\u002Fv1.27.0.0.sh",16912,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.27.0.0.sh",{"path":83,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":84,"sourceHtmlUrl":85},"migrations\u002Fv1.37.0.0.sh",4308,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.37.0.0.sh",{"path":87,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":88,"sourceHtmlUrl":89},"migrations\u002Fv1.38.1.0.sh",3677,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.38.1.0.sh",{"path":91,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":92,"sourceHtmlUrl":93},"migrations\u002Fv1.40.0.0.sh",5495,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.40.0.0.sh",{"path":95,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":96,"sourceHtmlUrl":97},"migrations\u002Fv1.58.0.0.sh",2452,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.58.0.0.sh",{"path":99,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":100,"sourceHtmlUrl":101},"migrations\u002Fv1.65.0.0.sh",7433,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.65.0.0.sh",{"path":103,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":104,"sourceHtmlUrl":105},"migrations\u002Fv1.67.0.0.sh",2861,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.67.0.0.sh",{"path":107,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":108,"sourceHtmlUrl":109},"migrations\u002Fv1.78.0.0.sh",1142,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002Fmigrations\u002Fv1.78.0.0.sh",{"path":111,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fcreative-frameworks.md","REFERENCE","参考文档",10046,"https:\u002F\u002Fgithub.com\u002Fagency-black\u002FSkills\u002Fblob\u002Fmain\u002Fmarketing-skill\u002Fskills\u002Fad-creative\u002Freferences\u002Fcreative-frameworks.md",{"path":117,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Fplatform-specs.md",6419,"https:\u002F\u002Fgithub.com\u002Fagency-black\u002FSkills\u002Fblob\u002Fmain\u002Fmarketing-skill\u002Fskills\u002Fad-creative\u002Freferences\u002Fplatform-specs.md",{"path":121,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fad_copy_validator.py",18209,"https:\u002F\u002Fgithub.com\u002Fagency-black\u002FSkills\u002Fblob\u002Fmain\u002Fmarketing-skill\u002Fskills\u002Fad-creative\u002Fscripts\u002Fad_copy_validator.py",{"path":125,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":128,"sourceHtmlUrl":129},"SKILL.md.tmpl","OTHER","其他",16003,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fgstack-upgrade\u002FSKILL.md.tmpl",[131,144,155,167,182,198],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":25},"01M6E05W3NMBAPS04BTY5022R0","unfreeze","Clear the freeze boundary set by \u002Fskill:freeze, allowing edits to all directories again. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Funfreeze\u002FSKILL.md",[],[133,138,139,140,141,142,20,143],"SET","boundary","freeze","edit","remove","clear",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":25},"01M6E05TJPTDXG2ARV08KYYWJG","beta","Clean fixture tool skill with no forced reads and no mode table.","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Fbeta\u002FSKILL.md",[],[146,151,152,153,154],"tool","table","clean","fixture",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":25},"01M6E05RERN8G9QBE7WNMZSQ4M","alpha","Fixture dispatcher with a mode table and forced-read references.","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Falpha\u002FSKILL.md",[],[157,162,152,163,164,165,166,154],"dispatcher","read","router","references","upstream",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":25},"01M6E05MJ4R9JDPFPZG9RXNKDS","sync-gbrain","Keep gbrain current with this repo's code and refresh agent search guidance in AGENTS.md. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fsync-gbrain\u002FSKILL.md",[],[174,175,176,177,20,22,178,179,180,181],"gbrain","sync gbrain","sync","refresh","code","search","repo","guidance",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":25},"01M6E05FKKHRASN15HCDPRVX1F","spec","Turn vague intent into a precise, executable spec in five phases. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fspec\u002FSKILL.md",[],[184,189,190,191,192,193,194,195,20,196,197],"github issue","github","file","write","up","issue","intent","backlog","ticket",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":25},"01M6E05BF4C4WZXYY4MKX78KQX","skillify","Codify the most recent successful \u002Fskill:scrape flow into a permanent browser-skill on disk. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fskillify\u002FSKILL.md",[],[200,205,206,207,208,209,20],"browser","flow","scrape","disk","save"]