LogoClawIndex
CasesSkillsAbout
LogoClawIndex

safety-guard - Prevent destructive operations in production or auto mode

Intercepts destructive command executions and restricts file edits to specified directories using hooks.

Tags

Updated: 2026-09-10

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Intercept destructive commands
  • Restrict edits to specified directories
  • Prompt warnings and confirmation requests
  • Log blocked actions to file

Inputs

  • Watched command patterns
  • Target directory paths
  • Tool execution calls

Outputs

  • Warning and confirmation prompts
  • Blocked execution messages
  • Log file at ~/.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.
safety
security
permissions
hooks
guard
Intercept destructive commands
Restrict edits to specified directories
Prompt warnings and confirmation requests
Log blocked actions to file
Watched command patterns
Target directory paths
Tool execution calls
Warning and confirmation prompts
Blocked execution messages
Log file at ~/.claude/safety-guard.log