plugin-hook-development
OfficialAdd event-driven hooks to your plugins.
Authorlazygophers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables developers to integrate event-driven functionality into their plugins by defining and managing hooks that trigger specific actions based on predefined events.
Core Features & Use Cases
- Event-Driven Actions: Define custom actions that execute automatically when specific events occur within the Claude environment (e.g.,
SessionStart,PreToolUse). - Configuration Management: Learn how to configure hooks using
hooks.jsonto specify event triggers, matching patterns, and command executions. - Script Integration: Understand how to write Python scripts that handle hook events and integrate them into the plugin's execution flow.
- Use Case: Automatically log detailed information about tool usage before each tool is executed by configuring a
PreToolUsehook to run a custom logging script.
Quick Start
Configure a SessionStart hook to execute a Python script located at ./scripts/on_session_start.py.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: plugin-hook-development Download link: https://github.com/lazygophers/ccplugin/archive/main.zip#plugin-hook-development Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.