# guard

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

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

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

## Links

- HTML page: https://omgskills.com/library/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/library/garrytan/gstack/index.md) — Router for the gstack skill suite.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 141k stars
- [retro](https://omgskills.com/library/garrytan/gstack/retro/index.md) — Weekly engineering retrospective.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 138k stars
- [review](https://omgskills.com/library/garrytan/gstack/review/index.md) — Pre-landing PR review.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 138k stars
