freeze

Restrict file edits to a specific directory for the session. Blocks Edit and

Content Preview
---
name: freeze
version: 0.1.0
description: |
  Restrict file edits to a specific directory for the session. 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".
allowed-tools:
  - Bash
  - Read
  - AskUserQuestion
hooks:
  PreToolUse:
    - matcher: "Edit"
      hooks:
        - type:
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/freeze.md \
  https://raw.githubusercontent.com/garrytan/gstack/main/freeze/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/garrytan/gstack

Then reference at freeze/SKILL.md

Related Skills