freeze

Block file edits outside a user-specified directory for the session.

2|2|Updated Dec 1, 2024
One-click install
npx skills add https://github.com/Yaugourt/LiquidTerminal_Back --skill freeze-yaugourt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: freeze
Source: https://github.com/Yaugourt/LiquidTerminal_Back/tree/main/.agents/skills/gstack/freeze
Command: npx skills add https://github.com/Yaugourt/LiquidTerminal_Back --skill freeze-yaugourt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restrict edits to a designated directory within the current session to prevent edits outside the boundary, useful during debugging or scoped changes.

Core Features & Use Cases

  • Blocks Edit and Write outside the allowed path to prevent unintended modifications.
  • Prompts the user to specify a freeze boundary using AskUserQuestion and persists it for the session.
  • Enforces the boundary with a PreToolUse hook that checks edits against the boundary and logs violations.

Quick Start

Ask the user for a directory path and enable the freeze boundary for the current 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 a specific directory during a bash session?▼

You can restrict file edits to a directory by setting a session boundary that blocks Write and Edit operations outside the allowed path. This prevents unintended modifications during scoped changes.

What is a directory boundary for preventing unintended file modifications?▼

A directory boundary is a user-specified path restriction that blocks edits to files outside that folder. It persists for the session and logs violations to maintain edit control.

How do I set up a PreToolUse hook to block edits outside a project folder?▼

You set up a PreToolUse hook by running a check-freeze.sh script that intercepts Edit and Write actions. The hook validates target file paths against a stored boundary and blocks violations.

Can I persist a file edit boundary across an entire debugging session?▼

Yes, you can persist a file edit boundary across a debugging session. The boundary is stored in a state file, ensuring edit restrictions remain active until the session ends.

Does the freeze boundary log attempts to edit files outside the allowed path?▼

Yes, the freeze boundary logs attempts to edit files outside the allowed path. When the PreToolUse hook detects an edit violation, it records the attempt before blocking the operation.