hook-design
Installation
SKILL.md
Hook Design Skill
Integrate standards enforcement into your development workflow via hooks that trigger at specific events.
Context
Hooks are event handlers that run at key moments in the development cycle. PreToolUse hooks run before you execute a tool (write a file, run a command). PostToolUse hooks run after. This skill teaches you to design hooks that provide real-time standards feedback without being intrusive.
Domain Context
Hooks in claude-standards can be:
- Command hooks — Shell scripts that run and report output
- Prompt hooks — LLM evaluation with yes/no decisions
- Agent hooks — Multi-turn verification with tool access
The most useful enforcement hooks are Agent hooks that run the Standards Enforcer against changed files.
Reference: levels/L3-enforcement/hooks/ and CLAUDE.md hook documentation