freeze
freeze
Catalogue généré le 2026-05-11
En une phrase
Restrict file edits to a specific directory for the session.
Quand l'utiliser
- Use when debugging to prevent accidentally "fixing" unrelated code, or when you want to scope changes to one module.
- Use when asked to "freeze", "restrict edits", "only edit this folder", or "lock down edits". (gstack)
Comment l'invoquer
- Slash command :
/freeze(si exposé dans ton CLI) - Phrases déclencheurs : voir la description complète ci-dessous
- Auto-invocation : sur demande explicite
Description complète
Restrict file edits to a specific directory for the session. Blocks Edit and Write outside the allowed path. Use when debugging to prevent accidentally "fixing" unrelated code, or when you want to scope changes to one module. Use when asked to "freeze", "restrict edits", "only edit this folder", or "lock down edits". (gstack)
Pour aller plus loin
/freeze — Restrict Edits to a Directory
Lock file edits to a specific directory. Any Edit or Write operation targeting a file outside the allowed path will be blocked (not just warned).
Setup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
- Question: "Which directory should I restrict edits to? Files outside this path will be blocked from editing."
- Text input (not multiple choice) — the user types a path.
Once the user provides a directory path:
-
Resolve it to an absolute path:
-
Ensure trailing slash and save to the freeze state file:
Tell the user: "Edits are now restricted to <path>/. Any Edit or Write
outside this directory will be blocked. To change the boundary, run /freeze
again. To remove it, run /unfreeze or end the session."
How it works
The hook reads file_path from the Edit/Write tool input JSON, then checks
whether the path starts with the freeze directory. If not, it returns
(extrait — voir le SKILL.md complet pour la suite)
Source
- Plugin :
gstack - Nom interne :
freeze - Fichier :
/home/thymon/.claude/skills/gstack/freeze/SKILL.md