Master Claude Code Hooks
This repository provides a structured learning collection for Claude Code hooks, the lifecycle event system that lets developers intercept and control Claude Code's behavior at specific points during a session. It demonstrates all 13 hook lifecycle events, including UserPromptSubmit, PreToolUse, PostToolUse, Stop, SessionStart, SessionEnd, PermissionRequest, PreCompact, and SubagentStop, each implemented as standalone Python scripts using the Astral UV single-file architecture. Hooks are wired directly into Claude Code's CLI and can block dangerous shell commands like `rm -rf` or `.env` access at the PreToolUse stage, auto-approve read-only permission requests, inject development context from git status on session startup, and trigger text-to-speech alerts via ElevenLabs or OpenAI when the agent needs input. The repository also covers Claude Code sub-agents, a Meta-Agent pattern for orchestrating multiple agents, and a team-based validation system. Developers building automated workflows on top of Claude Code who need deterministic guardrails or custom observability will find the most direct value here.
- ✓Healthy fork ratio
- ✓Documented (README)
- !No standard license detected
git clone https://github.com/disler/claude-code-hooks-mastery14 items in this repository
Simple greeting agent, use proactively when greeting the user. If they say 'hi claude' or 'hi cc' or 'hi claude code' use this agent.
AI research specialist that proactively gathers latest news and developments in LLMs, AI agents, and engineering. Use for staying current with AI/ML innovations, finding actionable insights, and discovering new tools and techniques.
Generates a new, complete Claude Code sub-agent configuration file from a user's description. Use this to create new agents. Use this Proactively when the user asks you to create a new sub agent.
Proactively triggered when work is completed to provide concise audio summaries and suggest next steps. If they say 'tts' or 'tts summary' or 'audio summary' use this agent. When you prompt this agent, describe exactly what you want them to communicate to the user. Remember, this agent has no context about any questions or previous conversations between you and the user. So be sure to communicate well so they can respond to the user. Be concise, and to the point - aim for 2 sentences max.
Execute comprehensive cryptocurrency research using all crypto agents
Execute lightweight cryptocurrency research using haiku agents
Creates a concise engineering implementation plan based on user requirements and saves it to specs directory
Creates a concise engineering implementation plan based on user requirements and saves it to specs directory
Load context for a new agent session by analyzing codebase structure, documentation and README
Load context for a new agent session by analyzing codebase structure and README
Answer questions about the project structure and documentation without coding
Hooks overview
What people ask about claude-code-hooks-mastery
What is disler/claude-code-hooks-mastery?
+
disler/claude-code-hooks-mastery is hooks for the Claude AI ecosystem. Master Claude Code Hooks It has 3.8k GitHub stars and was last updated 3mo ago.
How do I install claude-code-hooks-mastery?
+
You can install claude-code-hooks-mastery by cloning the repository (https://github.com/disler/claude-code-hooks-mastery) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is disler/claude-code-hooks-mastery safe to use?
+
Our security agent has analyzed disler/claude-code-hooks-mastery and assigned a Trust Score of 57/100 (tier: OK). See the full breakdown of passed checks and flags on this page.
Who maintains disler/claude-code-hooks-mastery?
+
disler/claude-code-hooks-mastery is maintained by disler. The last recorded GitHub activity is from 3mo ago, with 35 open issues.
Are there alternatives to claude-code-hooks-mastery?
+
Yes. On ClaudeWave you can browse similar hooks at /categories/hooks, sorted by popularity or recent activity.
Deploy claude-code-hooks-mastery to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/disler-claude-code-hooks-mastery)<a href="https://claudewave.com/repo/disler-claude-code-hooks-mastery"><img src="https://claudewave.com/api/badge/disler-claude-code-hooks-mastery" alt="Featured on ClaudeWave: disler/claude-code-hooks-mastery" width="320" height="64" /></a>More Hooks
Allows you to emulate an Android native library, and an experimental iOS emulation
Real-time monitoring for Claude Code agents through simple hook event tracking.
115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by VueUse.
A webhook service that connects Claude Code to GitHub repositories, enabling AI-powered code assistance directly through pull requests and issues. This integration allows Claude to analyze repositories, answer technical questions, and help developers understand and improve their codebase through simple @mentions.
🪝 A growing collection of useful Claude Code hooks. Copy, paste, customize.
No description provided.