Claude Code plugin

Claude Code Hooks

The original 16 Claude Code safety hooks, kept for backward compatibility. The maintained set — 914 hooks, one-command install — is cc-safe-setup.

20 stars 3 forksPlugins & marketplaces Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add yurukusa/claude-code-hooks

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/yurukusa/claude-code-hooks.git

From the README

claude-code-hooks
⚠️ This repository has moved to cc-safe-setup — 914 hooks, one-command install. This repo (16 hooks) is the original version kept for backward compatibility.

Quick Start (New Repository)
The published package on npm is still the 2026-04-20 build. The commands below point at GitHub directly so you get the current version.

914 Example Hooks | Interactive Hook Selector | Token Checkup (diagnose token waste)

New here? The Claude Code Safety Field Manual is free (minimum price zero): the pre-flight checklist, what each guard actually refuses, and how to make one fire on purpose so you can watch it work.

Spending too much on Claude Code? The average developer spends $13/day on tokens. Cut Your Claude Code Token Usage in Half is 48 diagnostic symptoms for cost — subagents, MCP server overhead, context bloat, cache misses — measured on one operation rather than reasoned about (English, from $9.99).

Original Repository (16 hooks)

Interactive Cookbook — search, filter, and copy 26 hook recipes in your browser.

16 hooks + 6 templates from 700+ hours of autonomous Claude Code operation.

Production infrastructure for running Claude Code autonomously. Every hook exists because something went wrong without it. Every template encodes a workflow pattern that survived real-world autonomous operation.
Honest disclaimer: This is what works for us. Your workflow may differ. These hooks and templates address the failure modes we actually encountered.

Covers 18 of 20 checks in cc-health-check.

Get Started in 10 Seconds
Want 914 hooks? Use cc-safe-setup — the successor to this repo with 57x more hooks, a test suite, and one-command install.
New to hooks? Read the Troubleshooting Guide or print the Cheat Sheet.
Losing tokens too fast? Cut Your Claude Code Token…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add yurukusa/claude-code-hooks, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
Shell
License
MIT
Last updated
29 August 2026
Topics
ai-safetyanthropicautomationautonomousbashclaudeclaude-codecookbookdatabase-protectiondeveloper-toolsdevopshooks

FAQ

What is Claude Code Hooks?

The original 16 Claude Code safety hooks, kept for backward compatibility. The maintained set — 914 hooks, one-command install — is cc-safe-setup. It is a plugin for Claude Code, from yurukusa/claude-code-hooks on GitHub.

How do I install Claude Code Hooks?

Run /plugin marketplace add yurukusa/claude-code-hooks inside Claude Code, then follow the setup in the README.

Is Claude Code Hooks popular?

yurukusa/claude-code-hooks has 20 GitHub stars and 3 forks, and is included in 1 curated Claude Code list. It was last updated on 29 August 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.