Garry Tan/guard — Agent Skills | officialskills.sh
Back to skills

guard

communitysecurity

Guard mode combines two safety layers: destructive command warnings (rm -rf, DROP TABLE, force-push) and directory-scoped edit restrictions.

Setup & Installation

npx skills add https://github.com/garrytan/gstack --skill guard
or paste the link and ask your coding assistant to install it
https://github.com/garrytan/gstack/tree/main/guard
View on GitHub

What This Skill Does

Guard mode combines two safety layers: destructive command warnings (rm -rf, DROP TABLE, force-push) and directory-scoped edit restrictions. It activates both protections at once with a single command. Designed for working on production systems or live debugging sessions where mistakes are hard to reverse.

Instead of manually tracking which files you've touched or second-guessing destructive commands, guard mode enforces both constraints automatically so you can't accidentally overwrite the wrong directory or run a command that deletes data.

When to use it

  • Restricting edits to a single service directory while debugging a live API
  • Blocking accidental DROP TABLE or rm -rf during a database migration
  • Working in a shared repo where only one subdirectory should be touched
  • Locking down file writes to a feature branch directory before a production deploy
  • Adding a safety net when pair-debugging on a system you don't fully know yet