freeze

Restrict file system access to a designated directory within a session.

1|Updated May 8, 2026
One-click install
npx skills add https://github.com/npc-chris/dfn-discovery --skill freeze-npc-chris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/npc-chris/dfn-discovery/tree/main/.agents/skills/gstack/freeze
Command: npx skills add https://github.com/npc-chris/dfn-discovery --skill freeze-npc-chris

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents accidental edits outside a designated directory during a coding session, ensuring that changes are localized to the intended area.

Core Features & Use Cases

  • Session-bound Directory Locking: Locks the file system to a specified directory to prevent editing outside it.
  • Prevents Accidental Edits: Useful for debugging or when changes should be confined to a single module.
  • Use Case: When working on a large project and want to ensure that you don't inadvertently alter unrelated files.

Quick Start

To set the freeze boundary, run: /freeze <directory-path>.

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?

You can restrict file edits to a specific directory during a coding session by invoking the freeze skill with the target path. This locks the session to that directory, preventing any accidental modifications to unrelated files outside the boundary.

What is directory locking and when do I need it for debugging?

Directory locking is a mechanism that confines file system modifications to a single specified folder. You need it for debugging when you want to ensure changes remain localized to a specific module and avoid inadvertently altering unrelated project files.

How do I lock my file system to a single directory to prevent accidental edits?

To lock your file system to a single directory and prevent accidental edits, run the command `/freeze <directory-path>` in your session. This restricts all file modifications to the designated directory for the duration of the current session.

Does restricting file access to a designated directory affect existing files outside of it?

Restricting file access to a designated directory prevents edits to existing files outside of it during the session. It ensures changes are localized to the intended area, keeping unrelated files safe from accidental modifications without altering their current state.

What are the limitations of session-bound directory locking for code safety?

Session-bound directory locking is limited to a single session and requires specifying a directory path upon invocation. It does not persist across sessions and only restricts file edits, meaning other file system operations might not be constrained by the lock.