freeze

Restrict file edits to a specified directory during a session.

1|Updated May 27, 2026
One-click install
npx skills add https://github.com/mi179/claude-skills --skill freeze-mi179
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/mi179/claude-skills/tree/main/user/gstack/freeze
Command: npx skills add https://github.com/mi179/claude-skills --skill freeze-mi179

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory for the current session to prevent accidental modifications outside the target path.

Core Features & Use Cases

  • Bind edits to a chosen directory for the duration of the session.
  • Block Edit and Write operations outside the defined boundary.
  • Ideal for debugging and module-focused work to avoid unintended changes.

Quick Start

Set a freeze boundary to restrict edits to a specific directory 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 restrict file edits to a specific directory during a bash session?

To prevent accidental file modifications outside your target path, you can lock edits to a specific directory for the current session. This implements a PreToolUse hook that intercepts tools and blocks off-boundary edit and write operations.

What is a PreToolUse hook for blocking file modifications?

A PreToolUse hook for blocking file modifications is a mechanism that intercepts tool calls before execution to validate target file paths. It enforces a directory restriction by checking requested paths against a stored boundary and aborting operations that fall outside the approved scope.

How do I set an editing boundary to prevent accidental changes during debugging?

To set an editing boundary for debugging, you define a freeze boundary that restricts edits to your chosen directory for the current session. This boundary blocks any write operations outside the target path, ensuring your debugging work does not trigger unintended changes elsewhere.

Can I bind write operations to a single directory for module-focused work?

Yes, you can bind write operations to a single directory for module-focused work by activating a session hook. This hook enforces a strict directory restriction, verifying every target file path against your defined boundary and blocking any edits that fall outside that module path.

Does the freeze hook block both Edit and Write operations outside the boundary?

Yes, the freeze hook blocks both Edit and Write operations outside the defined boundary. It enforces the directory restriction by validating target file paths during the PreToolUse phase, ensuring no modifications occur beyond the stored boundary during the active session.