freeze

Restrict file edits to a user-specified directory using a PreToolUse hook.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory for the current session to prevent changes outside the allowed path, helping debugging and focused modular work.

Core Features & Use Cases

  • Enforces a freeze boundary via a PreToolUse hook that checks file_path against the designated directory.
  • Persists the boundary state to a per-user location and allows quick reconfiguration during a session.
  • Denies edits outside the frozen directory, reducing accidental modifications during development.
  • Use case: during complex refactors, lock edits to a single module to prevent drift across the codebase.

Quick Start

Tell me the absolute path of the directory to freeze and I will lock edits to that location.

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?

You can restrict file edits by freezing a specific directory using a PreToolUse hook that validates file paths against the allowed folder. This enforces a workspace boundary that denies any modifications outside the designated path.

What is directory freezing and how does it prevent codebase drift?

Directory freezing locks edits to a single folder to prevent codebase drift. It uses a bash script to validate paths and a PreToolUse hook to block accidental modifications outside the allowed directory during complex refactors.

How do I lock edits to a single module for isolated work?

You lock edits to a single module by providing the absolute path of the target directory. The session enforces a workspace boundary using a PreToolUse hook that checks file paths and denies changes outside that module.

Can I reconfigure the frozen directory boundary during a session?

Yes, you can reconfigure the frozen directory boundary during a session. The boundary state persists to a per-user location, allowing you to quickly adjust the allowed path and maintain your workspace restrictions as needed.

Does restricting edits to a workspace boundary require any dependencies?

Restricting edits to a workspace boundary requires no external dependencies. It leverages a simple bash script for path validation and a PreToolUse hook to enforce the allowed directory restrictions directly.

When should I use a folder freeze boundary for my codebase?

Use a folder freeze boundary during complex refactors or isolated module debugging. It prevents drift across the codebase by denying edits outside the frozen directory, ensuring changes remain contained within a single folder.