Skip to main content
plugin

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add davepoon/buildwithclaude
/plugin install hooks-security@buildwithclaude
Open on GitHub

What 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@buildwithclaude

Step 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

Similar plugins

All plugins for Security →

From the same set235

The whole set →
all-commands all-commands puts 174 slash commands in 22 categories into Claude Code as one plugin, installed from the BuildWithClaude marketplace. ★ 3,785repo stars all-agents all-agents provides a complete bundle of 117 specialized agents structured into 11 categories. ★ 3,785repo stars mcp-servers-docker mcp-servers-docker adds Docker-based MCP servers from the official Docker MCP registry to Claude Code. The set holds 199+ verified servers. ★ 3,785repo stars hooks-testing hooks-testing is a plugin for Claude Code and Cursor that automates testing through event-driven hooks. Testing actions run in response to events. ★ 3,785repo stars hooks-performance hooks-performance is a plugin for Claude Code and Cursor that runs scripts and automation when performance metrics or context usage change. ★ 3,785repo stars hooks-notifications The hooks-notifications plugin sends IDE events—errors, operation completions, hook triggers—to Discord, Slack, or Telegram. Track long-running scripts and build failures without keeping an eye on the editor. ★ 3,785repo stars hooks-git hooks-git is a plugin for Claude Code and Cursor that automates Git workflows by staging changed files and structuring commits according to Conventional Commits. ★ 3,785repo stars hooks-formatting hooks-formatting — a plugin for Claude Code that runs JavaScript and Python formatting automatically on agent hooks — no manual trigger needed. Fires when the agent writes or modifies code. ★ 3,785repo stars

Project sponsors

Companies that keep this analytics open