cc-hook-registry

March 24, 2026 · View on GitHub

npm version tests

Hook package manager for Claude Code. Search, install, update, and manage 48 hooks from 7 projects.

Browse hooks in your browser — no install needed.

npx cc-hook-registry search database
  Search: "database" — 1 result(s)

  block-database-wipe [safety]
    Blocks migrate:fresh, DROP DATABASE, prisma migrate reset
    Install: npx cc-safe-setup --install-example block-database-wipe

Commands

npx cc-hook-registry search <keyword>   # Find hooks by keyword
npx cc-hook-registry browse [category]  # Browse by category
npx cc-hook-registry install <id>       # Install a hook (direct download)
npx cc-hook-registry recommend          # Recommend hooks for your project
npx cc-hook-registry info <id>          # Show hook details
npx cc-hook-registry stats              # Registry statistics

recommend

Scans your project for package.json, requirements.txt, Dockerfile, .env, Gemfile, artisan and recommends hooks based on your tech stack:

npx cc-hook-registry recommend

  ✓ destructive-guard (installed)
    Essential — prevents rm -rf disasters

  ○ auto-approve-build
    Node.js project detected
    Install: npx cc-hook-registry install auto-approve-build

  ○ block-database-wipe
    Prisma detected — protect against migrate reset

install (direct download)

Hooks are downloaded directly from GitHub — no cc-safe-setup dependency needed:

npx cc-hook-registry install block-database-wipe
# Downloads script, saves to ~/.claude/hooks/, registers in settings.json

Categories

CategoryHooksWhat They Do
safety14Block destructive commands, protect files, secrets
quality4Syntax checks, commit quality, edit validation
utility3Cleanup, debugging, session handoff
monitoring2Context window, cost tracking
ux2Desktop notifications, sound alerts
framework2Python + TypeScript/Bun frameworks
approve1Auto-approve safe compound commands
security1Prompt injection defense

29 Hooks

The registry includes hooks from:

  • cc-safe-setup (22 hooks) — npx cc-safe-setup
  • claude-code-safety-net (1,185★) — TypeScript safety hooks
  • karanb192/claude-code-hooks (298★) — JavaScript safety
  • johnlindquist/claude-hooks (329★) — TypeScript/Bun
  • claude-code-hooks-mastery (3,386★) — Python framework
  • claude-hooks by lasso-security — Prompt injection defense
  • awesome-claude-code by pascalporedda — Sound notifications

How It Works

The registry is a curated list embedded in the package. No server, no API calls, no network required. Install commands run npx cc-safe-setup --install-example for compatible hooks.

Submit Your Hook

Want to add your hook to the registry? Open a PR on GitHub adding an entry to the REGISTRY array in index.mjs.

License

MIT