freeze
Restrict file edits to a specific directory for the session. (gstack)
Install
With your agent
Install OMGSkills skill "garrytan/gstack:freeze" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
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.
