Back to skills

guard

security

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

Setup & Installation

npx skills add https://github.com/garrytan/guard --skill guard
or paste the link and ask your coding assistant to install it
https://github.com/garrytan/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

  • Working with guard functionality
  • Implementing guard features
  • Debugging guard related issues