claude-code-safety-net

Installation
SKILL.md

Claude Code Safety Net

Skill by ara.so — Claude Code Skills collection.

A PreToolUse hook plugin that intercepts and blocks destructive git and filesystem commands before they execute. Works across Claude Code, OpenCode, Gemini CLI, Copilot CLI, and Codex.

What It Does

Safety Net analyzes commands before execution and blocks operations that could:

  • Delete uncommitted work (git reset --hard, git checkout -- .)
  • Force push to remotes (git push --force)
  • Remove files recursively (rm -rf /)
  • Clear git stashes (git stash clear)
  • Execute shell wrappers containing destructive commands (bash -c "rm -rf /")
  • Run interpreter one-liners (python -c 'os.system("rm -rf /")')

It runs before permission rules and provides semantic command analysis that wildcards can't match.

Installation

Installs
21
First Seen
May 17, 2026
claude-code-safety-net — aradotso/claude-code-skills