freeze

Restrict file edits to a specified directory for a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a specific directory for the duration of a session to prevent accidental changes elsewhere.

Core Features & Use Cases

  • Enforces a runtime boundary for edits by storing a per-session path in a state file.
  • Intercepts Edit and Write tool invocations to ensure all file operations stay inside the frozen directory.
  • Useful during debugging or focused work when changes must remain within a module or project folder.

Quick Start

Provide a directory path to freeze and the skill will enforce edits only within that directory for the 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 a coding session?

To restrict file edits to a specific directory, you can lock a workspace boundary using a per-session state file. This intercepts Edit and Write operations, ensuring all changes remain strictly within the frozen folder for that session.

Why do I need to lock edits to a folder when debugging a module?

Locking edits to a folder during debugging prevents accidental file modifications elsewhere in the project. By enforcing a runtime boundary on Write and Edit tools, you guarantee focused work stays entirely within the target module's directory.

Can I enforce edit boundaries across my entire workspace using a PreToolUse hook?

Yes, you can enforce edit boundaries using a PreToolUse hook. The hook intercepts tool invocations at runtime, checking the requested file paths against a stored directory boundary to block any unauthorized Write or Edit operations.

What is the best way to prevent accidental writes outside a project folder?

The best way to prevent accidental writes outside a project folder is to establish a runtime boundary via a per-session state file. This approach automatically blocks any Edit or Write tool attempts targeting files outside the designated directory.

Does session-based edit locking apply to both file writing and editing operations?

Yes, session-based edit locking applies to both file writing and editing operations. The enforcement mechanism specifically intercepts and validates both Write and Edit tool invocations against the frozen directory path stored in the session state.

When should I not use a frozen directory boundary for my workspace?

You should not use a frozen directory boundary if your current work requires modifying files across multiple project folders simultaneously. The boundary strictly confines all Write and Edit operations to a single specified directory for the entire session duration.