Skip to content
Productivity
Command

/safe-mode

Prevent destructive operations — cautious (warn), lockdown (restrict edits), or clear

From plugin
pro-workflow
2.9k23 skills8 agents23 commands22 hooks
> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

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

/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`

Asks you before the command runs, even in auto mode. You decide whether to proceed.

Lockdown Mode

/safe-mode lockdown src/api/

Restricts Edit/Write operations to the specified directory. Blocks changes to files outside the path.

Keyed to the project. Prevents accidental edits to unrelated code during focused work. Lift it with `/safe-mode clear`.

Both Together

/safe-mode cautious
/safe-mode lockdown src/api/

Bash warnings + directory restriction simultaneously.

Clear All

/safe-mode clear

Removes all restrictions for the current session.

Status Check

Report current safe-mode state:

SAFE MODE STATUS
  Cautious: ACTIVE (warns on destructive Bash commands)
  Lockdown: ACTIVE (restricted to src/api/)

Or:

SAFE MODE STATUS
  No restrictions active.

When to Use

| Situation | Command | |-----------|---------| | Production-adjacent code | `/safe-mode cautious` | | Focused refactoring | `/safe-mode lockdown <path>` | | Unfamiliar codebase | `/safe-mode cautious` | | Done with restrictions | `/safe-mode clear` |

---

**Trigger:** Use when starting risky work, refactoring a specific module, or wanting guardrails on AI operations.

Read more
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other commands on pro-workflow.

auto-setup

auto-setup

Command

Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase

@rohitg00@rohitg00Install Command
compact-guard

compact-guard

Command

Smart context compaction with state preservation — saves critical state before compact and restores after

@rohitg00@rohitg00Install Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command