freeze

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

5|2|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/agatx/serenada --skill freeze-agatx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/agatx/serenada/tree/main/.claude/skills/gstack/freeze
Command: npx skills add https://github.com/agatx/serenada --skill freeze-agatx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory for the current session, preventing accidental or intentional changes outside the intended scope.

Core Features & Use Cases

  • Defines a per-session edit boundary that blocks Edit and Write operations outside the allowed path.
  • Useful during debugging or when you want to confine changes to a single module or folder.
  • Works with a simple boundary setup command and automatic boundary checks via a PreToolUse hook.

Quick Start

Specify a directory to freeze, and I will restrict edits to that path 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 code edits to a single directory during a debugging session?

To restrict code edits to a single directory, you can use a session boundary that blocks Edit and Write operations outside an allowed path while still permitting Read access, preventing accidental modifications to other modules.

What is a PreToolUse hook for scoping file changes?

A PreToolUse hook for scoping file changes is a mechanism that intercepts Edit and Write actions before execution, running a validation script to ensure operations only occur within a specified directory boundary.

How do I prevent accidental writes outside a specific folder while debugging?

You can prevent accidental writes outside a specific folder by setting a per-session edit boundary that actively blocks Write operations beyond the defined path, confining all modifications to the intended module.

Can I still read files outside the allowed path when directory edits are frozen?

Yes, you can still read files outside the allowed path when directory edits are frozen, as the boundary only blocks Edit and Write operations while allowing Read access for reference.

Does freezing a directory boundary require any external dependencies?

No, freezing a directory boundary does not require external dependencies, as it operates using a state file and a bash hook script to enforce the edit restrictions natively within the session.

What is the best way to confine modifications to one module during development?

The best way to confine modifications to one module is to establish a temporary directory boundary that restricts all Edit and Write actions to that specific scope for the duration of the session.