[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DJPN261R0RJ1PKWHJX0T67":3,"skill-same:01M6DJPN261R0RJ1PKWHJX0T67":106},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":78,"commitSha":79,"skillDirectory":5,"forksCount":80,"repositoryHtmlUrl":81,"repositoryHomepageUrl":6,"ownerHtmlUrl":82,"ownerBlogUrl":83,"ownerDescription":84,"updatedAt":85,"install":86,"resources":99},"01M6DJPN261R0RJ1PKWHJX0T67","guard",null,"Full safety mode: destructive command warnings + directory-scoped edits. (gstack)","garrytan\u002Fgstack","garrytan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19957?v=4","01M6DJCCDDG53MTYYRTXAXFG17","Garry Tan","01M6DJCCKGZB08AY82GDQXVJ8G",141554,"MIT","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fguard\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"write","home","mistakes","scoped","for","mode","exec","full","commands","gstack","edit","directory","read","command","check","Bash","freeze","careful","boundary","Safety","powershell","2026-11-10 10:12:30",false,"---\nname: guard\nversion: 0.1.0\ndescription: \"Full safety mode: destructive command warnings + directory-scoped edits. (gstack)\"\ntriggers:\n  - full safety mode\n  - guard against mistakes\n  - maximum safety\nallowed-tools:\n  - Bash\n  - Read\n  - AskUserQuestion\nhooks:\n  PreToolUse:\n    - matcher: \"Bash\"\n      hooks:\n        - type: command\n          command: 'bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh\\\"\"'\n          statusMessage: \"Checking for destructive commands...\"\n    - matcher: \"PowerShell\"\n      hooks:\n        - type: command\n          command: 'bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh\\\"\"'\n          statusMessage: \"Checking for destructive commands...\"\n    - matcher: \"Edit\"\n      hooks:\n        - type: command\n          command: 'bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh\\\"\"'\n          statusMessage: \"Checking freeze boundary...\"\n    - matcher: \"Write\"\n      hooks:\n        - type: command\n          command: 'bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh\\\"\"'\n          statusMessage: \"Checking freeze boundary...\"\n    - matcher: \"NotebookEdit\"\n      hooks:\n        - type: command\n          command: 'bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh\\\"\"'\n          statusMessage: \"Checking freeze boundary...\"\n---\n\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n# \u002Fguard — Full Safety Mode\n\nActivates both destructive command warnings and directory-scoped edit restrictions.\nThis is the combination of `\u002Fcareful` + `\u002Ffreeze` in a single command.\n\n**Dependency note:** This skill references hook scripts from the sibling `\u002Fcareful`\nand `\u002Ffreeze` skill directories. Both must be installed (they are installed together\nby the gstack setup script).\n\n```bash\nGSTACK_STATE_ROOT=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-paths --get GSTACK_STATE_ROOT); : \"${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with .\u002Fsetup or \u002Fgstack-upgrade}\"\nmkdir -p \"$GSTACK_STATE_ROOT\"\u002Fanalytics\necho '{\"skill\":\"guard\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"unknown\")'\"}'  >> \"$GSTACK_STATE_ROOT\"\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\n```\n\n## Setup\n\nAsk the user which directory to restrict edits to. Use AskUserQuestion:\n\n- Question: \"Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen path will be blocked from editing.\"\n- Text input (not multiple choice) — the user types a path.\n\nOnce the user provides a directory path:\n\nSet the user-selected boundary with the shared writer, which resolves a physical absolute path and serializes replacement with investigation cleanup:\n```bash\nbash \"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Ffreeze-state.sh\" set \"\u003Cuser-provided-path>\"\n```\n\nOn helper failure, do not claim the boundary is active. Preserve the state and report recovery; never bypass the shared writer with a direct write or deletion.\n\nTell the user:\n- \"**Guard mode active.** Two protections are now running:\"\n- \"1. **Destructive command guard** — rm -rf, DROP TABLE, force-push, etc. warn before executing (overridable); catastrophic shapes (recursive delete of \u002F or ~, force-push to the default branch) are hard-denied\"\n- \"2. **Edit boundary** — file edits restricted to `\u003Cpath>\u002F`. Edits outside this directory are blocked.\"\n- \"To remove the persistent edit boundary, run `\u002Funfreeze`. Ending the session stops its hooks but does not delete that boundary.\"\n\n## What's protected\n\nSee `\u002Fcareful` for the full list of destructive command patterns and safe exceptions.\nSee `\u002Ffreeze` for how edit boundary enforcement works.\n","\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n# \u002Fguard — Full Safety Mode\n\nActivates both destructive command warnings and directory-scoped edit restrictions.\nThis is the combination of `\u002Fcareful` + `\u002Ffreeze` in a single command.\n\n**Dependency note:** This skill references hook scripts from the sibling `\u002Fcareful`\nand `\u002Ffreeze` skill directories. Both must be installed (they are installed together\nby the gstack setup script).\n\n```bash\nGSTACK_STATE_ROOT=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-paths --get GSTACK_STATE_ROOT); : \"${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with .\u002Fsetup or \u002Fgstack-upgrade}\"\nmkdir -p \"$GSTACK_STATE_ROOT\"\u002Fanalytics\necho '{\"skill\":\"guard\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"unknown\")'\"}'  >> \"$GSTACK_STATE_ROOT\"\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\n```\n\n## Setup\n\nAsk the user which directory to restrict edits to. Use AskUserQuestion:\n\n- Question: \"Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen path will be blocked from editing.\"\n- Text input (not multiple choice) — the user types a path.\n\nOnce the user provides a directory path:\n\nSet the user-selected boundary with the shared writer, which resolves a physical absolute path and serializes replacement with investigation cleanup:\n```bash\nbash \"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Ffreeze-state.sh\" set \"\u003Cuser-provided-path>\"\n```\n\nOn helper failure, do not claim the boundary is active. Preserve the state and report recovery; never bypass the shared writer with a direct write or deletion.\n\nTell the user:\n- \"**Guard mode active.** Two protections are now running:\"\n- \"1. **Destructive command guard** — rm -rf, DROP TABLE, force-push, etc. warn before executing (overridable); catastrophic shapes (recursive delete of \u002F or ~, force-push to the default branch) are hard-denied\"\n- \"2. **Edit boundary** — file edits restricted to `\u003Cpath>\u002F`. Edits outside this directory are blocked.\"\n- \"To remove the persistent edit boundary, run `\u002Funfreeze`. Ending the session stops its hooks but does not delete that boundary.\"\n\n## What's protected\n\nSee `\u002Fcareful` for the full list of destructive command patterns and safe exceptions.\nSee `\u002Ffreeze` for how edit boundary enforcement works.\n",{"name":5,"hooks":45,"version":70,"triggers":71,"description":7,"allowed-tools":75},{"PreToolUse":46},[47,52,56,62,66],{"hooks":48,"matcher":34},[49],{"type":32,"command":50,"statusMessage":51},"bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh\\\"\"","Checking for destructive commands...",{"hooks":53,"matcher":55},[54],{"type":32,"command":50,"statusMessage":51},"PowerShell",{"hooks":57,"matcher":61},[58],{"type":32,"command":59,"statusMessage":60},"bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh\\\"\"","Checking freeze boundary...","Edit",{"hooks":63,"matcher":65},[64],{"type":32,"command":59,"statusMessage":60},"Write",{"hooks":67,"matcher":69},[68],{"type":32,"command":59,"statusMessage":60},"NotebookEdit","0.1.0",[72,73,74],"full safety mode","guard against mistakes","maximum safety",[34,76,77],"Read","AskUserQuestion","main","dd9834d44d2650818cb6d8e17c57f795cb56bf98",20910,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack","https:\u002F\u002Fgithub.com\u002Fgarrytan","https:\u002F\u002Fblog.garrytan.com","Writes software, dreams. ","2026-11-15 02:46:58",{"source":8,"skillName":5,"commands":87,"prompt":97,"zipAvailable":98},[88,91,94],{"tool":89,"command":90},"npx","npx skills add garrytan\u002Fgstack --skill guard",{"tool":92,"command":93},"bunx","bunx skills add garrytan\u002Fgstack --skill guard",{"tool":95,"command":96},"pnpm","pnpm dlx skills add garrytan\u002Fgstack --skill guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fguard\u002FSKILL.md",true,[100],{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"SKILL.md.tmpl","OTHER","其他",4009,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fguard\u002FSKILL.md.tmpl",[107,128,147,158,177,190],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":40},"01M6DK0K9VCQMFF4BKGT2S57V9","write-skill","Write a new agent skill or improve one without bloat: the edit ladder, levels, drift and size checks, full diets. (gstack)","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fwrite-skill\u002FSKILL.md",[],[19,114,29,115,116,117,118,119,120,26,121,122,31,123,28,124,34,125,126,127],"write skill","new","bloat","ladder","add","size","diet","agent skill","grep","write a skill","drift","improve","new agent","lesson",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":40},"01M6DK0DMV3K47JV0KXTYGZ0F7","verify","Use when coding: run the checks and tests \u002Fship picks until green. (gstack)","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fverify\u002FSKILL.md",[],[130,135,136,137,138,139,140,122,29,31,141,142,33,28,34,143,144,145,146],"change","it","my","use","coding","ship","run","work","tests","green","make","when",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":40},"01M6DK0A63TY611T7G30913VT6","unfreeze","Clear the freeze boundary set by \u002Ffreeze, allowing edits to all directories again. (gstack)","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Funfreeze\u002FSKILL.md",[],[149,154,31,28,155,35,34,37,156,157,29],"directories","remove","clear","SET",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":40},"01M6DK00ACSHDP8X0JE90FNQQJ","ubicloud","Run a heavy suite, build or eval on an ephemeral 16-vCPU Ubicloud VM: TTL-named VMs, a reaper, quota preflight and a hang watchdog. (gstack)","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Fubicloud\u002FSKILL.md",[],[160,34,165,166,167,28,168,169,170,171,172,26,173,174,31,141,175,176],"vm","quota","eval","ttl","suite","vms","remote","preflight","watchdog","test run","build","test",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":40},"01M6DJZXTBG6SAZKY1RX8BJG55","beta","Clean fixture tool skill with no forced reads and no mode table.","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Fbeta\u002FSKILL.md",[],[179,184,24,185,186,187,188,189],"clean","fixture tool","with","table","tool","fixture",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":40},"01M6DJZTJ0A0D31G2GH9FD3SE1","alpha","Fixture dispatcher with a mode table and forced-read references.","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Falpha\u002FSKILL.md",[],[192,24,186,187,197,31,198,199,189,200],"upstream","dispatcher","references","router"]