Command
/careful
[advanced] Activate destructive command warnings for the session
One command from octo.
shell
$ npx -y skills add nyldn/claude-octopus --agent claude-codeShips with octo. 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
/careful
Context preview
What this command does when you run it.
[advanced] Activate destructive command warnings for the session
Stats
Stars3,869
Forks362
LanguageShell
LicenseMIT
Ships with octo
Command definition
careful.md
--- command: careful description: "[advanced] Activate destructive command warnings for the session" --- # Careful Mode - Destructive Command Warnings ## Instructions When the user invokes `/octo:careful`, activate careful mode for the current session. ### Activation Write the activation state file: ```bash _OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}" echo "active" > "/tmp/octopus-careful-${_OCTO_SESSION_ID}.txt" ``` ### What It Does Careful mode adds a PreToolUse safety net on Bash commands. Before any destructive command executes, you will be prompted to confirm. This catches accidental damage without blocking normal work. **Detected patterns:** - `rm -rf` (except safe targets: node_modules, dist, .next, __pycache__, build, coverage, .turbo) - `DROP TABLE`, `DROP DATABASE`, `TRUNCATE` - `git push --force`, `git push -f` - `git reset --hard` - `git checkout .`, `git restore .` - `kubectl delete` - `docker rm -f`, `docker system prune` ### Deactivation Remove the state file to deactivate:
