freeze

Restrict file edits to a specified directory for the session.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/joeylife94/gstack-2026-03 --skill freeze-joeylife94
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/joeylife94/gstack-2026-03/tree/main/freeze
Command: npx skills add https://github.com/joeylife94/gstack-2026-03 --skill freeze-joeylife94

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps to prevent accidental edits to files outside of a specified directory, ensuring that changes are confined to a particular module or project area.

Core Features & Use Cases

  • Directory Lockdown: Blocks Edit and Write operations outside of the allowed path.
  • Session Persistence: The freeze boundary persists for the session.
  • Use Case: When debugging to prevent fixing unrelated code, or when asked to limit changes to one module.

Quick Start

Run /freeze and specify the directory to restrict edits to.

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, you can use a directory lockdown mechanism that blocks Edit and Write operations outside the allowed path, confining changes to a particular module or project area for the session.

Can I prevent accidental edits to unrelated code while debugging?

Yes, code isolation prevents accidental edits to unrelated code while debugging. By setting a freeze boundary, you ensure that modifications are blocked outside of a specified directory, keeping your debugging scope strictly controlled.

How does session persistence work for directory lockdowns?

Session persistence for directory lockdowns works by maintaining the freeze boundary throughout the active session. Once you restrict edits to a specific path, the boundary persists, continuously blocking unauthorized Write operations until the session ends.

What is the best way to limit code changes to one module or project area?

The best way to limit code changes to one module is to apply a directory lockdown. This approach blocks Edit and Write operations outside the allowed path, ensuring modifications are safely confined to your target module.

Does directory lockdown block read operations outside the allowed path?

Directory lockdown primarily blocks Edit and Write operations outside the allowed path. However, the freeze boundary script also applies to Bash, Read, and AskUserQuestion tools, extending the isolation scope beyond just file modifications.

Why would I need to freeze a directory boundary during development?

You need to freeze a directory boundary during development to prevent accidental edits to files outside a specified directory. This ensures changes are confined to a particular module, which is especially useful when debugging to avoid fixing unrelated code.