block-dangerous-commands
PreToolUse guard for Bash: blocks dangerous shell commands (rm -rf ~, fork bombs, curl|sh, force push to main) before they run, with three safety levels and opt-in per-level ask mode.
Published by Karan Bansal
How to use it
PreToolUse guard for Bash: blocks dangerous shell commands (rm -rf ~, fork bombs, curl|sh, force push to main) before they run, with three safety levels and opt-in per-level ask mode.
Install through Claude Code: run /plugin marketplace add karanb192/claude-code-hooks, open /plugin, choose Discover, then select block-dangerous-commands from the added marketplace. Read the permission prompts and choose the installation scope that fits your project.
This is a Claude Code plugin bundle. It extends an existing Claude Code installation and requires access to Claude Code. It is not a standalone workflow engine. Dependencies mentioned in the publisher setup: Claude Code, Python mentioned in setup, Node.js mentioned in setup, Git mentioned in setup, Docker mentioned in setup.
The package manifest, project license and setup documentation passed automated static checks. No additional service-account requirement was detected by that scan. The plugin has not been executed or certified account-free. Review any hooks or commands before enabling them.
- Framework
- Claude Code
- Host application
- Claude Code
- Package path
- ./plugins/block-dangerous-commands
- Plugin name
- block-dangerous-commands
- Requirements
- Claude Code access; Python mentioned in setup; Node.js mentioned in setup; Git mentioned in setup; Docker mentioned in setup
- Review
- Manifest, license and setup checked; runtime not tested
- Access
- Install in Claude Code
- License
- MIT
