Download for MacApple silicon, macOS 14+
Skill

guard

@garrytan Updated 2026-10-22

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

Install

With your agent

Install OMGSkills skill "garrytan/gstack:guard" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

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

From README

/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. Once the user provides a directory path: Set the user-selected boundary with the shared writer, which resolves a physical absolute path and serializes replacement with investigation cleanup: On helper failure, do not claim the boundary is active.