hooks-manager

Develop, adapt, and validate prompt-based or command-based hooks for Claude Code.

1|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/Jarvis-Projects/plugin-dev --skill hooks-manager-jarvis-projects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hooks-manager
Source: https://github.com/Jarvis-Projects/plugin-dev/tree/main/skills/hooks-manager
Command: npx skills add https://github.com/Jarvis-Projects/plugin-dev --skill hooks-manager-jarvis-projects

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, modification, and validation of hooks, ensuring robust and secure automation within your Claude Code environment.

Core Features & Use Cases

  • Hook Development: Guides you through building new prompt-based or command-based hooks for various events (PreToolUse, Stop, etc.).
  • Adaptation: Helps integrate and modify hooks from external sources like marketplaces.
  • Validation: Provides a checklist and debugging tools to ensure hooks function correctly and securely.
  • Use Case: You need to create a hook that automatically validates file write operations, preventing accidental modification of sensitive system files. This Skill will guide you through defining the hook's logic, writing the necessary script, and testing its effectiveness.

Quick Start

Use the hooks-manager skill to create a new PreToolUse hook that validates file write operations.

Frequently Asked Questions about hooks-manager

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

FAQPage Schema
How do I create a Claude Code hook to validate file write operations?

To create a Claude Code hook for validating file writes, you define a PreToolUse hook with specific matcher patterns and write a script to handle the event, ensuring deterministic automation that prevents accidental modification of sensitive system files.

What are Claude Code hooks and when do I need them for automation?

Claude Code hooks are prompt-based or command-based scripts triggered by events like PreToolUse or Stop, needed for secure and context-aware automation when you want to enforce deterministic validation or execute custom logic during specific tool lifecycle stages.

Can I adapt and integrate external hooks from a marketplace into my Claude Code environment?

Yes, you can adapt external hooks by modifying their configuration and script logic to match your environment, validating their security and functionality through detailed debugging workflows before integrating them into your hook lifecycle.

How do I debug a Claude Code hook that is not triggering on the expected event?

To debug a non-triggering Claude Code hook, review your matcher patterns for accuracy, verify the event configuration such as PreToolUse or Stop, and use the provided validation checklist to isolate configuration or scripting errors.

What is the difference between prompt-based and command-based hooks in Claude Code?

Prompt-based hooks use context-aware logic for flexible automation, while command-based hooks execute deterministic scripts for strict validation, with both supporting event handling and matcher patterns to trigger during the Claude Code lifecycle.