Skip to content

yurukusa/cc-hook-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cc-hook-registry

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

Category Hooks What They Do
safety 14 Block destructive commands, protect files, secrets
quality 4 Syntax checks, commit quality, edit validation
utility 3 Cleanup, debugging, session handoff
monitoring 2 Context window, cost tracking
ux 2 Desktop notifications, sound alerts
framework 2 Python + TypeScript/Bun frameworks
approve 1 Auto-approve safe compound commands
security 1 Prompt 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.

Related

License

MIT

About

Search, browse, and install Claude Code hooks from the community

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors