freeze

Block file edits outside a designated directory during a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3.

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 accidentally "fixing" unrelated code, or when you want to scope changes to one module.

Core Features & Use Cases

  • Boundary enforcement for Edit and Write operations, blocking anything outside the allowed path.
  • Persistent boundary across the session, enforced by a simple state file.
  • Safe setup and rollback: boundary can be changed with /freeze or removed with /unfreeze.

Quick Start

Ask the user which directory to restrict edits to and then run /freeze to set the boundary.

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

To restrict file edits to a specific directory, you set a persistent boundary using a PreToolUse hook that validates Edit and Write operations. This blocks any modifications outside your designated target folder.

What is directory freezing for scoped code changes?

Directory freezing is a mechanism that locks edits to a single folder during a session. It prevents unintended changes to unrelated code by enforcing a strict boundary stored in a state file.

Do I need Python3 installed to enforce folder boundaries for code reviews?

Yes, you need Python3 installed to enforce folder boundaries for code reviews. The dependency is required to run the PreToolUse hook that validates your Edit and Write operations against the allowed path.

Can I change or remove the edit boundary after it has been set?

Yes, you can change or remove the edit boundary after it has been set. You can update the restricted directory with the freeze command or completely remove the restriction using the unfreeze command.

Why does my Write operation fail outside the allowed directory path?

Your Write operation fails outside the allowed directory path because a persistent boundary is actively blocking edits. The PreToolUse hook validates all modifications against the scoped folder to prevent unintended changes.