[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77QGRQSBWQH6SAPVMAGTSDT":3,"skill-same:01M77QGRQSBWQH6SAPVMAGTSDT":46},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77QGRQSBWQH6SAPVMAGTSDT","update-install",null,"Build treetop from the current checkout and reinstall it via the repo Makefile on Linux or macOS. Use when the user wants to update, refresh, or reinstall their local treetop with the latest build from source (e.g. after merging a fix), rather than waiting for a tagged release.","snag-run\u002Ftreetop","snag-run","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F144905352?v=4","01M77QGMBPTANNPZBM2YER2ASB","snag.run","01M77QGMC8XEZMGP4ZX6AFZAKB",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsnag-run\u002Ftreetop\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-install\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: update-install\ndescription: Build treetop from the current checkout and reinstall it via the repo Makefile on Linux or macOS. Use when the user wants to update, refresh, or reinstall their local treetop with the latest build from source (e.g. after merging a fix), rather than waiting for a tagged release.\n---\n\n# Update the local treetop install\n\nRebuild `treetop` from the current source tree using the repo `Makefile`, then\nreinstall it with the project's supported source-install path. Works the same on\nLinux and macOS.\n\nThis installs an **unreleased dev build straight from source**. For a tagged\nrelease, download the prebuilt binary from the GitHub release instead.\n\n## Steps\n\n1. **Install from the repo root** (you must be inside the treetop checkout):\n\n   ```sh\n   make install\n   ```\n\n   `make install` delegates to `go install .`, so it builds the current checkout\n   and installs `treetop` into Go's bin directory. If it fails, stop and surface\n   the error.\n\n2. **Find the install target** so you know where the new binary landed:\n\n   ```sh\n   BIN_DIR=\"$(go env GOBIN)\"\n   if [ -z \"$BIN_DIR\" ]; then\n     GOPATH=\"$(go env GOPATH)\"\n     BIN_DIR=\"${GOPATH%%:*}\u002Fbin\"\n   fi\n   TARGET=\"$BIN_DIR\u002Ftreetop\"\n   ```\n\n3. **Check which binary the shell will run**:\n\n   ```sh\n   command -v treetop\n   ```\n\n   If this does not match `$TARGET`, the install succeeded but the shell is still\n   resolving some other `treetop` earlier on `PATH`. Report both paths back to\n   the user. Do not silently overwrite the other binary; that is now outside the\n   Makefile-managed flow.\n\n4. **Verify** the new binary is live:\n\n   ```sh\n   treetop --version\n   ```\n\n   A source build stamps a pseudo-version from Go's VCS build info, like\n   `v0.2.1-0.20260627222925-71b992a2a45a` — the trailing short commit\n   (`71b992a`) is the `HEAD` you built from, so it confirms the update took. It\n   only falls back to `treetop dev` when the build carries no VCS info (built\n   outside the git checkout, or with `-buildvcs=false`). Also report the\n   resolved binary path (`command -v treetop`) back to the user.\n\n## Platform notes\n\n- `make install` uses Go's install location, not `\u002Fusr\u002Flocal\u002Fbin`.\n- If `GOBIN` is set, the binary lands in `$GOBIN\u002Ftreetop`.\n- Otherwise it lands in the `bin` directory under the first path entry from\n  `go env GOPATH`, which is typically `$HOME\u002Fgo\u002Fbin\u002Ftreetop`.\n- If that directory is not on `PATH`, the install can succeed while `treetop`\n  still resolves to an older copy elsewhere.\n- The version string comes from Go build info (`main.go`): a plain `go build`\n  in the checkout already stamps the commit as a pseudo-version, so no extra\n  `-ldflags` are needed for a local install. Tagged release builds carry a real\n  `vX.Y.Z` instead.\n","# Update the local treetop install\n\nRebuild `treetop` from the current source tree using the repo `Makefile`, then\nreinstall it with the project's supported source-install path. Works the same on\nLinux and macOS.\n\nThis installs an **unreleased dev build straight from source**. For a tagged\nrelease, download the prebuilt binary from the GitHub release instead.\n\n## Steps\n\n1. **Install from the repo root** (you must be inside the treetop checkout):\n\n   ```sh\n   make install\n   ```\n\n   `make install` delegates to `go install .`, so it builds the current checkout\n   and installs `treetop` into Go's bin directory. If it fails, stop and surface\n   the error.\n\n2. **Find the install target** so you know where the new binary landed:\n\n   ```sh\n   BIN_DIR=\"$(go env GOBIN)\"\n   if [ -z \"$BIN_DIR\" ]; then\n     GOPATH=\"$(go env GOPATH)\"\n     BIN_DIR=\"${GOPATH%%:*}\u002Fbin\"\n   fi\n   TARGET=\"$BIN_DIR\u002Ftreetop\"\n   ```\n\n3. **Check which binary the shell will run**:\n\n   ```sh\n   command -v treetop\n   ```\n\n   If this does not match `$TARGET`, the install succeeded but the shell is still\n   resolving some other `treetop` earlier on `PATH`. Report both paths back to\n   the user. Do not silently overwrite the other binary; that is now outside the\n   Makefile-managed flow.\n\n4. **Verify** the new binary is live:\n\n   ```sh\n   treetop --version\n   ```\n\n   A source build stamps a pseudo-version from Go's VCS build info, like\n   `v0.2.1-0.20260627222925-71b992a2a45a` — the trailing short commit\n   (`71b992a`) is the `HEAD` you built from, so it confirms the update took. It\n   only falls back to `treetop dev` when the build carries no VCS info (built\n   outside the git checkout, or with `-buildvcs=false`). Also report the\n   resolved binary path (`command -v treetop`) back to the user.\n\n## Platform notes\n\n- `make install` uses Go's install location, not `\u002Fusr\u002Flocal\u002Fbin`.\n- If `GOBIN` is set, the binary lands in `$GOBIN\u002Ftreetop`.\n- Otherwise it lands in the `bin` directory under the first path entry from\n  `go env GOPATH`, which is typically `$HOME\u002Fgo\u002Fbin\u002Ftreetop`.\n- If that directory is not on `PATH`, the install can succeed while `treetop`\n  still resolves to an older copy elsewhere.\n- The version string comes from Go build info (`main.go`): a plain `go build`\n  in the checkout already stamps the commit as a pseudo-version, so no extra\n  `-ldflags` are needed for a local install. Tagged release builds carry a real\n  `vX.Y.Z` instead.\n",{"name":5,"description":7},"main","51194551fc0e868148c5846a85729f94e786a923",".agents\u002Fskills\u002Fupdate-install","https:\u002F\u002Fgithub.com\u002Fsnag-run\u002Ftreetop","https:\u002F\u002Fsnag.run\u002Fdocs\u002Ftreetop\u002F","https:\u002F\u002Fgithub.com\u002Fsnag-run","https:\u002F\u002Fsnag.run","2026-09-12 16:22:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add snag-run\u002Ftreetop --skill update-install",{"tool":38,"command":39},"bunx","bunx skills add snag-run\u002Ftreetop --skill update-install",{"tool":41,"command":42},"pnpm","pnpm dlx skills add snag-run\u002Ftreetop --skill update-install","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsnag-run\u002Ftreetop\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-install\u002FSKILL.md",true,[],[47,52],{"skillNo":48,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M77QH02TP659MA1FB4VT332C","https:\u002F\u002Fgithub.com\u002Fsnag-run\u002Ftreetop\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fupdate-install\u002FSKILL.md",[],[],{"skillNo":53,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M77QGXVVYPEPGX6NRA51XRE3","https:\u002F\u002Fgithub.com\u002Fsnag-run\u002Ftreetop\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-install\u002FSKILL.md",[],[]]