Freeze
Restrict file edits to a specific directory for the session. Use for: freeze edits to directory, lock editing scope. (gstack)
Install
npx skills add garrytan/gstack --skill freezegit clone --depth 1 https://github.com/garrytan/gstack.git /tmp/gstack
mkdir -p ~/.claude/skills
cp -r /tmp/gstack/freeze ~/.claude/skills/freezePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# /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).
```bash
GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
mkdir -p "$GSTACK_STATE_ROOT"/analytics
echo '{"skill":"freeze","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> "$GSTACK_STATE_ROOT"/analytics/skill-usage.jsonl 2>/dev/null || true
```
## Setup
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:
```bash
bash "$HOME/.claude/skills/gstack/freeze/bin/freeze-state.sh" set "<user-provided-path>"
```
Only 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.Details
- Skill name
freeze- Repository
- garrytan/gstack
- Path
freeze/SKILL.md- License
- MIT
- Repo updated
- 18 November 2026
FAQ
What does the Freeze skill do?
Restrict file edits to a specific directory for the session. Use for: freeze edits to directory, lock editing scope. (gstack)
How do I install the Freeze skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add garrytan/gstack --skill freeze. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Freeze popular?
It lives in garrytan/gstack, which has 141,991 GitHub stars and 20,959 forks, and is included in 2 curated skill lists.
Related skills
Autoplan
142kgarrytan/gstack
Auto-review pipeline — runs the CEO, design, eng and DX reviews in order (lean run: one reviewer), auto-deciding. Use for: run all reviews, automatic review pipeline. (gstack)
Benchmark
142kgarrytan/gstack
Web performance regression detection. Use for: web performance benchmark, check page speed. (gstack)
Benchmark Models
142kgarrytan/gstack
Cross-model benchmark for gstack skills. Use for: cross model benchmark, compare claude gpt gemini. (gstack)
Gstack Openclaw Ceo Review
142kgarrytan/gstack
Use when asked to review a plan, challenge a proposal, run a CEO review, poke holes in an approach, think bigger about scope, or decide whether to expand or reduce the plan.
Diagram
142kgarrytan/gstack
Turn an English description (or mermaid source) into a diagram triplet: the source, an editable .excalidraw file you can open on excalidraw.com, and rendered SVG + PNG. Use for: make a diagram, draw a diagram. (gstack)
Gstack Upgrade
142kgarrytan/gstack
Upgrade gstack to the latest version. Use for: upgrade gstack, update gstack version.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.