gstack-freeze

Restrict file edits and writes to a specified directory within a Claude Code session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill locks file edits to a specific directory for the current session, helping prevent accidental changes outside the intended scope during debugging or focused work.

Core Features & Use Cases

  • Scoped edits: Enforces edits and writes only within the allowed directory, blocking changes outside it.
  • Session persistence: The boundary persists for the session and can be adjusted or cleared as needed.
  • Use case: When debugging a module, restrict edits to that module's directory to avoid touching unrelated files.

Quick Start

Set the freeze boundary to a directory, for example '/path/to/project/src/'.

Frequently Asked Questions about gstack-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 freeze the session boundary to that path. This prevents accidental writes or modifications to any files located outside the defined directory scope.

Can I prevent accidental code changes outside a target module while debugging?

Yes, you can prevent accidental code changes by freezing edits to the target module's directory. This enforces a strict boundary that blocks all write and edit operations on unrelated files for the current session.

How does directory freezing work to enforce edit restrictions?

Directory freezing works by recording the target path in the session state and applying a check to all Edit and Write tool inputs. Any file modification attempted outside this recorded directory is automatically blocked.

Can I adjust or clear the directory freeze boundary once it is set?

Yes, the directory freeze boundary persists for the session but can be adjusted or cleared as needed. You can update the allowed path or remove the restriction entirely once your focused module work is complete.

What is the best way to scope Claude Code edits to a single project folder?

The best way to scope edits is to set a freeze boundary pointing to your chosen project folder. This locks all write operations to that specific directory, ensuring no unintended changes occur elsewhere in your workspace.