safety-guard - Prevent destructive operations in production or auto mode
Intercepts destructive command executions and restricts file edits to specified directories using hooks.
Tags
Updated: 2026-09-10Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Intercept destructive commands
- Restrict edits to specified directories
- Prompt warnings and confirmation requests
- Log blocked actions to file
Inputs
- Watched command patterns
- Target directory paths
- Tool execution calls
Outputs
- Warning and confirmation prompts
- Blocked execution messages
- Log file at ~/.claude/safety-guard.log
Requirements
- PreToolUse hooks support
- Bash, Write, Edit, and MultiEdit tools
