freeze

Block Edit and Write operations outside a user-specified directory.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/alexandervashurin/semaphore --skill freeze-alexandervashurin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/alexandervashurin/semaphore/tree/main/.claude/skills/freeze
Command: npx skills add https://github.com/alexandervashurin/semaphore --skill freeze-alexandervashurin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill locks file edits to a designated directory for the session, preventing accidental or unintended changes outside the defined boundary during debugging or scoped work.

Core Features & Use Cases

  • Restrict edits to a chosen directory for the session.
  • Block Edit and Write operations outside the boundary.
  • Useful during debugging or when you want to scope changes to a single module.

Quick Start

Run the freeze boundary to lock edits to the specified directory.

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 a debugging session?▼

You can restrict file edits to a single directory by setting a boundary that blocks Edit and Write operations outside it. This prevents accidental changes while debugging or scoping work to one module.

What is directory freezing and when should I use it?▼

Directory freezing locks edits to a chosen path for your session. Use it during debugging or when you need to scope changes to a single module, ensuring no unintended modifications occur outside the boundary.

How do I lock a directory boundary to prevent accidental file modifications?▼

To lock a directory boundary, you apply a freeze that reads the specified path from a state file. A hook then denies any Edit or Write operations attempted outside that directory during the session.

Does freezing directory edits block both Edit and Write operations?▼

Yes, freezing directory edits blocks both Edit and Write operations. Once the boundary is set, a PreToolUse hook reads the freeze state and denies any file modification attempts outside the specified directory.

Can I scope changes to a specific module without affecting other files?▼

You can scope changes to a specific module by applying a directory freeze. This restricts the session so that all edits are confined to the chosen boundary, preventing modifications to files elsewhere.

What are the limitations of relying on a state file for directory freeze boundaries?▼

The directory freeze relies on a state file to enforce the boundary. If the state file is missing or unreadable, the PreToolUse hook cannot validate the boundary, potentially allowing edits outside the intended scope.