guard
Combines /careful and /freeze: warns before destructive commands and blocks edits outside a chosen directory.
- Kind
- Skill
- Works with
- Claude Code
- Source
- garrytan/gstack @ 01593aa67c94
- Path
- guard/SKILL.md
- Jobs
- Guardrails
- Topics
- Guardrails & permissions
Credit
- Made by
- garrytan
- Original
- github.com/garrytan/gstack/blob/01593aa67c94780528e8f5121e473…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/guard/ (the skill folder)
- Runs scripts
- Yes
- allowed-tools includes Bash
- shell block in the text
- Uses the network
- None found
- Needs secrets
- None found
- Reads outside the project
- $HOME/.claude/skills/gstack/careful/bin/check-careful.sh (SKILL.md)
- $HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh (SKILL.md)
- ~/.gstack/analytics (SKILL.md)
- ~/.gstack/analytics/skill-usage.jsonl (SKILL.md)
- and 1 more
- Calls other skills
- /careful
- /freeze
- /unfreeze
- Source revision
- 01593aa67c94
- Licence
- MIT
- Last activity
- 27 Nov 2026
- Source changed after the scan
- Yes
- Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
<!-- Regenerate: bun run gen:skill-docs -->
## 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 setup script).
```bash
mkdir -p ~/.gstack/analytics
echo '{"skill":"guard","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
```
## Setup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
…