claude:hooks

Integrate hooks into Claude Code for notifications, validation, formatting, safety checks, and context loading.

2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/amdmax/claude_marketplace --skill claude-hooks-amdmax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude:hooks
Source: https://github.com/amdmax/claude_marketplace/tree/main/.claude/skills/claude%3Ahooks
Command: npx skills add https://github.com/amdmax/claude_marketplace --skill claude-hooks-amdmax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework for integrating custom hooks into Claude Code, enabling automated actions like notifications, validation, formatting, safety checks, and context loading to streamline development workflows.

Core Features & Use Cases

  • Desktop Notifications: Receive native alerts for permission prompts and idle states.
  • Pre-Stop Validation: Automatically run tests (npm test) and custom validation scripts before Claude stops.
  • Auto-Formatting: Ensures code consistency using tools like Prettier and Black.
  • Safety Checks: Prevents execution of dangerous commands (e.g., rm -rf /) and writing to sensitive files.
  • Session Context Loading: Automatically injects git status, recent commits, and active story into Claude's context.

Quick Start

Run the setup script to configure all hooks for your Claude Code environment.

Frequently Asked Questions about claude:hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code formatting in Claude Code with Prettier and Black?

You can automate code formatting in Claude Code by integrating hooks that automatically run Prettier and Black on your files. This ensures consistent code style without manual intervention during your development workflow.

Can I run validation tests automatically before Claude stops?

Yes, you can configure pre-stop validation hooks to automatically run tests like npm test and custom validation scripts before Claude stops. This prevents incomplete or broken code from ending your session unnoticed.

How do I set up desktop notifications for permission prompts in Claude Code?

Desktop notifications for permission prompts are set up by configuring hooks that trigger native alerts when Claude enters an idle state or requires user input. You can enable this by running the provided setup script.

Does Claude Code support safety checks to prevent dangerous command execution?

Claude Code supports proactive safety checks via hooks to prevent the execution of dangerous commands like rm -rf / and block writing to sensitive files. This protects your environment from accidental destructive operations.

How do I automatically load git status and active stories into Claude's context?

You can automatically load git status, recent commits, and active stories into Claude's context by configuring session start hooks. This proactively injects repository context so Claude understands your current working state immediately.

What is the best way to manage custom hooks for workflow automation in Claude Code?

The best way to manage custom hooks for workflow automation is using a comprehensive framework that centralizes notifications, formatting, safety checks, and context loading into a single configuration. Run the setup script to configure all hooks at once.