What problem does it solve?
Creating new Claude Code hooks and wiring them into settings.json is a manual, error-prone process; this skill provides a scaffold to quickly generate a deterministic shell-script hook and register it with Claude Code's event-driven workflow.
Core Features & Use Cases
- Scaffold a ready-to-use hook named <hook-name> that runs as a script under .claude/hooks/scripts/
- Automatically update .claude/settings.json to register the hook for a chosen event (PreToolUse, PostToolUse, Stop, SessionStart)
- Enforce deterministic behavior with a standard script template that reads input from stdin and provides guardrails, enabling repeatable hooks across sessions
Use cases include automating pre/post tool validations, session-start initialization, or stop-time cleanup tasks across Claude Code sessions.
Quick Start
Create a new hook named <hook-name>, wire it into .claude/settings.json, and place its script under .claude/hooks/scripts/.