Claude Hooks — Git skill for Claude Code
by John Lindquist - A TypeScript-based system for configuring and customizing Claude Code hooks with a powerful and flexible interface.
How to install Claude Hooks
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open johnlindquist/claude-hooks and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Hooks does
[](https://npmjs.org/package/claude-hooks) [](https://github.com/johnlindquist/claude-hooks/blob/main/LICENSE) [](https://github.com/johnlindquist/claude-hooks/actions/workflows/test.yml)
Alternatives in Git
- TDD Guard — by Nizar Selander - A hooks-driven system that monitors file operations in real-time and blocks changes that v 1.9k ★
- Claude Code.el — by stevemolitor - An Emacs interface for Claude Code CLI 662 ★
- Husky — by evmts - Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message st 440 ★
README
claude-hooks
[](https://npmjs.org/package/claude-hooks) [](https://github.com/johnlindquist/claude-hooks/blob/main/LICENSE) [](https://github.com/johnlindquist/claude-hooks/actions/workflows/test.yml)
TypeScript-powered hook system for Claude Code - write hooks with full type safety and auto-completion
Overview
`claude-hooks` gives you a powerful, TypeScript-based way to customize Claude Code's behavior. Write hooks with full type safety, auto-completion, and access to strongly-typed payloads - all in familiar TypeScript syntax. No more guessing payload structures or dealing with untyped data!
Requirements
- Bun runtime (required for running hooks)
- Node.js 18+ (for running the CLI)
Quick Start
npx claude-hooks
This will:
- Create
.claude/settings.jsonwith hook configuration - Generate
.claude/hooks/index.tswith TypeScript handlers - Set up typed payload interfaces for all hook types
- Create utilities for easy hook development
Installation
Using npx (Recommended)
npx claude-hooks
Global Installation
npm install -g claude-hooks
claude-hooks
What It Does
The CLI sets up a complete TypeScript development environment for Claude hooks:
- Full TypeScript Support - Write hooks with complete type safety and IntelliSense
- Typed Payloads - Access strongly-typed payload data for all hook types (PreToolUse, PostToolUse, Notification, Stop)
- Ready-to-Customize - Simple, clean TypeScript files ready for your custom logic
- Generated Files:
.claude/settings.json- Hook configuration.claude/hooks/index.ts- Your main hook handlers (edit this!).claude/hooks/lib.ts- Type definitions and utilities.claude/hooks/session.ts- Optional session tracking utilities
Generated Structure
.claude/
├── settings.json
└── hooks/
├── index.ts
├── lib.ts
└── session.ts
...
Related Skills
TypeScript Quality Hooks
by bartolli - Quality check hook for Node.js TypeScript projects with TypeScript compilation. ESLint auto-fixi
Claudectx
by John Fox - claudectx lets you switch your entire Claude Code configuration with a single command.
Todo
by chrisleyva - A convenient command to quickly manage project todo items without leaving the Claude Code inte
Protomaker CLI
Use the protomaker CLI as the primary board interface. Discover commands via --help, complete feature->PR loop
Claude Code CLI
Automate coding tasks and manage git workflows inside your terminal using this agentic Claude-powered interfac
Claude Code JS
GitHub Repo stars Claude Code SDK for Javascript & Typescript JS/TS SDK
Related Agents
Morty Design Flexible
Pickle Rick interface-design Morty (flexible axis). Use when /death-crystal --interface needs the maximum-flex
Code TypeScript Analyst
Use PROACTIVELY for TypeScript analysis - provides type safety recommendations, generics patterns, interface d
Interface Verifier
Validates interfaces compile correctly across multiple languages. Checks for type safety, circular dependencie