freeze

Restrict file edits to a user-specified directory within a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory during a session to prevent unintended changes elsewhere, helping debugging and scoped work.

Core Features & Use Cases

  • Boundary-bound editing: lock edits to a chosen folder and block Edit and Write operations outside it.
  • Session-scoped safety: prevents drift when debugging or coding in large codebases.
  • Use Case: when you want to ensure all changes stay within a feature folder during a patch.

Quick Start

Ask the user which directory to restrict edits to, and save the boundary for subsequent Edit/Write operations.

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 debugging?

To restrict file edits to a specific directory during debugging, you lock edits to a chosen folder to prevent drift. This blocks Edit and Write operations outside that boundary, ensuring changes remain scoped to a single feature folder.

What is directory boundary enforcement for scoped work?

Directory boundary enforcement is a safeguard mechanism that restricts file edits to a user-specified directory within a session. It compares requested file paths against a stored boundary to block unauthorized modifications elsewhere in the codebase.

How do I lock a codebase folder to prevent unintended changes elsewhere?

You lock a codebase folder by setting a user-specified directory boundary. A pretool hook then enforces this boundary for subsequent operations, persisting the configuration in your data directory to prevent unintended changes elsewhere.

Can I block Write operations outside a feature folder across large codebases?

Yes, you can block Write operations outside a feature folder across large codebases. The safeguard uses a pretool hook to compare requested file paths against your stored boundary, ensuring changes remain strictly confined within your scoped directory.

When do I need to restrict edits to a single folder during a patch?

You need to restrict edits to a single folder during a patch when you want to ensure all changes stay within a feature folder. This session-scoped safety prevents drift when debugging or coding across large codebases.