freeze

Restrict Edit and Write operations to a specified directory boundary.

1|Updated May 5, 2026
One-click install
npx skills add https://github.com/yashs33244/my-mac-claude --skill freeze-yashs33244
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/yashs33244/my-mac-claude/tree/main/skills/gstack/freeze
Command: npx skills add https://github.com/yashs33244/my-mac-claude --skill freeze-yashs33244

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It prevents accidental edits to unrelated files by blocking Edit and Write operations outside a chosen directory during a debugging or refactoring session.

Core Features & Use Cases

  • Edit/Write Scoping: Blocks any Edit or Write targeting files outside the frozen boundary, while leaving Read, Bash, Glob, and Grep unaffected.
  • Session Persistence: Maintains the freeze boundary for the session via a state file, checked on every Edit/Write tool invocation.
  • Safe-by-Design Guardrail: Helps you restrict changes to the module you’re working on, reducing unintended side effects when investigating bugs.

Quick Start

Run the freeze skill and tell it the directory path you want to allow edits within.

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 single directory during debugging?

To restrict file edits to a single directory during debugging, you set a freeze boundary that blocks Edit and Write operations outside your chosen path while leaving Read, Bash, and Glob unaffected. This prevents accidental modifications to unrelated files.

What are directory boundary guardrails for scoped refactoring?

Directory boundary guardrails for scoped refactoring are hooks that parse target file paths and return a deny decision for any out-of-scope modifications. They help ensure only the specific module being investigated or refactored is changed, reducing unintended side effects.

Does the freeze boundary affect Read, Bash, and Grep operations?

The freeze boundary does not affect Read, Bash, Grep, or Glob operations. It specifically intercepts and blocks only Edit and Write tool invocations that target files outside the user-defined directory boundary.

How do I set up a PreToolUse hook to block accidental file modifications?

To set up a PreToolUse hook that blocks accidental file modifications, you run the freeze skill and provide the directory path you want to allow edits within. A state file then maintains this boundary for the entire session, checking every Edit and Write invocation.

Can I maintain a scoped edit boundary across an entire coding session?

You can maintain a scoped edit boundary across an entire coding session via a state file that persists your chosen directory path. The boundary is automatically checked on every Edit and Write tool invocation to ensure ongoing compliance.