freeze

Deny file edits outside a defined directory during tool use.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/XinheLIU/human-leverage --skill freeze-xinheliu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/XinheLIU/human-leverage/tree/main/.claude/skills/freeze
Command: npx skills add https://github.com/XinheLIU/human-leverage --skill freeze-xinheliu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents unauthorized edits by locking file changes to a user-specified directory, helping you avoid unintended modifications during debugging or module development.

Core Features & Use Cases

  • Restrict edits to a chosen directory for the duration of a session.
  • Works with existing tool workflows by intercepting write/edit operations and denying those outside the boundary.
  • Use case: while debugging a module, lock edits to the module folder to ensure changes stay scoped and safe.

Quick Start

Set the freeze directory with the configured prompt, then start editing only inside that directory.

Frequently Asked Questions about freeze

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

FAQPage Schema
How do I lock file edits to a specific directory during a bash workflow?

Locking file edits to a specific directory during a bash workflow involves setting a configured prompt that intercepts write operations and denies any target paths falling outside the stored directory.

What is directory locking and how does it prevent accidental file changes?

Directory locking prevents accidental file changes by comparing target paths against a stored freeze directory during tool usage, automatically denying write operations that fall outside the defined boundary.

Can I restrict code modifications to a module folder while debugging?

You can restrict code modifications to a module folder while debugging by setting it as the freeze directory, which ensures all session edits stay safely scoped within that boundary.

How does an edit-boundary intercept write operations in a pretool environment?

In a pretool environment, an edit-boundary intercepts write operations by evaluating target paths against a designated directory lock, blocking unauthorized edits and recording the denied event for auditing.

What happens when a write operation falls outside the freeze directory?

When a write operation falls outside the freeze directory, the system denies the operation to prevent unauthorized edits and records the event for auditing purposes.