freeze

Restrict file edits to a defined directory via a PreToolUse hook.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protects development work by enforcing a single, configurable boundary for edits, preventing accidental modifications outside a designated directory during debugging or review sessions.

Core Features & Use Cases

  • Establishes a per-session freeze boundary that blocks Edit and Write operations outside the allowed path.
  • Provides a PreToolUse hook that checks the target file path and denies actions beyond the boundary.
  • Useful for debugging or scoped changes when you need to "lock down" edits to a specific module or folder.

Quick Start

Run /freeze to set the freeze boundary for edits to a specific directory.

Frequently Asked Questions about freeze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lock edits to a specific folder during a debugging session?

To lock edits to a folder during debugging, establish a session-wide freeze boundary that restricts modifications. It enforces this by applying a PreToolUse hook to check file paths and deny any write operations outside the designated directory.

What is a pretool hook for restricting file modifications?

A pretool hook for restricting file modifications is a script that reads a stored directory path and blocks destructive edits. It intercepts write actions before execution, ensuring code changes remain confined within a defined boundary during review or debugging sessions.

Can I prevent accidental code changes outside a designated directory?

Yes, you can prevent accidental code changes outside a designated directory by setting a configurable boundary. This blocks Edit and Write operations across your development session, guarding against unintended modifications to files beyond the allowed path.

How do I set a boundary for allowed edits using a bash script?

To set a boundary for allowed edits using a bash scripting hook, run the command to define the target directory. This establishes the per-session restriction and deploys the hook that denies any file modifications attempted beyond that specific path.

Does the freeze boundary apply across the entire development session?

Yes, the freeze boundary applies across the entire development session. Once established, it continuously guards code changes by blocking any Edit or Write operations targeting files outside the designated directory until the session concludes.

When should I restrict modifications to a single directory?

You should restrict modifications to a single directory when performing scoped changes or debugging specific modules. Enforcing a boundary prevents accidental modifications to other parts of the codebase while you focus your review within that isolated path.