git-safety-guard
Installation
SKILL.md
Git Safety Guard
Use this skill when setting up or configuring protection against destructive git/filesystem commands in Claude Code.
Overview
Git Safety Guard intercepts Bash commands before execution and blocks dangerous operations that could permanently destroy uncommitted work or important files. The guard uses regex pattern matching with an allowlist to distinguish between safe and dangerous variants of commands.
Key Features:
terraphim-agent guard- CLI command for pattern checking- PreToolUse hook - Intercept Claude Code tool calls before execution
- Allowlist support - Safe patterns override dangerous patterns
- Fail-open semantics - If guard fails, commands pass through
Architecture
Related skills