hooks

Develop and register custom TypeScript logic handlers to intercept Claude's operational flow.

3.9k|296|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill hooks-parcadei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hooks
Source: https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/hooks
Command: npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill hooks-parcadei

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a framework for developing and registering custom logic (hooks) that can intercept and modify Claude's behavior at various stages of its operation, enabling fine-grained control and automation.

Core Features & Use Cases

  • Event Interception: Hooks can be triggered by specific events like PreToolUse, PostToolUse, UserPromptSubmit, PreCompact, SessionStart, and Stop.
  • Conditional Logic: Implement custom rules to block or modify actions based on event data.
  • System Reminders: Provide contextual feedback or instructions to Claude.
  • Use Case: Create a hook that automatically blocks any tool use attempting to modify critical configuration files, ensuring system integrity.

Quick Start

Register a new hook by adding its configuration to .claude/settings.json.

Frequently Asked Questions about hooks

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

FAQPage Schema
How do I intercept and modify Claude's behavior with custom logic during tool use?

You can inject system reminders into Claude's context by developing event-driven hooks that trigger during specific operational stages, providing contextual feedback or instructions directly through a shell wrapper and TypeScript handler pattern.

How do I register custom hooks to control Claude's operational flow?

You write custom hooks using a shell wrapper and TypeScript handler pattern, which facilitates conditional execution and system reminder injection across Claude's operational stages.

What specific events can I trigger custom hooks on in Claude?

You can create a hook that automatically blocks any tool use attempting to modify critical configuration files, implementing custom rules to conditionally block or modify actions based on event data and ensuring system integrity.

Can I automatically block tool use that modifies critical configuration files?

Custom hooks support conditional execution by evaluating event data, allowing you to implement custom rules that block, modify, or permit actions and inject contextual feedback through system reminders.