freeze

Restrict Edit and Write operations to a specified directory during a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a designated directory for the current Claude session, preventing changes outside the allowed path.

Core Features & Use Cases

  • Enforces a boundary for Edit and Write operations during a session, ensuring changes stay within the approved directory.
  • Persists the boundary to a state file and validates operations in real time, aiding debugging and safe code reviews.
  • Use cases include debugging sessions where you want to scope changes to a single module or folder.

Quick Start

Ask Claude to set a freeze boundary by specifying the directory you want to allow edits in, then continue working within that scope.

Frequently Asked Questions about freeze

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

FAQPage Schema
How do I restrict Claude from editing files outside a specific directory during a session?

To restrict edits outside a specific directory, you can set a freeze boundary that stores the allowed path in a state file and validates Edit/Write operations in real time via a PreToolUse hook, blocking any changes outside that scope.

Can I scope code changes to a single folder when debugging with Claude?

Yes, you can scope code changes to a single folder by setting a freeze boundary, which enforces a directory boundary for the current session and ensures all edits remain within the approved module or folder during debugging.

How does a PreToolUse hook enforce directory boundaries for file edits?

A PreToolUse hook enforces directory boundaries by intercepting Edit and Write operations, checking the target path against an allowed directory stored in a state file, and blocking any operation that falls outside the frozen path.

What is the best way to prevent accidental file modifications outside a project scope during code reviews?

The best way to prevent accidental modifications during code reviews is to set a directory boundary that persists to a state file, blocking any edits outside the frozen path and keeping changes safely contained within the reviewed scope.

Does the freeze safeguard work for both Edit and Write operations?

Yes, the freeze safeguard works for both Edit and Write operations, evaluating each request in real time through a hook script to ensure the target file resides within the frozen directory before allowing the modification to proceed.

How do I set up a directory freeze boundary for my current session?

To set up a directory freeze boundary, ask Claude to specify the directory you want to allow edits in, which saves the path to a state file and activates the PreToolUse hook to validate all subsequent file operations against that boundary.