ClaudeMap

Claude Code Hooks Mastery

disler's production-grade Claude Code hooks — real configurations with explanations.

Skills & Commandshooksclaude-codetutorialproduction

disler's curated set of production-grade Claude Code hooks — PreToolUse / PostToolUse / UserPromptSubmit configurations with full explanations and screenshots. The most complete hooks reference outside the official docs.

What it does

  • Reference repo that exercises all 13 Claude Code hook lifecycle events with JSON payload logging
  • Demonstrates hook error codes and flow control (blocking, rewriting, injecting context)
  • Covers sub-agents, a 'meta-agent', team-based validation and output styles
  • Built on Astral UV single-file scripts — each hook is a self-contained Python file

When to use it

The fastest way to understand what hooks can actually do: clone it, watch the payloads fire, then copy the patterns into your own .claude/hooks setup.

Getting started

Clone the repo and inspect/copy the hook scripts. Prerequisites: Claude Code and Astral UV (for the single-file Python scripts). Optional integrations use ElevenLabs, Firecrawl, OpenAI or Ollama.

Things to know

It's a learning/reference repo, not an installable tool — you adopt the patterns, not the package.

Repository

disler/claude-code-hooks-mastery

Charted

Related on the map

  • An instruction-only skill that makes agents research before they ask, plan before they build, and verify before they call anything done.

    • workflow
    • verification
    • quality
    • skill
  • Guizang's agent skill turns your repo's recent updates into a finished promo video — real components, code-rendered animation, an original code-written soundtrack — no video editor involved.

    • agent-skill
    • video
    • promo
    • marketing
  • An agent skill that geolocates a photo with nothing readable in it — OSM geometry, elevation skylines and satellite tiles turn “where was this taken?” into a measured answer with an error radius.

    • agent-skill
    • geolocation
    • osint
    • openstreetmap