hooks

Community

Automate workflows with event-driven scripts.

Authorreggiechan74
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Repetitive tasks like code formatting, validation, or logging often require manual intervention or external scripting. This Skill enables automated execution of scripts at specific lifecycle events, streamlining your development workflow and reducing manual effort.

Core Features & Use Cases

  • Event-Driven Automation: Trigger scripts PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, and more, for comprehensive workflow control.
  • Granular Control: Use matchers (including regex) to target specific tools or events, ensuring precise automation.
  • Decision Control: Allow, deny, or modify tool execution based on hook script output, providing powerful conditional logic.
  • Use Case: Configure a PostToolUse hook to automatically run prettier on any .ts file after Claude edits it, ensuring consistent code formatting across your project without any manual steps.

Quick Start

Show me how to create a hook that runs a script before any Bash command is executed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: hooks
Download link: https://github.com/reggiechan74/claude-plugins/archive/main.zip#hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository