freeze

Restrict Edit and Write operations to a user-specified directory for the session.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Chang-Shih-Yung/auto-learning --skill freeze-chang-shih-yung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/Chang-Shih-Yung/auto-learning/tree/main/.claude/skills/gstack/freeze
Command: npx skills add https://github.com/Chang-Shih-Yung/auto-learning --skill freeze-chang-shih-yung

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict file edits to a specific directory for the session. Blocks Edit and Write outside the allowed path. Use when debugging to prevent accidentally "fixing" unrelated code, or when you want to scope changes to one module. Use when asked to "freeze", "restrict edits", "only edit this folder", or "lock down edits". (gstack)

Core Features & Use Cases

  • Boundary enforcement of edits to a user-specified directory during a development session.
  • PreToolUse hook integration to block Edit/Write operations outside the allowed path.

Quick Start

Ask the user which directory to restrict edits to, then enforce the boundary 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 a bash development session?

To restrict file edits to a specific directory, you can lock down edits for the current session by setting a stored path and using a PreToolUse hook to block Edit and Write operations outside that allowed directory boundary.

What is a PreToolUse hook for scoping edits and how does it enforce an edit boundary?

A PreToolUse hook enforces an edit boundary by intercepting tool requests and denying any Edit or Write operations targeting files outside a user-specified directory, ensuring changes stay within the allowed path.

How do I prevent accidental code changes outside a module when debugging?

To prevent accidental code changes outside a module during debugging, you can restrict edits to that specific folder, blocking any Write or Edit operations outside the scoped directory boundary for the current session.

Can I lock down edits to only one folder without affecting other files in the project?

Yes, you can lock down edits to only one folder by specifying a directory path; the session will then block all Edit and Write operations targeting files outside that allowed directory boundary.

When should I restrict edits to a single directory during development?

You should restrict edits to a single directory when debugging to prevent accidentally fixing unrelated code, or when you want to scope all changes to a specific module to ensure modifications stay within the allowed path.