freeze

Restrict file edits to a specified directory using a pre-execution hook.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/simbotNL/BT --skill freeze-simbotnl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/simbotNL/BT/tree/main/plugins/gstack/freeze
Command: npx skills add https://github.com/simbotNL/BT --skill freeze-simbotnl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that file edits are restricted to a specific directory, preventing accidental modifications outside of the intended scope.

Core Features & Use Cases

  • Edit Restriction: Blocks Edit and Write operations outside of the specified directory.
  • Session-based: The restriction lasts for the duration of the session.
  • Use Case: Ideal for debugging to avoid unintentional changes to unrelated code or for when you want to focus on a specific module.

Quick Start

To restrict file edits to a directory, use the following command:

/freeze <directory-path>

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 coding session?

To restrict file edits to a specific directory during a coding session, you can use a pre-execution hook that checks file paths against an allowed boundary. This blocks Edit and Write operations outside the intended scope.

Can I prevent accidental modifications to files outside my current working directory?

Yes, you can prevent accidental modifications to files outside your working directory by applying a session-based restriction. This ensures that only files within a specified directory boundary can be edited or written to.

How does a pre-execution hook check file paths before editing?

A pre-execution hook checks file paths before editing by intercepting edit commands and verifying if the target path falls within the allowed directory boundary. If it falls outside, the operation is blocked.

What is the best way to lock a directory for focused code editing?

The best way to lock a directory for focused code editing is to enable a session restriction that scopes all write and edit operations to that specific path. This prevents unintentional changes to unrelated modules while debugging.

Do I need to configure anything before restricting file edits to a directory?

You need to specify the target directory path using the restriction command before limiting file edits. Once set, the session automatically blocks any edit or write operations targeting files outside that boundary.

Why does my file edit fail when using a directory lock?

Your file edit fails when using a directory lock because the pre-execution hook detected the target file path is outside the allowed boundary. The session restricts edits to only those files within the specified directory.