Claude Code Hooks - Map of Content (MOC)
Central hub for all Claude Code Hooks documentation, tutorials, and resources
📚 Core Documentation (Consolidated)
Primary Resources
- 📖 Overview & Reference - Complete guide with architecture, events, configuration
- 🎓 Tutorials & Examples - Progressive learning path from beginner to advanced
- 🔧 Design Patterns - Best practices and architectural patterns
- 🔌 Third-Party Integrations - External services and tools
- 🔒 Security Guide - Security best practices and considerations
- 🐛 Troubleshooting Guide - Debugging and common issues
Quick Access
- Quick Start Guide - Get running in 5 minutes
- Hook Events Reference - All hook events at a glance
- Environment Variables - Available variables
- Exit Code Reference - Return code reference
🎯 Learning Path
Beginner (45 min)
- Basic Examples - Logging, notifications, file operations
- Environment Setup - Workshop prerequisites
Intermediate (60 min)
- Code Quality Hooks - Formatting, linting, testing
- Validation Patterns - Input validation techniques
Advanced (90 min)
- Complex Workflows - CI/CD, orchestration
- Advanced Patterns - State management, async processing
📝 Workshop Materials
Active Workshop Content
- Workshop Overview - Complete 5-hour curriculum
- Practice Exercises - Hands-on challenges
- Workshop Introduction - Original objectives
- Exercise Solutions - Complete answer key
- Debugging Workshop - Troubleshooting techniques
📊 Hook Statistics
TABLE WITHOUT ID
"Total Hook References" AS Metric,
length(pages() WHERE contains(file.content, "hook") OR contains(file.content, "Hook")) AS Count
UNION ALL
TABLE WITHOUT ID
"Hook Examples" AS Metric,
length(pages() WHERE contains(file.content, "hooks": {") OR contains(file.content, "type": "command")) AS Count
UNION ALL
TABLE WITHOUT ID
"Hook Patterns" AS Metric,
length(pages() WHERE contains(file.content, "pattern") AND contains(file.content, "hook")) AS Count🔍 Dynamic Content Discovery
Recent Hook Updates
TABLE WITHOUT ID
link(file.name, truncate(file.name, 40)) AS "Page",
dateformat(file.mtime, "yyyy-MM-dd") AS "Modified"
WHERE contains(lower(file.content), "hook") AND
file.mtime > date(today) - dur(30 days)
SORT file.mtime DESC
LIMIT 10Hook Implementation Examples
LIST
WHERE contains(file.content, "hooks": {") OR
contains(file.content, "matcher": ") OR
contains(file.content, "PostToolUse") OR
contains(file.content, "PreToolUse")
SORT file.mtime DESC📁 File Organization
Consolidated Files (New Structure)
/Projects/claude-code-hooks/
├── overview.md # Complete reference
├── claude-code-hooks-tutorials.md # All examples & workshop
├── patterns.md # Design patterns
├── claude-code-hooks-integrations.md # Third-party services
├── security.md # Security guide
└── troubleshooting.md # Debug guide
Legacy Files (Being Phased Out)
These files contain duplicate content that has been consolidated:
claude-code-hooks-examples.md→ Merged into Tutorialsclaude-code-hooks-reference.md→ Merged into Overviewclaude-code-hooks-workshop.md→ Split across appropriate sections
🏷️ Related Topics
Other Claude Code Features
Integration Points
🔗 Quick Links
- Documentation:
/Projects/claude-code-hooks/ - Examples: See Tutorials
- Patterns: See Design Patterns
- Support: GitHub Discussions
Tags
claude-code hooks workshop moc architecture tutorials debugging security integrations patterns
This MOC provides a consolidated view of Claude Code Hooks documentation. The structure has been simplified to reduce duplication while maintaining comprehensive coverage.