guard
guard
Catalogue généré le 2026-05-11
En une phrase
Full safety mode: destructive command warnings + directory-scoped edits.
Quand l'utiliser
- Use for maximum safety when touching prod or debugging live systems.
- Use when asked to "guard mode", "full safety", "lock it down", or "maximum safety". (gstack)
Comment l'invoquer
- Slash command :
/guard(si exposé dans ton CLI) - Phrases déclencheurs : voir la description complète ci-dessous
- Auto-invocation : sur demande explicite
Description complète
Full safety mode: destructive command warnings + directory-scoped edits. Combines /careful (warns before rm -rf, DROP TABLE, force-push, etc.) with /freeze (blocks edits outside a specified directory). Use for maximum safety when touching prod or debugging live systems. Use when asked to "guard mode", "full safety", "lock it down", or "maximum safety". (gstack)
Pour aller plus loin
/guard — Full Safety Mode
Activates both destructive command warnings and directory-scoped edit restrictions.
This is the combination of /careful + /freeze in a single command.
Dependency note: This skill references hook scripts from the sibling /careful
and /freeze skill directories. Both must be installed (they are installed together
by the gstack setup script).
Setup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
- Question: "Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen 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:
- "Guard mode active. Two protections are now running:"
(extrait — voir le SKILL.md complet pour la suite)
Source
- Plugin :
gstack - Nom interne :
guard - Fichier :
/home/thymon/.claude/skills/gstack/guard/SKILL.md