freeze

Restrict Edit and Write file operations to a designated directory per session.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/GTC6244/ToolBridge --skill freeze-gtc6244
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/GTC6244/ToolBridge/tree/main/.claude/skills/gstack/freeze
Command: npx skills add https://github.com/GTC6244/ToolBridge --skill freeze-gtc6244

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lock edits to a single directory within a session to prevent accidental changes outside the intended scope.

Core Features & Use Cases

  • Boundary enforcement: restricts Edit and Write actions to a specified path, helping debug without touching unrelated files.
  • Session-scoped enforcement: persists per session and can be reset with /unfreeze or end of session.
  • Real-time guard: validates file_path against the freeze boundary before each operation.

Quick Start

Ask the user which directory to restrict edits to and apply 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 file edits to a single directory during a coding session?

To lock file edits to a single directory, you can apply a session-scoped boundary that restricts Edit and Write operations. This ensures changes stay within the allowed path, preventing accidental modifications to unrelated files.

Can I restrict Claude from writing files outside a specific project folder?

Yes, you can restrict Claude from writing files outside a specific folder by enforcing a real-time guard. A pre-tool hook validates the file_path against a stored freeze boundary and denies operations outside it before each action.

What is a pre-tool hook for boundary enforcement in development workflows?

A pre-tool hook for boundary enforcement is a script that reads a designated path and blocks Edit or Write operations outside that scope. It acts as a real-time guard during debugging to keep changes contained.

How do I unfreeze or reset directory edit boundaries after a session?

You can unfreeze or reset directory edit boundaries by ending the current session or using the /unfreeze command. The restriction is session-scoped and does not persist across different sessions.

Does the freeze boundary work with both Edit and Write operations?

Yes, the freeze boundary works with both Edit and Write operations. It intercepts these specific actions to ensure that all file modifications remain strictly within the designated directory.