gstack-freeze

Block Edit and Write operations outside a user-defined directory boundary.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The gstack-freeze skill prevents accidental changes by blocking Edit and Write operations outside a directory you choose.

Core Features & Use Cases

  • Session-wide edit boundary: Restricts all Edit/Write tool actions to files under a single allowed path for the duration of the session.
  • PreToolUse enforcement: A pre-execution hook checks each Edit/Write request’s target file path and denies anything outside the boundary.
  • Debugging protection: Useful when you are troubleshooting a module and want to ensure the AI only touches the intended folder (e.g., “freeze edits to src/backend/while fixing the auth bug”).

Quick Start

Run the command you want to “freeze edits to directory path” and then ask the AI to make changes; any attempted edits outside that path will be blocked.

Frequently Asked Questions about gstack-freeze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block accidental edits to files outside a specific directory during AI-assisted debugging?

To block accidental edits outside a specific directory during debugging, you need a session-wide edit boundary that restricts all Edit and Write tool actions to files under a single allowed path, preventing modifications to the rest of the repository.

What is a PreToolUse permission check for scoped refactoring?

A PreToolUse permission check for scoped refactoring is a pre-execution hook that inspects each Edit or Write request's target file path and denies any operation attempting to modify files outside a user-defined directory boundary.

How do I freeze edits to one directory while fixing a module?

To freeze edits to one directory while fixing a module, run the command to set your desired directory path, then ask the AI to make changes. Any attempted edits outside that boundary will be blocked for the duration of the session.

Can I restrict Write tool operations to a single module during scoped maintenance?

Yes, you can restrict Write tool operations to a single module during scoped maintenance by enforcing a directory boundary. This ensures only the intended folder is modified while the rest of the repository remains untouched.

Does edit blocking work for both Edit and Write operations across the entire session?

Yes, edit blocking works for both Edit and Write operations across the entire session by applying a PreToolUse enforcement hook that checks target file paths against persisted session state and denies boundary-violating requests.