Writing Hookify Rules
OfficialAutomate Claude's behavior with custom rules.
Authoranthropics
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you define custom rules to automate Claude's responses and actions, preventing unwanted behaviors or enforcing best practices. It solves the problem of needing to manually guide Claude in repetitive scenarios or when specific guardrails are required.
Core Features & Use Cases
- Event-Driven Automation: Trigger rules on
bash,file,stop,prompt, orallevents. - Pattern Matching: Define rules using simple regex or advanced multi-condition logic.
- Actionable Feedback: Configure rules to
warnClaude orblockoperations, providing tailored messages. - Use Case: Prevent accidental
rm -rfcommands by creating abashevent rule that blocks such commands and warns Claude about dangerous operations.
Quick Start
Use the Writing Hookify Rules skill to create a rule that warns Claude when it tries to add 'console.log' to a JavaScript file.
Dependency Matrix
Required Modules
None requiredComponents
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: Writing Hookify Rules Download link: https://github.com/anthropics/claude-plugins-official/archive/main.zip#writing-hookify-rules 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 471,000+ vetted skills library on demand.