freeze

Restrict Edit and Write operations to a user-specified directory.

4|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Kit4Some/Oh-my-ClaudeClaw --skill freeze-kit4some
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/Kit4Some/Oh-my-ClaudeClaw/tree/main/skills/freeze
Command: npx skills add https://github.com/Kit4Some/Oh-my-ClaudeClaw --skill freeze-kit4some

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Blocks edits outside a user-specified directory to prevent accidental or unauthorized changes during a Claude Code session.

Core Features & Use Cases

  • Enforces a persistent freeze boundary that applies to Edit and Write operations.
  • Uses a pre-tool hook to run a safety check script before edits are allowed.
  • Supports runtime user prompts to set the boundary and logs activation for audit.

Quick Start

Tell me which directory to freeze so edits are restricted to that path.

Frequently Asked Questions about freeze

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

FAQPage Schema
How do I restrict Claude Code edits to a specific directory?

You can lock edits to a specific directory by setting a persistent freeze boundary that blocks all Edit and Write operations outside that path. This prevents accidental changes during your Claude Code session.

Can I prevent accidental file modifications outside a project folder during an AI session?

Yes, you can prevent accidental modifications by applying a persistent freeze boundary to your project folder. A pre-tool hook runs a safety shell check script to block any unauthorized edits outside that directory.

How do I set up a directory freeze boundary for shell edits?

You set up a directory freeze boundary by responding to a runtime prompt that captures your target directory. The tool stores this path in state and enforces it via a shell check script before allowing any edits.

Does the freeze boundary persist across different operations in a session?

Yes, the freeze boundary persists across all Edit and Write operations during a Claude Code session. It uses a pre-tool hook to run a safety check script, ensuring ongoing protection against unauthorized directory changes.

What happens if Claude tries to write files outside the frozen directory?

If Claude attempts to write files outside the frozen directory, the pre-tool hook runs a shell check script that blocks the edit. This safety mechanism prevents accidental or unauthorized changes to files outside the boundary.