freeze

Restrict file edits to a user-specified directory for the current session.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/AlejandroFigini/artist-portfolio --skill freeze-alejandrofigini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/AlejandroFigini/artist-portfolio/tree/main/.agent/skills/freeze
Command: npx skills add https://github.com/AlejandroFigini/artist-portfolio --skill freeze-alejandrofigini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents accidental or malicious edits by confining all file modification operations to a user-defined directory for the session.

Core Features & Use Cases

  • Restricts Edit and Write actions to a specified boundary, keeping work focused on a module or path.
  • Persists the boundary for the session and applies it to relevant tool inputs via a PreToolUse hook.
  • Useful during debugging or collaborative work to avoid changes outside the designated directory.

Quick Start

Ask me for a directory path to freeze, then enforce edits only within that directory 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 coding session?

Sandboxing file edits prevents accidental or unauthorized changes to files outside a designated project path. It enforces a boundary using a PreToolUse hook that denies out-of-bound Write and Edit operations for the current session.

How do I set up a sandbox to prevent accidental edits outside my project path?

You set up a sandbox by providing a target directory path to freeze. The session stores this boundary and applies it to tool inputs, actively preventing out-of-bound modifications while you debug or collaborate.

Can I lock a directory boundary to stop an AI agent from modifying unrelated files?

Yes, you can lock a directory boundary by specifying the allowed path. The enforced PreToolUse hook intercepts edit-control operations and denies any Write or Edit actions targeting files outside that defined boundary.

Does restricting edits to a single directory work for collaborative debugging workflows?

Restricting edits to a single directory works effectively for collaborative debugging by keeping changes focused on a specific module. It ensures that modifications remain confined to the designated boundary throughout the interactive session.

What happens if I try to write to a file outside the frozen directory boundary?

If you attempt to write to a file outside the frozen directory boundary, the PreToolUse hook denies the operation. This edit-control mechanism ensures no modifications occur beyond the user-specified path during the session.