Global Agent Guardrails

One shared denylist of catastrophic shell commands (rm -rf on / or ~, dd/mkfs, sudo rm, fork bombs, curl|sh, git push --force, gh repo delete) enforced as a PreToolUse/pre-exec guard across every AI coding agent on the machine — Cursor, Claude Code, Codex, OpenCode, Pi, Hermes, Grok, Droid, Devin. Use when adding or tuning blocked-command patterns, wiring the guard into a new agent or a new machine, debugging why a command was (or was not) blocked, or when the user mentions command guard, guardrails, dangerous command hook, or PreToolUse safety.

David Ondrej Updated

File contents

davidondrej/skills/tree/main/skills/ops-and-setup/global-agent-guardrails commit f48c7385d5

Frequently asked questions

npx skillmds@latest add davidondrej/global-agent-guardrails