hook.define
CommunityAuto-register validation hooks.
Authorepieczko
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Create and register validation hooks for Claude Code to automate safety rails, ensuring validation runs automatically on relevant events like file edits, commits, and pushes.
Core Features & Use Cases
- Create and configure .claude/hooks.yaml
- Load existing hooks and merge updates without duplicates
- Save updated hooks configuration back to disk
- Examples include on_file_edit validating OpenAPI specs or on_commit checking for breaking changes
Quick Start
python skills/hook.define/hook_define.py <event> <command> [options]
Example:
on_file_edit "python betty/skills/api.validate/api_validate.py {file_path} zalando"
--pattern="*.openapi.yaml" --blocking=true --timeout=10000 --description="Validate OpenAPI specs"
Dependency Matrix
Required Modules
yaml
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: hook.define Download link: https://github.com/epieczko/betty/archive/main.zip#hook-define 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.