freeze

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Block edits outside a user-defined directory during a session to prevent accidental changes.

Core Features & Use Cases

  • Boundary enforcement via a PreToolUse hook to restrict edits to a specified directory for the session.
  • Stateful boundary: persists the directory to a session-local state file so the boundary remains active across actions.
  • Safe operation: only blocks Edit/Write operations outside the boundary; Read and other tools are unaffected.

Quick Start

Ask the user for a directory path to restrict edits to and apply the boundary for the current session.

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 apply a session-boundary using a PreToolUse hook with a Bash script. This blocks Edit and Write operations outside your defined folder while keeping Read tools unaffected.

Can I lock edits to a single folder to prevent accidental changes outside of it?

Yes, you can lock edits to a single folder to prevent accidental changes by enforcing a directory boundary. This stateful boundary persists your target directory path to a local state file, ensuring the restriction remains active across all actions in your current session.

How do PreToolUse hooks work for blocking edits outside a project directory?

PreToolUse hooks block edits outside a project directory by running a Bash script before file modification tools execute. The script checks the target file path against your user-defined boundary and cancels any Edit or Write operation attempting to modify files outside that specified folder.

Does restricting edits to a directory affect reading files outside the boundary?

Restricting edits to a directory does not affect reading files outside the boundary. The enforcement mechanism specifically targets and blocks only Edit and Write operations, leaving Read and other non-modifying tools completely unaffected for safe debugging and code exploration.

When should I use a session-boundary to confine edits to one folder?

You should use a session-boundary to confine edits to one folder during interactive debugging or coding sessions where you want to prevent accidental changes. It is ideal when exploring or modifying unfamiliar codebases where you need strict containment of file modifications.

Do I need any dependencies to set up a directory edit lock with a Bash hook?

You do not need any dependencies to set up a directory edit lock with a Bash hook. The boundary enforcement operates independently using a standard Bash script and a session-local state file, requiring no external packages or additional components to function.