Resource: claude-code-hooks by yurukusa
Category: Hooks / Safety
10 production hooks + 5 templates from 108 hours of real autonomous Claude Code operation. Every hook was created because something broke without it.
Includes:
- Context window monitoring (graduated alerts before compact)
- Syntax checking after edits (Python, Shell, JSON, YAML, JS)
- Branch protection (blocks pushes to main/master)
- Error gate (blocks external actions when errors exist)
- No-ask-human (stops agent from blocking on questions during autonomous runs)
- Activity logger (JSONL audit trail)
- 3 ready-to-use settings.json presets (minimal / recommended / autonomous)
- 5 operational templates (CLAUDE.md, DoD checklists, task queue, mission.md, lessons log)