hook-patterns

Official

Standardize Claude Code hooks.

AuthorPiece-Puzzly
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear guidelines and examples for implementing and standardizing Claude Code hooks, ensuring consistency and best practices in hook development.

Core Features & Use Cases

  • Hook vs Skill Distinction: Clearly defines the purpose and trigger mechanisms for hooks versus skills.
  • Hook Types: Explains PreToolUse and PostToolUse hooks with their respective use cases.
  • Writing Standards: Details file structure, script templates, and blocking response formats.
  • Use Case: A developer needs to implement a hook to validate commit messages before they are committed. This Skill provides the necessary patterns and examples to create such a hook.

Quick Start

Refer to the hook-patterns skill for guidance on creating a PreToolUse hook to validate bash commands.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: hook-patterns
Download link: https://github.com/Piece-Puzzly/Piece-iOS/archive/main.zip#hook-patterns

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.