freeze

Restrict file edits and writes to a user-defined directory during a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict file edits to a specific directory for the session to prevent accidental changes outside the intended scope during debugging or guided workflows.

Core Features & Use Cases

  • Restricts Edit and Write operations to the declared directory within the active session.
  • Uses an interactive AskUserQuestion to capture the allowed path and persists the boundary across the session.
  • Blocks edits outside boundary via a PreToolUse hook, with analytics logging on boundary violations.

Quick Start

Provide the directory path to lock edits within for the current session.

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 specific directory during debugging?

To restrict file edits to a specific directory during debugging, you provide the allowed folder path to lock the session. A PreToolUse hook then evaluates file paths and blocks any writes outside the declared boundary.

How does a PreToolUse hook prevent unintended changes outside a project folder?

A PreToolUse hook prevents unintended changes by evaluating the file_path of every edit or write operation against a user-defined directory boundary. If the path falls outside the frozen directory, the hook blocks the action and logs an analytics violation.

Can I lock edit boundaries for scoped workflows without configuring dependencies?

Yes, you can lock edit boundaries for scoped workflows without dependencies. The feature operates independently by capturing your allowed path interactively and persisting the boundary directly within the session state.

What is the best way to prevent accidental writes outside a target directory in a coding session?

The best way to prevent accidental writes outside a target directory is to freeze the session scope. This locks all edit and write operations exclusively to your declared path, ensuring debugging changes remain strictly bounded.

Why are my file edits being blocked when trying to write outside the active debugging directory?

Your file edits are blocked because a session boundary restricts writes to a specific directory. When you attempt to modify files outside the frozen folder, the enforcement hook intercepts the action and prevents the change.

Does the freeze boundary persist across the entire debugging session?

Yes, the freeze boundary persists across the entire debugging session. Once you provide the allowed directory path, the restriction is saved in the session state and continuously enforced by the hook until the session ends.