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 ooiyeefeiv1.0.0MITIn 1 marketplace
Blocks destructive bash commands before they run, such as DROP/TRUNCATE on production databases, prisma or drizzle resets, and rm -rf on home or root. Runs on every Bash tool call and fails closed, so it still blocks under --dangerously-skip-permissions; requires Node 22 or newer.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
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.
A fail-closed Claude Code plugin
that guards the Bash tool with a PreToolUse hook. It blocks genuinely
dangerous commands before they run — and, crucially, keeps blocking even
under --dangerously-skip-permissions, because PreToolUse hooks run regardless
of permission mode.
Non-Bash tools (Read/Write/Edit/…) are never touched.
Production data loss
DROP TABLE/DATABASE, TRUNCATE, DELETE FROM (via psql/mysql/-c…)convex import --replace / data-touching convex ops aimed at --prodprisma migrate reset, prisma db push --accept-data-loss, drizzle-kit drop/resetredis-cli flushall/flushdb, dropdbaws dynamodb delete-table/delete-item, aws s3 rb/delete-bucket, aws s3 rm --recursiverm -rf on database/backup/dump pathsrm -rf: /, /*, ~, $HOME, ., .., and top-level system dirs (incl. sudo / --no-preserve-root)Credential leaks
.env*, *.pem, id_rsa, credentials.json, service-account keys) sent over the networkcat .env | curl …) or to a paste/tunnel/webhook sink (transfer.sh, webhook.site, ngrok, …)git reset/checkout/clean/worktree ops, dev servers (--live), read-only
convex data/run <fn>, SQL keywords inside commit messages / echo / grep,
authenticated API calls (curl -H "Authorization: Bearer $TOKEN" …), and
ordinary build cleanup (rm -rf node_modules dist .next, /tmp/...).
/plugin marketplace add ooiyeefei/ccc
/plugin install bash-safety-guard@ccc
Requires Node ≥ 22 on your PATH (the hook runs the TypeScript classifier
via node --experimental-strip-types).
hooks/hooks.json wires hooks/guard-hook.ts to PreToolUse for the Bash matcher.lib/guards.ts,
and exits 0 (allow) or 2 (block — stderr is fed back to the model).lib/guards.ts is the same classifier used by the pixtension
pi orchestrator, vendored here so the two share one set of rules.MIT © ooiyeefei
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 ooiyeefei/ccc --plugin bash-safety-guardPlugins from other owners that cover similar ground