# freeze

> Claude/Codex skill by [@garrytan](https://omgskills.com/library/garrytan/index.md) · 137k stars · Updated 2026-10-22

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

## Install

```sh
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.

## Links

- HTML page: https://omgskills.com/library/garrytan/gstack/freeze/
- GitHub: https://github.com/garrytan/gstack
- Author: [@garrytan](https://omgskills.com/library/garrytan/index.md)

## More from this repo

- [gstack](https://omgskills.com/library/garrytan/gstack/index.md) — Router for the gstack skill suite.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 141k stars
- [retro](https://omgskills.com/library/garrytan/gstack/retro/index.md) — Weekly engineering retrospective.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 138k stars
- [review](https://omgskills.com/library/garrytan/gstack/review/index.md) — Pre-landing PR review.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 138k stars
