omgskills Get the Mac app
Skill

freeze

@garrytan 124k stars Updated 2026-07-15 Author match: High

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

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

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

View on GitHub

From README

When to invoke this skill Blocks Edit and Write outside the allowed path. Use when debugging to prevent accidentally "fixing" unrelated code, or when you want to scope changes to one module. Use when asked to "freeze", "restrict edits", "only edit this folder", or "lock down edits". /freeze — Restrict Edits to a Directory Lock file edits to a specific directory. Any Edit or Write 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: Resolve it to an absolute path: Ensure trailing slash and save to the freeze state file: Tell the user: "Edits are now restricted to /. Any Edit or Write outside this directory will be blocked. To change the boundary, run /freeze again.

More from this repo