hooks-security — Claude Code plugin: what it does, how to install
hooks-security is a Claude Code and Cursor plugin for security automation that protects files, controls branch edits, and scans code.
MIT ★ 3,785 updated 2026-10-25
/plugin marketplace add davepoon/buildwithclaude
/plugin install hooks-security@buildwithclaudeWhat hooks-security does
This plugin adds event-driven security hooks to Claude Code and Cursor workflows. The package focuses on automated guardrails, bundling components such as file protection, a security scanner, and branch protection mechanisms.
Because checks run directly on environment events, safety rules trigger automatically whenever an agent interacts with sensitive paths or Git branches. Modifying protected areas without clearance will trigger the guardrails immediately.
What it helps with
- prevent agents from overwriting sensitive project files
- block unapproved modifications on protected Git branches
- trigger automated security scans during agent sessions
Example prompts for the agent
- Enable file protection hooks for this repository.
- Run security-scanner checks on recent changes.
How to install hooks-security
Plugin marketplace
/plugin marketplace add davepoon/buildwithclaude/plugin install hooks-security@buildwithclaudeStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about hooks-security
How do I install hooks-security in Claude Code?
First add the marketplace via /plugin marketplace add davepoon/buildwithclaude. Next, run /plugin install hooks-security@buildwithclaude.
What does hooks-security do?
It injects event-triggered automation hooks into development environments. These hooks guard specific files, check Git branch activity, and perform security scanning.
Which components are included in hooks-security?
The plugin provides file-protection to secure targets from edits, branch-guard to supervise branch actions, and an integrated security-scanner.
Source text
hooks-security · MIT
Security Hooks - Event-driven automation hooks
© BuildWithClaude Community · MIT · davepoon/buildwithclaude