Safe Hook Bundle
A conservative hook starter for formatting, type-checking, and build verification
A balanced hook bundle that improves code hygiene without making every Claude Code change feel over-automated or brittle.
What’s inside
Usage notes
Learn first
These guides explain the concepts behind this asset so the registry becomes a learning system rather than just a catalog.
Permissions and Tools
How Claude Code decides what it can do and when it should ask
A practical guide to built-in tools, permission checks, and why tool availability changes across modes and agent types.
Debugging Workflow
A practical Claude Code path for finding, reproducing, and fixing bugs
Use Claude Code effectively for debugging by combining context assembly, safe inspection tools, targeted reproduction, and focused fix loops.
Code Review Workflow
How to use Claude Code for high-signal review instead of generic commentary
A review workflow built around bug finding, risk analysis, and missing-test detection rather than vague style feedback.
Related resources
Supporting docs, tools, and integrations connected to this asset.
Prettier Pre-commit Hook
Auto-format code with Prettier before every commit
Pre-commit hook configuration that automatically formats staged files with Prettier. Supports JavaScript, TypeScript, JSON, CSS, Markdown, and more. Prevents unformatted code from being committed.
ESLint Pre-commit Hook
Lint JavaScript/TypeScript files before committing
Pre-commit hook that runs ESLint on staged files. Catches linting errors early and prevents problematic code from being committed. Supports auto-fix for automatically resolvable issues.
TypeScript Type-check Hook
Validate TypeScript types before committing
Pre-commit hook that runs TypeScript type checking. Ensures type safety across your codebase by catching type errors before they're committed. Uses tsc with noEmit flag.
Build Validation Hook
Verify the project builds successfully before committing
Pre-commit hook that validates the project builds without errors. Catches build-breaking changes before they're committed. Configurable for different build systems.