Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kulykivskav1.3.0MITIn 1 marketplace
Blocks destructive Fly.io and SQL commands, force-pushes to main, and AI attribution in commits before Claude runs them. Hooks run on every Bash call and also block secrets and PII in staged and pushed diffs.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Blocking PreToolUse hooks. Exit 2 vetoes the Bash call and tells Claude why.
hooks/guard-destructive-ops.sh is a thin wrapper around
hooks/guard_destructive_ops.py. It reads the whole command, including heredoc
bodies that a shell, ssh or a SQL client will execute, and blocks:
| Area | Blocked |
|---|---|
Fly.io (fly, flyctl) | apps destroy, destroy, machines destroy/rm, volumes destroy/delete, scale count 0, secrets unset |
SQL through a client (psql, mysql, sqlite3, fly pg connect, ...) | DROP TABLE/DATABASE/SCHEMA/VIEW/INDEX/COLUMN/..., TRUNCATE, DELETE FROM without WHERE. Case-insensitive. Looks at -c, -e, here-strings, piped input, heredocs, and the file given to -f, --file= or < |
git push | force in any spelling (--force, -f, -uf, --force-with-lease, +refspec, --mirror) or deletion (--delete, :main) when the target is main/master, the checked-out main/master, every branch, or a $VARIABLE it cannot resolve |
rm | recursive removal of /, /*, ~, $HOME or the home directory path |
kubectl delete | any namespace; deployments, statefulsets, daemonsets, services, jobs, volumes, -f/-k or --all when the command mentions prod |
Not blocked on purpose: git push origin main, force-pushes to feature
branches, SELECT, DELETE ... WHERE, and searches such as
grep -rn 'DROP TABLE' migrations/. Heredocs written to a file (cat > f <<EOF),
commit messages and python3 - <<EOF scripts are data, not operations.
Known limits:
drop table counts as SQL when a client runs in the same command.DELETE FROM inside a shell heredoc passes if the word WHERE appears later in that body.prod appears in the command (context, namespace, path or name).cd repo && git push -f checks the branch of the session directory, not repo.git reset --hard is not guarded: it is local and recoverable from the reflog.python3 is missing or the parser fails, the hook allows the call.Tests: python3 scripts/test_guardrails.py --app <your-app> (or set GUARDRAILS_APP; defaults to example-app).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kulykivska/claude-plugins --plugin guardrailsPlugins from other owners that cover similar ground