LogoClawIndex
CasesSkillsAbout
LogoClawIndex

safety-guard - Prevent Destructive Operations

Prevents destructive operations when working on production systems or running agents autonomously.

Tags

Updated: 2026-09-10
safetyprotectionpre-tool-hooksproductionautonomous

Capabilities

Intercept destructive commands before executionLock file edits to specific directoryLog blocked actions to log fileSuggest safer command alternatives

Typical Inputs

Bash Write Edit and MultiEdit tool callsTarget directory pathSafety guard mode commands

Typical Outputs

Warning and confirmation promptsBlocked operation explanation messagesLogs in ~/.claude/safety-guard.log

What this skill does

  • Intercept destructive commands before execution
  • Lock file edits to specific directory
  • Log blocked actions to log file
  • Suggest safer command alternatives

Inputs

  • Bash Write Edit and MultiEdit tool calls
  • Target directory path
  • Safety guard mode commands

Outputs

  • Warning and confirmation prompts
  • Blocked operation explanation messages
  • Logs in ~/.claude/safety-guard.log

Requirements

  • PreToolUse hooks support
  • Bash Write Edit and MultiEdit tools

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.