home/categories/code-quality/rohitg00-pro-workflow-skills-safe-mode-skill-md
code-qualitytesting-security

safe-mode

Prevent destructive operations using Claude Code hooks. Three modes — cautious (warn on dangerous commands), lockdown (restrict edits to one directory), and clear (remove restrictions). Uses PreToolUse matchers for Bash, Edit, and Write.

rohitg00
maintainer
rohitg00
更新於 3/29/2026
星標
1841
分支
169
quick start

Installation and usage

Prevent destructive operations using Claude Code hooks. Three modes — cautious (warn on dangerous commands), lockdown (restrict edits to one directory), and clear (remove restrictions). Uses PreToolUse matchers for Bash, Edit, and Write.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use safe-mode