hooks

Community

Automate Claude Code workflows with hooks.

AuthorBenjaminG
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables developers to automate Claude Code workflows by creating and managing hooks that respond to events like PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart, and PermissionRequest, ensuring consistent behavior and safety.

Core Features & Use Cases

  • Create and configure event hooks to validate prompts, format outputs, load session context, and control execution flow.
  • Provide deterministic command-based or intelligent prompt-based hooks that integrate with MCP tools, project settings, and user workflows.
  • Example: automatically validate a user input prompt and attach current session context at startup to streamline tool usage.

Quick Start

Start by registering a PreToolUse hook to validate Bash commands. For example, configure a hook that runs validate_bash.py whenever a Bash tool is invoked and hooks that log or enforce style after edits.

Dependency Matrix

Required Modules

None required

Components

scriptsassets

💻 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/BenjaminG/ai-skills/archive/main.zip#hooks

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.