freeze

Restrict Edit and Write operations to a specified directory during a session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill restricts edits to a specific directory for the duration of a session, preventing accidental or unauthorized changes outside the allowed path.

Core Features & Use Cases

  • Blocks Edit and Write operations outside the defined boundary to help debugging and scoped changes.
  • PreToolUse hook integration that automatically checks the boundary before every edit, with clear status messages.
  • Logs boundary violations to a local analytics file for audit and troubleshooting.

Quick Start

Ask the user for the directory to freeze and set the boundary to that path.

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 coding session?

To restrict file edits to a specific directory, you can use a session safeguard that enforces a PreToolUse hook to automatically block Edit and Write operations outside your defined path.

Can I prevent accidental writes outside a project boundary while debugging?

Yes, preventing accidental writes outside a project boundary is possible by applying a directory freeze that intercepts edit operations and denies any changes attempted outside the allowed scope.

What is a PreToolUse hook for scoped edits and how does it work?

A PreToolUse hook for scoped edits checks the file path before any modification occurs, automatically denying the operation and logging a boundary violation if the target falls outside the frozen directory.

Does the directory freeze safeguard log unauthorized edit attempts?

Yes, the directory freeze safeguard logs unauthorized edit attempts by recording boundary violations to a local analytics file, providing an audit trail for troubleshooting and security review.

Are there limitations when using a session boundary to lock edits?

Limitations when using a session boundary to lock edits include its scoped applicability to in-session workflows like debugging, meaning it functions specifically as a PreToolUse hook rather than a persistent system-wide access control.

What's the best way to set up a scoped boundary for module changes?

The best way to set up a scoped boundary for module changes is to specify the target directory path at the start of your session, which activates the hook to safeguard all subsequent Edit and Write workflows.