
Guard
Full safety mode that blocks destructive shell commands and confines file edits to one chosen directory.
- CCM score
- 62 of 100
- skills.sh installs
- 399
- GitHub stars
- 142.6K
- last updated
- Nov 25, 2026
Own this skill? Claim it
What it does
- Covers two protections at once: destructive command warnings for Bash and PowerShell, plus an edit boundary for Edit, Write, and NotebookEdit tool calls
- Includes a setup prompt that asks for a directory path, then records it as the persistent boundary through the shared
freeze-state.shwriter - Enforces a warn-then-allow policy for risky commands like
rm -rfandDROP TABLE, with hard denial for catastrophic shapes such as recursive deletes of/or force-pushes to main - Designed for sessions where mistakes are costly; depends on the sibling
/carefuland/freezeskills being installed together
Install
$ npx -y skills add garrytan/gstack --skill guard -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
/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).
GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
mkdir -p "$GSTACK_STATE_ROOT"/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_STATE_ROOT"/analytics/skill-usage.jsonl 2>/dev/null || true
Setup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
Details
- Repository
- github.com/garrytan/gstack
- Category
- CLI & Terminal
- License
- MIT
- First seen
- Nov 25, 2026
More from garrytan/gstack
All 63- Land And Deploy399
- Plan Devex Review389
- Gstack Upgrade388
- Setup Browser Cookies388
- Context Save386
- Devex Review384
- Learn382
- Context Restore380
- Unfreeze374
- Setup Deploy371
- Make Pdf363
- Open Gstack Browser355
- Pair Agent353
- Benchmark Models349
- Scrape347
- Landing Report344
- Plan Tune339
- Skillify337
- Setup Gbrain333
- Document Generate328
- Sync Gbrain324
- Spec315
- Ios Design Review311
- Ios Qa296
Similar to Guard
More CLI & Terminal
tmuxmitsuhiko/agent-stuff399 installsRemote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.
quien-whois-lookuparadotso/trending-skills395 installsquien whois lookup
devex-reviewgarrytan/gstack384 installsLive developer experience audit. Use for: live dx audit, test developer experience. (gstack)
busybox-on-windowssickn33/agentic-awesome-skills343 installsbusybox on windows
vhspproenca/dot-skills340 installsVHS terminal recording best practices from Charmbracelet (formerly charmbracelet-vhs). This skill should be used when writing, reviewing, or editing VHS tape fi
unix-clipproenca/dot-skills337 installsUNIX command-line interface guidelines for building tools that follow POSIX conventions, proper exit codes, stream handling, and the UNIX philosophy. This skill