freeze

Restricts Edit and Write operations to a specified directory for the session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? When debugging or working on one module, it is easy to accidentally modify unrelated files. This Skill enforces a hard boundary so Edit and Write operations outside a chosen directory are blocked, preventing unintended changes during focused work. ## Core Features & Use Cases - Directory-Scoped Editing: Set a freeze boundary so only files inside the chosen path can be edited or written. - PreToolUse Hook Enforcement: A Bash hook inspects every Edit/Write call and denies operations targeting paths outside the boundary. - Session-Persistent State: The freeze directory is stored in a state file and applies until changed or the session ends. - Use Case: While debugging a bug in the src/auth module, freeze edits to that directory so no unrelated code gets accidentally "fixed" during the investigation. ## Quick Start Ask the assistant to freeze edits to a specific directory, for example: restrict all edits to the src/auth folder for this 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 one directory in a session?

Run the freeze command and provide the target directory path when prompted. The path is resolved to an absolute path, saved to a state file, and a PreToolUse hook blocks any Edit or Write outside that boundary for the rest of the session.

How do I remove or change the freeze boundary?

Run the freeze command again to set a new directory, or run the unfreeze command to remove the restriction entirely. Ending the session also clears the boundary since it is session-scoped.

Does the freeze boundary block Bash commands like sed?

No. The freeze hook only intercepts Edit and Write tool calls. Bash commands such as sed can still modify files outside the boundary, so it prevents accidental edits rather than acting as a security boundary.

Which tools are affected by the freeze restriction?

Only Edit and Write operations are checked against the freeze directory. Read, Bash, Glob, and Grep remain unaffected, so you can still inspect and search files anywhere in the project.

Why does the freeze directory need a trailing slash?

The trailing slash ensures prefix matching is exact, so a freeze on /src does not accidentally allow edits in a sibling directory like /src-old. The setup step normalizes the path before saving it.