# guard

> Claude/Codex skill by [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars · Updated 2026-09-09

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

## Install

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

## 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.

## Links

- HTML page: https://omgskills.com/skills/garrytan/gstack/guard/
- GitHub: https://github.com/garrytan/gstack
- Author: [@garrytan](https://omgskills.com/library/garrytan/index.md)

## More from this repo

- [gstack](https://omgskills.com/skills/garrytan/gstack/index.md) — Router for the gstack skill suite.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
- [autoplan](https://omgskills.com/skills/garrytan/gstack/autoplan/index.md) — Auto-review pipeline — reads the full CEO, design, eng, and DX review skills from disk and runs them sequentially with...
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
- [benchmark](https://omgskills.com/skills/garrytan/gstack/benchmark/index.md) — Performance regression detection.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
