Download for macOS
Skill

freeze

@garrytan Updated 2026-10-22

Restrict file edits to a specific directory for the session. (gstack)

Install

git clone https://github.com/garrytan/gstack /tmp/gstack && ln -s /tmp/gstack/freeze ~/.claude/skills/freeze

From README

/freeze — Restrict Edits to a Directory Lock file edits to a specific directory. Any Edit, Write or NotebookEdit operation targeting a file outside the allowed path will be blocked (not just warned). Ask the user which directory to restrict edits to. Use AskUserQuestion: Question: "Which directory should I restrict edits to? Files outside this path will be blocked from editing." Text input (not multiple choice) — the user types a path. Once the user provides a directory path: Set the user-selected boundary with the shared state writer. It resolves the physical absolute path and serializes replacement with investigation cleanup: Only report success if the helper succeeds. On FREEZEBUSY 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. Tell the user: "Edits are now restricted to /. Any Edit, Write or NotebookEdit outside this directory will be blocked.