freeze

Block file edits outside a chosen directory during a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents accidental or scope-breaking edits by restricting file modifications to a user-specified directory during a session, helping developers debug and scope changes to a single module.

Core Features & Use Cases

  • Enforces a dynamic edit boundary per session so edits outside the target folder are blocked for the duration of the session.
  • Blocks Edit and Write operations targeting files outside the allowed path, reducing risk of collateral changes during debugging.
  • Useful when debugging or refactoring a single module, or when you want to lock down edits while collaborating across a codebase.

Quick Start

Ask the user which directory to freeze edits to, resolve it to an absolute path, and save the boundary for the current session to block edits outside that 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 lock an edit boundary by resolving a chosen folder path and saving it to a persistent state file. This enforces a sandbox that blocks accidental modifications outside that target directory.

Can I prevent accidental file modifications outside a target module while debugging?

Yes, you can prevent accidental file modifications outside a target module while debugging by enforcing a dynamic edit boundary per session. This blocks Edit and Write operations targeting files outside the allowed path, reducing the risk of collateral changes.

How do edit boundaries and hook mechanisms work to enforce directory permissions?

Edit boundaries and hook mechanisms enforce directory permissions by saving a chosen folder path to a persistent state file. The system hooks into Edit and Write tools to check file paths against this boundary, blocking any operations outside the allowed directory.

What is the best way to lock down edits when collaborating across a codebase?

The best way to lock down edits when collaborating across a codebase is to enforce an in-session edit boundary. This restricts file modifications to a user-specified directory, preventing scope-breaking changes and keeping development focused on the target folder.

Are there limitations to using a persistent state file for enforcing an edit sandbox?

A limitation of using a persistent state file for an edit sandbox is that the boundary is enforced per session by hooking into editing tools. It relies on the session's active state file, meaning enforcement is tied to the current working session's hook permissions.

Do I need any dependencies to set up directory guardrails for scoped development?

No external dependencies are required to set up directory guardrails for scoped development. The enforcement relies on a persistent state file and hooks into existing Edit and Write tools to block edits outside the chosen directory during the session.