Skip to main content

freeze

freeze

Catalogue généré le 2026-05-11

En une phrase

RestrictVerrouille fileles editsmodifications tode afichiers specificdans directoryun forseul thedossier session.choisi, pour éviter que Claude touche par erreur du code en dehors de ta zone de travail.

Quand l'utiliser

  • UseTu whendébugues debuggingun tomodule preventprécis accidentallyet tu veux empêcher Claude de "fixing"corriger" unrelatedautre code,chose orpendant whenqu'il youy want to scope changes to one module.est.
  • UseTu whenlances askedun torefactoring "freeze",sur "restrictun edits", "only edit this folder", or "lock down edits".dossier (gstack)src/components/) et tu veux garantir que rien d'autre ne bouge.
Tu travailles sur une feature isolée et tu veux protéger le reste du projet d'effets de bord. Tu fais réviser ton code par Claude et tu veux qu'il reste confiné à un sous-dossier.

Comment l'invoquer

  • Slash command : /freeze (si exposé dans ton CLI)
  • Phrases déclencheurs (texte) : 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." TextAuto-invocation input: (notSur multipledemande choice) — the user types a path.explicite.

    Once

    Description the user provides a directory path:

      détaillée

      ResolveLe it to an absolute path:

      Ensure trailing slash and save to the freeze state file:

      Tell the user: "Edits are now restricted toskill <path>/freeze. Anymet en place une barrière technique : tu lui donnes un chemin de dossier, et à partir de ce moment-là, toute tentative de Claude d'éditer ou d'écrire un fichier situé en dehors de ce dossier est bloquée. Pas seulement signalée — réellement bloquée par un hook (un mécanisme de gstack qui intercepte les appels aux outils Edit oret WriteWrite).

      outside

      Concrètement, thisClaude directoryte willdemande bequel blocked.dossier Toverrouiller. changeTu theréponds boundary,par runexemple /freezesrc/auth/, again.et Toil removeenregistre it,ce runpérimètre pour toute la session. Si Claude essaie d'éditer un fichier hors de ce dossier (par exemple src/billing/utils.ts), l'opération est refusée automatiquement. Les autres actions (lire des fichiers, lancer du bash, faire des recherches) restent autorisées.

      C'est une protection contre les dérapages, pas une sécurité absolue : un script bash mal écrit pourrait quand même modifier des fichiers hors zone. Mais pour le cas le plus courant (Claude qui se met à "améliorer" tout ce qu'il croise pendant un debug), ça suffit largement. Pour lever le verrouillage, tu utilises /unfreeze orou endtu thetermines 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 poursimplement la suite)conversation.

      Source

      • Plugin : gstack
      • Nom interne : freeze
      • Fichier : /home/thymon/.claude/skills/gstack/freeze/SKILL.md