claude-hooks (TypeScript)
A TypeScript toolkit for building Claude Code hooks — typed event payloads and a structured project setup instead of ad-hoc shell scripts.
How to Install Hooks
- Copy the hook configuration using the button below
- Add to your .claude/hooks/ directory in your project
- Save the hook as an executable script with appropriate permissions
- The hook will trigger on the specified events in your Claude Code workflows
From John Lindquist (founder of egghead.io), claude-hooks brings a proper developer experience to hook authoring: scaffold a hooks project, get typed definitions for hook event payloads, and write hooks as TypeScript functions rather than untyped shell one-liners.
If your hooks are growing past simple guards — enforcing commit conventions, routing notifications, validating tool inputs — types catch the schema mistakes that silently break shell-script hooks.
**Install:** `npx claude-hooks` in your project, then follow the generated setup.Categories:
Ad