freeze

Restrict Edit and Write operations to a specified directory via a PreToolUse hook.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3.

What problem does it solve?

Restrict edits to a specific directory for the session to prevent accidental changes outside the intended scope, making debugging and modular work safer.

Core Features & Use Cases

  • Enforces a configurable freeze boundary that blocks Edit and Write outside the allowed path.
  • Interactive setup that asks for the target directory, resolves its absolute path, and persists the boundary for the session.
  • Includes a PreToolUse hook that checks the boundary before every Edit/Write operation and fails safely if outside the boundary.

Quick Start

Set a freeze boundary to restrict edits to a specified directory 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 edits to a specific directory during a coding session?

A PreToolUse hook checks the configured freeze boundary before every Edit and Write operation, failing safely and denying execution if the target file is outside the allowed directory.

Can I lock file modifications to a project folder for safe debugging?

Yes, you can lock file modifications to a project folder by persisting a session boundary, which enables safe debugging and controlled collaboration by preventing unintended changes outside the scope.

Do I need python3 to set up a freeze boundary for file edits?

Yes, you need python3 installed in your environment to run the setup workflow, which interactively asks for the target directory and resolves its absolute path to enforce the boundary.

What happens if I try to edit files outside the freeze boundary?

If you try to edit files outside the freeze boundary, the PreToolUse hook denies the operation and fails safely, ensuring that no unintended changes occur outside your specified project directory.