security-hooks

Community

Secure your code with automated PreToolUse guards.

AuthorAreteDriver
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: security-hooks
Download link: https://github.com/AreteDriver/ai-skills/archive/main.zip#security-hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.