Claude Code Hook Manager — Development skill for Claude Code
CLI tool to manage Claude Code hooks — creates, registers, and tracks prompt and script hooks without manually editing settings.json.
How to install Claude Code Hook Manager
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open obsfx/claude-code-hook-manager and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Hook Manager does
CLI tool to manage Claude Code hooks — creates, registers, and tracks prompt and script hooks without manually editing settings.json.
Alternatives in Development
- Claude Config — Built-in /config command to manage settings interactively 81.1k ★
- /discover — Run a full discovery loop without manually stitching together skills 2.3k ★
- /install-hook - Install Generated Hook To Settings — Install a generated hook to Claude Code settings (user-level or project-level) 618 ★
README
cchm - Claude Code Hook Manager
A CLI tool that manages [Claude Code hooks](https://docs.anthropic.com/en/docs/claude-code/hooks). It creates hook files, registers them in `settings.json`, and tracks metadata — so you don't have to manually edit JSON config files.
https://github.com/user-attachments/assets/822ba7f8-086b-42c5-bf83-dc8f024a22a1
Installation
npm install -g cchm
Or run directly with npx:
npx cchm quickstart
How It Works
Claude Code hooks are configured in `~/.claude/settings.json` (global) or `.claude/settings.json` (project). Each hook points to a command that runs on a specific event.
cchm abstracts this away:
- You run
cchm add prompt|script - It creates the hook file under
~/.claude/hooks//.md|.sh - It registers
cchm run /.md|.shas a command insettings.json - It tracks hook metadata in
.cchm.jsonfor listing and management
When Claude Code triggers an event, it calls `cchm run `, which executes the hook file and handles output formatting automatically.
Hook Types
**Prompt hooks** (`.md`) — Markdown content injected as context into Claude. Write plain text; cchm handles JSON wrapping when the event requires it.
**Script hooks** (`.sh`) — Bash scripts executed on the event. They receive JSON on stdin and can produce output or perform side effects.
Event Compatibility
Not all events support both hook types. cchm enforces this automatically:
| Category | Events | Prompt | Script |
|---|---|---|---|
| Plaintext | SessionStart, UserPromptSubmit |
Related Skills
Claude Skills Manager
See and manage your Claude Code skills - turn them on, off, or slash-only without hand-editing settings.json.
Ay Claude Templates
Official CLI tool for AY Claude Platform - Discover, install, and manage Claude Skills, Agents, Commands, Hook
Paper Motion
Claude Code skill: make a reel without recording or editing. You write the script, a voice reads it, Claude wr
Hook Creator
You are the Hook Creator Wizard. Your job is to interview the user and generate a complete, ready-to-use Claud
Cldpm
CPM (Claude Project Manager) is an SDK and CLI for managing mono repos with multiple Claude Code projects. It
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Related Agents
Ct Harness Engineer
Designs and audits Claude Code harness infrastructure — hooks, rules, settings, constraint promotion, maturity
Project Manager Backlog
Use this agent when you need to manage project tasks using the backlog.md CLI tool. This includes creating new
Optimizer Hooks
Specialized agent for optimizing Claude Code hooks. Expert in hooks.json structure, event types, matchers, scr