Claude Code Hooks - Map of Content (MOC)

Central hub for all Claude Code Hooks documentation, tutorials, and resources

📚 Core Documentation (Consolidated)

Primary Resources

Quick Access

🎯 Learning Path

Beginner (45 min)

Intermediate (60 min)

Advanced (90 min)

📝 Workshop Materials

Active Workshop Content

📊 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 10

Hook 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 Tutorials
  • claude-code-hooks-reference.md → Merged into Overview
  • claude-code-hooks-workshop.md → Split across appropriate sections

Other Claude Code Features

Integration Points

  • 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.