Prevent destructive operations
safe-modeskillsetup L2★2,280
rohitg00/pro-workflow ↗What it does
Prevent destructive operations via pre-execution hooks
Best for
Unfamiliar codebases or pair-programming. Scope damage radius.
Inputs
- · hook matchers for Bash/Edit/Write
- · state file per session
Outputs
- · warnings or blocks on destructive patterns
- · directory lockdown
Requires
- · Claude Code PreToolUse hook
Preconditions
Claude Code with hook support
Failure modes
Regex false positives (rm inside string literal); state leaks across sessions
Trust signals
- · 3 modes (cautious/lockdown/clear)
- · 13+ dangerous patterns detected
- · Session-scoped state
- · Exact file path backing