Directory · Hooks
claude-code-hooks
A 22-plugin marketplace of tested Claude Code hooks for safety guardrails, automation, notifications, and session observability.
★ 589 stars · last updated 2026-11-26 · Free, open source · View on GitHub
Best for
- Blocking dangerous shell commands, secret exfiltration, and force pushes to main
- Protecting hook and settings config from agent or supply-chain tampering
- Session logging, standup generation, and context-cost tracking
- Auto-formatting, auto-staging, and Slack alerts when Claude needs input
Install
/plugin marketplace add karanb192/claude-code-hooks
/plugin install <name>@claude-code-hooks
Our take
Each hook ships as an installable plugin with its own tests and README, and the scripts can also be copied standalone and wired into settings.json manually. The project reports CI with 1949 passing tests and maps its hooks against the OWASP LLM Top 10 2026. Some hooks document workarounds for Claude Code event quirks, such as InstructionsLoaded ignoring continue: false, so behavior may depend on the Claude Code version.
Similar hooks
- Claude Code Ultimate Guide: Large open guide to Claude Code covering agent workflows, hooks, skills, MCP, security, and team adoption, with reusable templates.
- dcg (Destructive Command Guard): Rust pre-execution hook that blocks destructive shell, git, filesystem, database, and cloud commands run by AI coding agents.
- Claude Code Showcase: Example Claude Code project config with hooks, skills, agents, slash commands, MCP setup, and GitHub Actions workflows to copy from.
- Claude Code Hooks Mastery: Reference project implementing all 13 Claude Code hook events as UV Python scripts, plus sub-agents, status lines, and output styles.
- Continuous Claude v3: Hooks, skills, and agents that keep Claude Code context across sessions via YAML handoffs, ledgers, and a PostgreSQL memory store.
- Build with Claude: Plugin marketplace and discovery hub of agents, commands, hooks, and skills for Claude Code users extending their workflows.