freeze

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

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/vib795/copilot-anatomy --skill freeze-vib795
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/vib795/copilot-anatomy/tree/main/.github/skills/gstack-freeze
Command: npx skills add https://github.com/vib795/copilot-anatomy --skill freeze-vib795

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict file edits to a specific directory for the current session to prevent accidental changes across a project.

Core Features & Use Cases

  • Boundary-based editing guard: restricts Edit and Write operations to the chosen directory.
  • Session-scoped enforcement: the boundary persists throughout the ongoing session and can be updated on demand.
  • Use cases include debugging, scoped feature work, or preventing accidental changes during urgent fixes.

Quick Start

Ask the user which directory to restrict edits to, then apply the freeze 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 coding session?

To restrict file edits to a specific directory during a coding session, you apply a boundary using a user-provided path. This hooks into Edit and Write tools to enforce the constraint and prevent accidental changes outside the target folder.

What is the best way to prevent accidental code changes outside a target folder while debugging?

Preventing accidental code changes outside a target folder while debugging is achieved by applying a session-scoped boundary. This restricts edits to the chosen directory, ensuring scoped feature work or urgent fixes do not impact other project files.

Can I update the edit boundary path in the middle of an active session?

Yes, you can update the edit boundary path in the middle of an active session. The session-scoped enforcement persists throughout the ongoing session and can be updated on demand to change the restricted directory.

Does directory-based edit locking work for both Write and Edit operations?

Yes, directory-based edit locking works for both Write and Edit operations. The boundary-based editing guard hooks directly into these tools to ensure no file modifications happen outside the chosen directory during the session.

When should I use a session-scoped directory boundary for file modifications?

You should use a session-scoped directory boundary for file modifications during debugging, code reviews, or scoped feature work. It prevents accidental changes across a project when you need to isolate urgent fixes to a specific folder.

Are there limitations to restricting edits to a single directory for a session?

Restricting edits to a single directory for a session limits modifications to only the provided path. If your work requires editing files across multiple directories simultaneously, this boundary will block those operations outside the chosen folder.