freeze

Restrict AI file edits to a specified directory via a pre-tool hook.

Updated May 7, 2026
One-click install
npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill freeze-tumeloramaphosa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/TumeloRamaphosa/StudEx-Valley-OS/tree/main/.claude/skills/gstack/freeze
Command: npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill freeze-tumeloramaphosa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The freeze skill prevents accidental code changes by stopping the AI from editing files outside a directory you choose during the session.

Core Features & Use Cases

  • Edit/Write boundary enforcement: Blocks Edit and Write tool operations targeting files outside the allowed path.
  • Session-persistent scope: Persists the chosen boundary via a state file read on each tool invocation.
  • Debugging and scoped fixes: Use when you want to limit changes to a specific module while diagnosing issues, or when you are asked to “only edit this folder”.

Quick Start

Ask the AI to run the freeze skill and tell it the directory path you want to allow for edits, such as src/components/.

Frequently Asked Questions about freeze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restrict AI file edits to a specific directory?

To restrict AI file edits to a specific directory, you apply a pre-tool hook that resolves file paths and denies Edit or Write operations outside a configured freeze boundary. This prevents unintended changes across your repository during debugging.

What is a tool hook for scoped refactoring and debugging?

A tool hook for scoped refactoring is a pre-operation check that intercepts file modification commands. It enforces boundary checks by resolving target paths and blocking any edit operations outside an explicitly allowed directory scope.

Can I still read files outside the freeze directory?

Yes, you can read files outside the freeze directory. The safety guardrail specifically restricts Edit and Write operations, while read operations remain completely unrestricted across the entire repository.

How do I set up a session-persistent boundary for file edits?

You set up a session-persistent boundary for file edits by specifying an allowed directory path, which the system saves to a state file. The pre-tool hook reads this state file on each tool invocation to enforce the freeze.

Does the freeze scope automatically reset after debugging?

The freeze scope persists throughout your session via a state file read on each tool invocation. You must explicitly manage the session boundary to remove the edit restrictions once your scoped refactoring or debugging workflow is complete.