freeze

Block file edits outside a specified directory during Claude Code sessions.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/uzumaki-inc/uzustack --skill freeze-uzumaki-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/uzumaki-inc/uzustack/tree/main/_upstream/gstack/freeze
Command: npx skills add https://github.com/uzumaki-inc/uzustack --skill freeze-uzumaki-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill blocks edits outside a user-specified directory to prevent accidental changes during debugging or scope edits to a single module.

Core Features & Use Cases

  • Lock edits to a single folder to avoid unintended changes across a project during debugging.
  • Persist the boundary for the session so subsequent edits remain scoped, until explicitly cleared.
  • Useful in Claude Code workflows where you want to isolate changes to a specific directory.

Quick Start

Provide a directory path when prompted to set the freeze boundary for the current session.

Frequently Asked Questions about freeze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lock edits to a single directory during a Claude Code session?

You can lock edits to a specific directory by providing the folder path when prompted. This sets a persistent boundary that blocks file modifications outside that directory for the current session.

Can I restrict code changes to one folder while debugging in Claude Code?

Yes, you can restrict code changes to one folder while debugging by applying a directory boundary. This ensures subsequent edits remain scoped to that specific module until the boundary is explicitly cleared.

How does the directory boundary mechanism work to block unintended edits?

The directory boundary mechanism works by using a PreToolUse hook and a Bash helper. It reads a persistent state file to check the specified directory and denies any operations attempted outside that boundary.

Does the folder lock persist across multiple edits within the same project session?

Yes, the folder lock persists across multiple edits within the same project session. The boundary remains active for all subsequent edits until you explicitly clear it, ensuring continuous scope isolation.

When should I restrict file modifications to a specific directory scope?

You should restrict file modifications to a specific directory scope when debugging or making scope edits to a single module. This prevents accidental changes from spreading across the broader project files.

What are the limitations of locking edits to a folder boundary?

The folder boundary limitation is that it only applies within Claude Code sessions for the current project. It blocks edits outside the specified directory but requires explicit clearing to remove the restriction.