freeze

Block file edits outside a defined directory during Edit and Write operations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict file edits to a specific directory for the session. Blocks Edit and Write outside the allowed path. Use when debugging to prevent accidental changes, or when you want to scope changes to one module. Use when asked to "freeze", "restrict edits", "only edit this folder", or "lock down edits".

Core Features & Use Cases

  • Enforces a strict edit boundary so changes outside the designated folder are blocked.
  • Supports interactive boundary setup via user input and preserves the boundary for the session.
  • Suitable for debugging sessions, module isolation, and safe experimentation in constrained workspaces.

Quick Start

Ask the user which directory should be restricted for edits and set the freeze boundary accordingly.

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?

You can restrict file edits to a specific directory by enforcing a runtime freeze boundary that validates target paths during Edit and Write operations. The boundary persists for the session and normalizes paths to reliably block any changes outside the allowed folder.

What is the best way to lock down edits to one folder to prevent code drift?

Locking down edits to one folder requires setting an edit boundary that denies Write and Edit operations outside the designated path. This prevents code drift by scoping all modifications strictly to the module you are working on.

Can I use a pretooluse hook to block writes outside an allowed path?

Yes, a pretooluse hook can block writes outside an allowed path by validating the target directory before the operation executes. It applies during Edit and Write operations, denying any attempts to modify files beyond the defined boundary.

How do I set up an edit boundary to isolate changes while debugging?

To isolate changes while debugging, you set an edit boundary by specifying the directory to restrict. The boundary persists for the session, ensuring that accidental modifications to other parts of the project are blocked.

Why should I freeze a directory boundary for module isolation?

Freezing a directory boundary for module isolation prevents accidental changes to unrelated code by strictly enforcing that edits only occur within the allowed folder. This creates a safe workspace for experimentation without risking drift in the broader project.

Does the edit freeze boundary support path normalization to detect violations?

Yes, the edit freeze boundary supports path normalization to reliably detect violations. It normalizes target paths during Edit and Write operations to ensure that attempts to bypass the directory restriction are consistently caught and denied.