# Claude Hook Builder

> Scaffold Claude Code hook configs by reading your existing settings and skills.

- Skill: `skills-lock/claude-hook-builder-2` (Agent Skill)
- Install (CLI): `npx get-skill add skills-lock/claude-hook-builder-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/skills-lock/claude-hook-builder-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: skills-lock (https://skillmd.com/u/skills-lock)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/skills-lock/claude-hook-builder-2

---


# Claude hook builder

Inspects your repo's existing Claude Code configuration and prints a suggested
hook block you can paste into `.claude/settings.json` yourself. Read-only: it
never writes the file for you.

## Usage

Point it at a repo and it reads the current config and skill inventory:

- reads `.claude/settings.json` to see which hooks already exist
- greps `.claude/skills/**/SKILL.md` for tool grants worth gating

It prints the suggested `PreToolUse` / `PostToolUse` block to stdout. You review
and paste it in by hand.

