freeze

Restrict file edits and writes to a user-specified directory.

Updated May 9, 2026
One-click install
npx skills add https://github.com/kk20300113-png/my-claude-skills --skill freeze-kk20300113-png
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/kk20300113-png/my-claude-skills/tree/main/freeze
Command: npx skills add https://github.com/kk20300113-png/my-claude-skills --skill freeze-kk20300113-png

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common issue of accidentally modifying unrelated files when working on a specific module, debugging, or performing scoped edits, which can introduce unintended bugs, waste time reverting changes, and break unrelated functionality.

Core Features & Use Cases

  • Strict Edit Blocking: Automatically blocks all Edit and Write operations targeting files outside the user-specified allowed directory, with no soft warnings.
  • Debugging Safety: Prevents accidental "fixes" to unrelated code when troubleshooting a specific issue, reducing the risk of introducing new bugs.
  • Scoped Workflows: Ideal for tasks where you only want to modify files within a single module or folder, ensuring all changes stay within the intended boundary.

Quick Start

Freeze all file edits to the /src/authentication directory so I don't accidentally modify unrelated code while debugging the login flow.

Frequently Asked Questions about freeze

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

FAQPage Schema
How do I prevent accidental file edits outside a specific directory during debugging?

To prevent accidental file edits outside a directory during debugging, you can apply a directory lock that blocks Edit and Write operations via pre-execution hook validation, restricting modifications strictly to your specified project folder.

Can I restrict write operations to a single project folder without affecting read-only access?

Yes, you can restrict write operations to a single project folder without affecting read-only or command-line operations, as the edit blocking mechanism strictly targets Edit and Write tool invocations while leaving other actions untouched.

What is scoped edit blocking and when do I need it for module workflows?

Scoped edit blocking is a mechanism that limits file modifications to a predefined boundary, needed during module workflows or debugging to ensure all changes stay within the intended folder and avoid unintended side effects to unrelated code.

How to set up a directory lock to avoid modifying unrelated code?

To set up a directory lock to avoid modifying unrelated code, specify your allowed target directory in the prompt to activate pre-execution validation, which will automatically block any subsequent file edit operations targeting paths outside that boundary.

Are there limitations to restricting file edit operations to a user-specified directory?

A limitation of restricting file edit operations to a user-specified directory is that the strict blocking applies only to Edit and Write tools, meaning unintended modifications could still occur through command-line operations executed within the workflow.

Does the freeze skill use soft warnings when blocking edits outside the allowed boundary?

No, the freeze skill does not use soft warnings when blocking edits outside the allowed boundary, as it automatically enforces strict edit blocking on all Edit and Write operations targeting external paths with no override warnings.