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
/guard
Context preview
What this command does when you run it.
[advanced] Activate both careful mode and freeze mode together
Stats
Stars3,869
Forks362
LanguageShell
LicenseMIT
Ships with octo
Command definition
guard.md
--- command: guard description: "[advanced] Activate both careful mode and freeze mode together" --- # Guard Mode - Full Safety Activation ## Instructions When the user invokes `/octo:guard <directory>`, activate both careful mode and freeze mode in a single command. ### Activation 1. Activate careful mode (destructive command warnings): ```bash _OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}" echo "active" > "/tmp/octopus-careful-${_OCTO_SESSION_ID}.txt" ``` 2. Activate freeze mode (edit boundary enforcement): ```bash freeze_dir="$(cd "$1" 2>/dev/null && pwd)" || freeze_dir="$1" _OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}" echo "${freeze_dir}" > "/tmp/octopus-freeze-${_OCTO_SESSION_ID}.txt" ``` ### What It Does Guard mode combines both safety primitives: - **Careful mode**: Warns before destructive Bash commands (rm -rf, DROP TABLE, git push --force, etc.) - **Freeze mode**: Blocks Edit/Write operations outside the specified directory This is the recommended safety configuration for focused work in sensitive codebases.
