freeze

Block Edit and Write operations outside a user-defined directory during a session.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/tony30552001/Genpic-master --skill freeze-tony30552001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/tony30552001/Genpic-master/tree/main/.agents/skills/gstack/freeze
Command: npx skills add https://github.com/tony30552001/Genpic-master --skill freeze-tony30552001

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory for the session to prevent accidental changes outside the intended scope.

Core Features & Use Cases

  • Boundary enforcement for Edit and Write operations, ensuring changes stay within a defined folder.
  • On-demand scoping to isolate debugging or module-focused changes.
  • Safe, user-driven boundary setup via an interactive prompt at runtime.

Quick Start

Ask the user which directory to freeze, then apply the boundary so only edits inside that path are allowed.

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 setting a boundary that blocks Edit and Write operations outside a designated path. A PreToolUse hook validates the file_path against your defined boundary before any action proceeds.

Can I prevent accidental changes outside my project scope while debugging?

Yes, preventing accidental changes outside your project scope is done by freezing a directory for the session. This on-demand scoping isolates debugging or module-focused changes to a single folder so no unintended modifications occur elsewhere.

How does a PreToolUse hook enforce directory boundaries for workspace edits?

A PreToolUse hook enforces directory boundaries by comparing the requested file_path against a user-defined boundary stored in the session state. If the target path falls outside the allowed directory, the Edit or Write operation is denied immediately.

What is the best way to lock a single module for isolated code modifications?

The best way to lock a single module for isolated code modifications is to interactively define a boundary at runtime. Once the directory path is set, all subsequent edits are confined strictly to that module, preventing cross-project interference.

Do I need any external dependencies to set up edit boundaries in my workspace?

No external dependencies are needed to set up edit boundaries in your workspace. The boundary enforcement operates entirely through the built-in PreToolUse hook mechanism, requiring only an interactive prompt to designate the target directory path.

Why are my file writes being denied when working across multiple project folders?

Your file writes are being denied because the active boundary restricts operations to a single designated directory. When you attempt to edit files outside the frozen path, the hook intercepts and blocks the Write or Edit action to protect the broader workspace.