freeze

Restrict Edit and Write operations to a single directory boundary.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/escotilha/claude-public --skill freeze-escotilha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/escotilha/claude-public/tree/main/skills/freeze
Command: npx skills add https://github.com/escotilha/claude-public --skill freeze-escotilha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental Edit/Write changes to files outside a chosen directory, helping you avoid scope creep while debugging, refactoring, or working on parallel features.

Core Features & Use Cases

  • Edit/Write boundary enforcement: Activates a PreToolUse hook that blocks any Edit or Write operation outside the selected path.
  • Persistent session state: Stores the freeze boundary in a user-global state file so the restriction remains active across the session until removed.
  • Designed for disciplined development: Keeps Bash commands (including sed/awk) running normally, treating freeze as a scope-discipline guardrail rather than a security boundary.

Quick Start

Tell the agent to restrict edits to your auth code by running /freeze src/auth/.

Frequently Asked Questions about freeze

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

FAQPage Schema
How do I prevent accidental file edits outside a specific directory?

To prevent accidental file edits outside a specific directory, you can enforce a boundary that restricts Edit and Write operations to a single target path. This stops unintended changes during debugging or focused refactoring within a chosen module.

Can I restrict refactoring scope to just one folder without blocking Bash commands?

Yes, you can restrict refactoring scope to one folder while keeping Bash commands running normally. This treats the restriction as a scope-discipline guardrail for file operations, allowing terminal commands like sed or awk to execute without interference.

How does a PreToolUse hook stop scope creep when editing code?

A PreToolUse hook stops scope creep by intercepting Edit and Write operations before execution, checking the resolved absolute directory path. If a file path falls outside the selected boundary, the hook denies the operation to prevent unauthorized modifications.

What's the best way to keep parallel feature work isolated to a single module?

The best way to keep parallel feature work isolated is to activate a persistent directory boundary that remains active across your session. This ensures only the files within your target module's folder can be modified until you remove the restriction.

Are file edit guardrails a security boundary for protecting code?

File edit guardrails are not a security boundary for protecting code. They function as a discipline tool to prevent accidental scope creep during development, ensuring Edit and Write operations stay within a chosen directory while allowing unrestricted Bash execution.

Does the freeze restriction stay active across different sessions?

The restriction stays active across your session by storing the freeze boundary in a user-global state file. This persistent state ensures the directory limit remains enforced until you explicitly remove it, preventing accidental scope expansion during extended work.