Advanced protection against dangerous shell commands with multi-level security. Blocks catastrophic operations (rm -rf , dd, mkfs), protects critical paths (.claude , .git , node modules ), and warns about suspicious patterns. Features: catastrophic command blocking, critical path protection, smart pattern detection, and detailed safety messages.
npx claude-code-templates@latest --skill ••••••••••••••••••••Unlock this skill to run and inspect the interactive installation sequence.
{
"description": "Advanced protection against dangerous shell commands with multi-level security. Blocks catastrophic operations (rm -rf /, dd, mkfs), protects critical paths (.claude/, .git/, node_modules/), and warns about suspicious patterns. Features: catastrophic command blocking, critical path protection, smart pattern detection, and detailed safety messages.",
"supportingFiles": [
{
"source": "dangerous-command-blocker.py",
"destination": ".claude/hooks/dangerous-command-blocker.py",
"executable": true
}
],
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "python3 .claude/hooks/dangerous-command-blocker.py"
}
]
}
]
}
}
# Step 1: Initialize skill agent setup
npx skills add Dangerous Command Blocker --install-production
python -m pip install -r requirements.txt
codex plugin install Dangerous Command Blocker@latest
export API_KEY=secret_token_key_here
Unlock this skill to reveal complete step-by-step setup guides, terminal commands, configuration recipes, repository links, and interactive installation video walkthroughs.
Get instant access to complete setup guides, repository source code, and integration assets.
Send desktop notifications when Claude Code finishes working or needs user input. Works on macOS and Linux systems.
Intelligent git commit creation with automatic message generation and validation. Creates meaningful commits based on file changes.
Automatically adds current year to WebSearch queries when no year is specified. This hook intercepts WebSearch tool usage and appends the current year to queries that don't already contain a year, ensuring search results are current and relevant.