What problem does it solve? AI coding agents can run destructive shell commands like git clean -fd, git reset --hard, or git push --force that wipe uncommitted work or remote history with no recovery path. This Skill installs safety hooks into Claude Code and Codex that intercept those commands before execution: recoverable destructive commands get an automatic stash backup first, while unrecoverable ones like force push are denied outright. ## Core Features & Use Cases - Auto-backup before destructive git commands: Rewrites git clean, git reset --hard, git restore, and git checkout path operations to run a stash backup first, preserving the working tree as a recovery point. - Deny unrecoverable operations: Blocks git push --force and rg --replace misuse, including the rg -rn flag-cluster trap where -r silently consumes the next letter as a replacement value. - Dual-agent support: Registers hooks in ~/.claude/settings.json for Claude Code (rewrite + deny policy) and ~/.codex/hooks.json for Codex (deny-only policy), with install and removal procedures. - Use Case: After an agent accidentally ran git clean -fd and deleted hours of uncommitted work, ask the agent to install these hooks so every future destructive command is either backed up to a stash or blocked with a corrective message. ## Quick Start Ask the agent to install the shell command safety hooks into your Claude Code settings so destructive git commands are backed up or blocked.