omgskills Get the Mac app
Skill

guard

@garrytan 124k stars Updated 2026-07-15 Author match: High

Full safety mode: destructive command warnings + directory-scoped edits. (gstack)

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

Install command
git clone https://github.com/garrytan/gstack /tmp/gstack && ln -s /tmp/gstack/guard ~/.claude/skills/guard

View on GitHub

From README

When to invoke this skill 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". /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 script). 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.

More from this repo