Claude Code Hooks
Create event-driven hooks for Claude Code automation. Configure PreToolUse, PostToolUse, Stop, and other hook events with bash scripts, environment variables, matchers, and exit codes.
Install
/plugin marketplace add Freddy-CHEN-ux/00_claude_skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add Freddy-CHEN-ux/00_claude_skills --skill claude-code-hooksgit clone --depth 1 https://github.com/Freddy-CHEN-ux/00_claude_skills.git /tmp/00_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/00_claude_skills/skills/claude-code-hooks ~/.claude/skills/claude-code-hooksPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Claude Code Hooks — Meta Reference This skill provides the definitive reference for creating Claude Code hooks. Use this when building automation that triggers on Claude Code events. --- ## When to Use This Skill - Building event-driven automation for Claude Code - Creating PreToolUse guards to block dangerous commands - Implementing PostToolUse formatters, linters, or auditors - Adding Stop hooks for testing or notifications - Setting up SessionStart/SessionEnd for environment management - Integrating Claude Code with CI/CD pipelines (headless mode) --- ## Quick Reference | Event | Trigger | Use Case | |-------|---------|----------| | `PreToolUse` | Before tool execution | Validate, block dangerous commands | | `PostToolUse` | After tool execution | Format, audit, notify | | `Stop` | When Claude finishes | Run tests, summarize | | `Notification` | On notifications | Alert integrations | | `SessionStart` | Session begins | Initialize environment | | `SessionEnd` | Session ends | Cleanup, save state | | `UserPromptSubmit` | User sends message | Preprocessing | ## Hook Structure ```text .claude/hooks/ ├── pre-tool-validate.sh ├── post-tool-format.sh ├── post-tool-audit.sh ├── stop-run-tests.sh └── session-start-init.sh ``` --- ## Configuration ### settings.json
Details
- Skill name
claude-code-hooks- Repository
- Freddy-CHEN-ux/00_claude_skills
- Path
skills/claude-code-hooks/SKILL.md- Repo updated
- 10 January 2026
FAQ
What does the Claude Code Hooks skill do?
Create event-driven hooks for Claude Code automation. Configure PreToolUse, PostToolUse, Stop, and other hook events with bash scripts, environment variables, matchers, and exit codes.
How do I install the Claude Code Hooks skill?
Claude Code plugin: /plugin marketplace add Freddy-CHEN-ux/00_claude_skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Claude Code Hooks popular?
It lives in Freddy-CHEN-ux/00_claude_skills, which has 8 GitHub stars and 3 forks.
Related skills
Add Integration
8Freddy-CHEN-ux/00_claude_skills
Build a new API integration for Nexus. Load when user mentions "add integration", "new integration", "integrate with", "connect to [service]", or "build [service] integration". Interactive workflow that discovers API endpoints, plans the integration, and creates a project for implementation.
AI Agents
8Freddy-CHEN-ux/00_claude_skills
Production-grade AI agent patterns with MCP integration, agentic RAG, handoff orchestration, multi-layer guardrails, and observability (modern best practices)
AI LLM
8Freddy-CHEN-ux/00_claude_skills
Production LLM engineering skill. Covers strategy selection (prompting vs RAG vs fine-tuning), dataset design, PEFT/LoRA, evaluation workflows, deployment handoff to inference serving, and lifecycle operations with cost/safety controls.
Claude Code Skills
8Freddy-CHEN-ux/00_claude_skills
Comprehensive reference for creating Claude Code skills with progressive disclosure, SKILL.md structure, resources/ organization, frontmatter specification, and best practices for modular capability development.
Behavior Driven Development
5vnovakovits/claude-skills
Apply Behavior-Driven Development (BDD) by Dan North, Gojko Adzic, Matt Wynne & Aslak Hellesøy, and Liz Keogh — covering the three practices (discovery, formulation, automation), three amigos workshops, Gherkin scenarios, Specification by Example, living documentation, Feature Injection, and pairing BDD with outside-in TDD. Use when starting a new feature, capturing requirements collaboratively, writing acceptance criteria, deciding what scenarios to automate, or fixing a "Cucumber suite" that has become a brittle UI-testing pile.
Clean Code
5vnovakovits/claude-skills
Apply Clean Code principles by Robert C. Martin (Uncle Bob) when writing new code, refactoring existing code, or reviewing changes in any language. Covers meaningful names, small functions, comments, formatting, objects vs data structures, error handling, boundaries, unit tests, classes, systems, emergent design, concurrency, and code smells.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.