What problem does it solve?
This Skill establishes robust security guardrails for AI agents by implementing protective PreToolUse hooks that prevent sensitive file access, dangerous commands, and destructive operations.
Core Features & Use Cases
- PreToolUse Guards: Blocks or prompts for confirmation before risky actions like modifying sensitive files, executing dangerous commands, or performing destructive Git operations.
- Customizable Hooks: Provides 7 ready-to-deploy hook scripts for various security scenarios, including sensitive file protection, command injection prevention, and system path guarding.
- Use Case: When an AI agent attempts to push a commit with
--force, this skill will intercept the command, prompt the user for confirmation, and prevent the potentially destructive operation if not explicitly approved.
Quick Start
Configure your project's .claude/settings.json to include the block-sensitive-files.sh hook to prevent modifications to files like .env.