[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DJP3ZKHRXJRGVHZJP8T4NK":3,"skill-same:01M6DJP3ZKHRXJRGVHZJP8T4NK":110},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":66,"commitSha":67,"skillDirectory":5,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":6,"ownerHtmlUrl":70,"ownerBlogUrl":71,"ownerDescription":72,"updatedAt":73,"install":74,"resources":87},"01M6DJP3ZKHRXJRGVHZJP8T4NK","freeze",null,"Restrict file edits to a specific directory for the session. (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\u002Ffreeze\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"write","home","changes","for","lock","scope","exec","gstack","session","edit","directory","read","command","check","editing","Bash","boundary","file","2026-11-10 10:12:30",false,"---\nname: freeze\nversion: 0.1.0\ndescription: Restrict file edits to a specific directory for the session. (gstack)\ntriggers:\n  - freeze edits to directory\n  - lock editing scope\n  - restrict file changes\nallowed-tools:\n  - Bash\n  - Read\n  - AskUserQuestion\nhooks:\n  PreToolUse:\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# \u002Ffreeze — Restrict Edits to a Directory\n\nLock file edits to a specific directory. Any Edit, Write or NotebookEdit\noperation targeting a file outside the allowed path will be **blocked** (not\njust warned).\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\":\"freeze\",\"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: \"Which directory should I restrict edits to? Files outside this 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 state writer. It resolves the 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\nOnly report success if the helper succeeds. On `FREEZE_BUSY` or unexpected state, preserve it and ask the user to inspect recovery after any active writer finishes; never write or delete the state file directly.\n\nTell the user: \"Edits are now restricted to `\u003Cpath>\u002F`. Any Edit, Write or\nNotebookEdit outside this directory will be blocked. To change the boundary, run `\u002Ffreeze`\nagain. To remove it, run `\u002Funfreeze`.\"\n\n## How it works\n\nThe hook reads `file_path` from the Edit\u002FWrite tool input JSON, or\n`notebook_path` from a NotebookEdit (Jupyter notebook) call (shared\nreal-JSON extractor with \u002Fcareful — one copy, sourced by both hooks), then\nchecks whether the path starts with the freeze directory. If not, it returns a\n`hookSpecificOutput` payload with `permissionDecision: \"deny\"` to block the\noperation (nested under `hookSpecificOutput` — Claude Code ignores a top-level\n`permissionDecision`).\n\nPolarity is fail-closed: a tool payload the hook cannot parse is DENIED, not\nallowed — a boundary that fails open is not a boundary. A payload that parses\nbut has neither path field (a non-file tool) is allowed. A deny names the\ntool, the path field, the boundary and `\u002Funfreeze`. The path is resolved before\nthe check: `~`, `..` and relative paths, and symlinks at every depth, even\nthrough folders that do not exist yet. A path the hook cannot place (a symlink\nloop, a line break, a Windows drive-relative path, over 4096 characters) is\ndenied.\n\nThe freeze boundary persists until explicitly removed via the state file. The hook\nscript reads it on every Edit\u002FWrite\u002FNotebookEdit invocation. Boundaries containing spaces\nare supported.\n\n## Notes\n\n- The trailing `\u002F` on the freeze directory prevents `\u002Fsrc` from matching `\u002Fsrc-old`\n- Freeze applies to Edit, Write and NotebookEdit only — Read, Bash, PowerShell, Glob, Grep are unaffected\n- This prevents accidental edits, not a security boundary — Bash or PowerShell commands like `sed` or `Set-Content` can still modify files outside the boundary\n- To deactivate, run `\u002Funfreeze`; ending or killing a conversation does not remove persisted state\n","\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n# \u002Ffreeze — Restrict Edits to a Directory\n\nLock file edits to a specific directory. Any Edit, Write or NotebookEdit\noperation targeting a file outside the allowed path will be **blocked** (not\njust warned).\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\":\"freeze\",\"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: \"Which directory should I restrict edits to? Files outside this 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 state writer. It resolves the 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\nOnly report success if the helper succeeds. On `FREEZE_BUSY` or unexpected state, preserve it and ask the user to inspect recovery after any active writer finishes; never write or delete the state file directly.\n\nTell the user: \"Edits are now restricted to `\u003Cpath>\u002F`. Any Edit, Write or\nNotebookEdit outside this directory will be blocked. To change the boundary, run `\u002Ffreeze`\nagain. To remove it, run `\u002Funfreeze`.\"\n\n## How it works\n\nThe hook reads `file_path` from the Edit\u002FWrite tool input JSON, or\n`notebook_path` from a NotebookEdit (Jupyter notebook) call (shared\nreal-JSON extractor with \u002Fcareful — one copy, sourced by both hooks), then\nchecks whether the path starts with the freeze directory. If not, it returns a\n`hookSpecificOutput` payload with `permissionDecision: \"deny\"` to block the\noperation (nested under `hookSpecificOutput` — Claude Code ignores a top-level\n`permissionDecision`).\n\nPolarity is fail-closed: a tool payload the hook cannot parse is DENIED, not\nallowed — a boundary that fails open is not a boundary. A payload that parses\nbut has neither path field (a non-file tool) is allowed. A deny names the\ntool, the path field, the boundary and `\u002Funfreeze`. The path is resolved before\nthe check: `~`, `..` and relative paths, and symlinks at every depth, even\nthrough folders that do not exist yet. A path the hook cannot place (a symlink\nloop, a line break, a Windows drive-relative path, over 4096 characters) is\ndenied.\n\nThe freeze boundary persists until explicitly removed via the state file. The hook\nscript reads it on every Edit\u002FWrite\u002FNotebookEdit invocation. Boundaries containing spaces\nare supported.\n\n## Notes\n\n- The trailing `\u002F` on the freeze directory prevents `\u002Fsrc` from matching `\u002Fsrc-old`\n- Freeze applies to Edit, Write and NotebookEdit only — Read, Bash, PowerShell, Glob, Grep are unaffected\n- This prevents accidental edits, not a security boundary — Bash or PowerShell commands like `sed` or `Set-Content` can still modify files outside the boundary\n- To deactivate, run `\u002Funfreeze`; ending or killing a conversation does not remove persisted state\n",{"name":5,"hooks":42,"version":58,"triggers":59,"description":7,"allowed-tools":63},{"PreToolUse":43},[44,50,54],{"hooks":45,"matcher":49},[46],{"type":31,"command":47,"statusMessage":48},"bash -c \"exec bash \\\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh\\\"\"","Checking freeze boundary...","Edit",{"hooks":51,"matcher":53},[52],{"type":31,"command":47,"statusMessage":48},"Write",{"hooks":55,"matcher":57},[56],{"type":31,"command":47,"statusMessage":48},"NotebookEdit","0.1.0",[60,61,62],"freeze edits to directory","lock editing scope","restrict file changes",[34,64,65],"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":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add garrytan\u002Fgstack --skill freeze",{"tool":80,"command":81},"bunx","bunx skills add garrytan\u002Fgstack --skill freeze",{"tool":83,"command":84},"pnpm","pnpm dlx skills add garrytan\u002Fgstack --skill freeze","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ffreeze\u002FSKILL.md",true,[88,94,98,104],{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"bin\u002Fcheck-freeze.sh","SCRIPT","脚本",16834,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ffreeze\u002Fbin\u002Fcheck-freeze.sh",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"bin\u002Ffreeze-state.sh",2875,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ffreeze\u002Fbin\u002Ffreeze-state.sh",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"index.json","REFERENCE","参考文档",716,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fserverless\u002Fserverlessharden\u002Fexploit\u002Findex.json",{"path":105,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"SKILL.md.tmpl","OTHER","其他",4567,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgstack\u002Fblob\u002Fmain\u002Ffreeze\u002FSKILL.md.tmpl",[111,133,152,163,182,196],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":37},"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,118,28,119,120,121,122,123,124,125,126,127,30,128,26,129,34,130,131,132],"write skill","new","bloat","ladder","add","size","diet","full","agent skill","grep","write a skill","drift","improve","new agent","lesson",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":37},"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",[],[135,140,141,142,143,144,145,127,28,30,146,147,32,26,34,148,149,150,151],"change","it","my","use","coding","ship","run","work","tests","green","make","when",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":37},"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",[],[154,159,30,26,160,5,34,35,161,162,28],"directories","remove","clear","SET",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":37},"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",[],[165,34,170,171,172,26,173,174,175,176,177,125,178,179,30,146,180,181],"vm","quota","eval","ttl","suite","vms","remote","preflight","watchdog","test run","build","test",{"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":37},"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",[],[184,189,190,191,192,193,194,195],"clean","mode","fixture tool","with","table","tool","fixture",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":37},"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",[],[198,190,192,193,203,30,204,205,195,206],"upstream","dispatcher","references","router"]