freeze

Restrict Edit and Write operations to a specified directory using a Bash pre-tool hook.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Edits can spill outside a defined directory, risking unintended changes during debugging or module work.

Core Features & Use Cases

  • Restricts edits to a user-specified directory for the duration of the session.
  • Prevents accidental modifications outside the boundary, increasing safety during development.
  • Use Case: keep focused work by confining edits to a single folder to avoid touching other modules.

Quick Start

Ask the user for a directory path to restrict edits to, then apply the 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 restrict file edits to a specific directory during a bash session?

To restrict file edits to a specific directory, you lock edits using a boundary file and a Bash pre-tool hook. This enforces the rule on Edit and Write operations, preventing accidental modifications outside the defined folder.

Can I prevent accidental code changes outside a module while debugging?

Yes, you can prevent accidental code changes outside a module by applying a directory boundary for your current session. This isolates edits to a single folder, increasing safety during focused debugging or development work.

What is the best way to lock writes to a single folder during development?

The best way to lock writes to a single folder is by setting up a directory boundary using a Bash hook. It intercepts Write and Edit operations, ensuring no unintended changes spill outside your specified development directory.

Does the edit restriction hook require any dependencies to work?

No, the edit restriction hook requires no external dependencies to work. It operates independently using a Bash pre-tool hook and a boundary file to enforce directory limits during your active session.

When should I use a directory boundary to isolate file modifications?

You should use a directory boundary to isolate file modifications when you need to confine edits to a specific module or folder. It is particularly useful during debugging to prevent unintended changes from spilling into other parts of the project.

How do I apply a directory boundary to start isolating edits?

To apply a directory boundary, you provide a specific directory path to restrict edits to. Once applied for the current session, the boundary actively blocks any Edit or Write operations targeting files outside that defined path.