freeze

Blocks Edit and Write operations targeting files outside a user-specified directory boundary.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When debugging or working in a large codebase, AI-assisted edits can accidentally modify unrelated files, causing unintended side effects. This Skill restricts all Edit and Write operations to a single directory you choose, blocking any change outside that boundary for the rest of the session. ## Core Features & Use Cases - Edit Boundary Enforcement: A PreToolUse hook intercepts every Edit and Write call and denies it if the target file path falls outside the frozen directory. - Session-Persistent State: The freeze boundary is stored in a state file and re-checked on every file modification until you run /unfreeze or end the session. - Prefix-Safe Matching: A trailing slash on the boundary prevents sibling directories like /src-old from matching a /src freeze. - Use Case: While debugging a bug in the authentication module, freeze edits to the auth directory so the AI cannot accidentally "fix" unrelated catalog or user code during the investigation. ## Quick Start Ask the assistant to freeze edits to a specific directory, for example: restrict all file 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 AI file edits to one directory?

Run the freeze command and provide the directory path when prompted. The skill resolves it to an absolute path, saves it to a state file, and a hook then blocks every Edit or Write call targeting files outside that path for the rest of the session.

How do I remove or change the edit freeze boundary?

Run /unfreeze or end the session to remove the restriction entirely. To change the boundary to a different directory, run /freeze again and provide the new path, which overwrites the saved state file.

Does the freeze boundary block Bash commands too?

No. The freeze hook only intercepts Edit and Write tool calls. Read, Bash, Glob, and Grep are unaffected, so shell commands like sed can still modify files outside the boundary. It prevents accidental edits, not a security boundary.

Why does the freeze directory need a trailing slash?

The trailing slash ensures prefix matching is exact at directory boundaries. Without it, a freeze on /src would also match a sibling directory like /src-old, incorrectly allowing edits there.

Does the freeze setting persist across sessions?

The boundary is stored in a state file under the plugin data directory and is read on every Edit or Write invocation. It is intended to last for the session and is cleared by running /unfreeze or ending the conversation.