Command
/safe-mode
Prevent destructive operations — cautious (warn), lockdown (restrict edits), or clear
One command from pro-workflow.
shell
$ npx -y skills add rohitg00/pro-workflow --agent claude-codeShips with pro-workflow. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/safe-mode
Context preview
What this command does when you run it.
Prevent destructive operations — cautious (warn), lockdown (restrict edits), or clear
Stats
Stars2,638
Forks255
LanguageJavaScript
Command definition
safe-mode.md
--- description: Prevent destructive operations — cautious (warn), lockdown (restrict edits), or clear argument-hint: <cautious | lockdown <path> | clear> --- # /safe-mode - Destructive Operation Protection Guard against accidental damage during AI coding sessions. ## Usage ### Cautious Mode ```text /safe-mode cautious ``` Intercepts Bash commands and warns before destructive operations: - `rm -rf`, `DROP TABLE`, `TRUNCATE` - `git push --force`, `git reset --hard`, `git clean -f` - `chmod 777`, `curl|sh` Warns on stderr. You decide whether to proceed. ### Lockdown Mode ```text /safe-mode lockdown src/api/ ``` Restricts Edit/Write operations to the specified directory. Blocks changes to files outside the path. Session-scoped. Prevents accidental edits to unrelated code during focused work. ### Both Together ```text /safe-mode cautious /safe-mode lockdown src/api/ ``` Bash warnings + directory restriction simultaneously. ### Clear All ```text /safe-mode clear
