hooks-builder
CommunityAutomate Claude's lifecycle: validate, format, control agents.
Software Engineering#automation#validation#AI hooks#lifecycle events#settings.json#Python scripting#agent control
Authorbsamiee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides deterministic control over Claude's behavior at various lifecycle events, eliminating manual interventions and ensuring consistent, automated responses. It saves time by automating validation, formatting, and decision-making processes.
Core Features & Use Cases
- Lifecycle Automation: Configure hooks for 10 agent lifecycle events (e.g., PreToolUse, PostToolUse, PermissionRequest, SessionStart) to automate actions.
- Conditional Execution: Use matchers to filter which tool invocations or session events trigger specific hooks.
- Agent Control: Implement
commandhooks for deterministic actions (validation, formatting) orprompthooks for LLM-evaluated decisions. - Secure Scripting: Write Python 3.14+ hook scripts following strict functional and security-first design principles, ensuring reliable and safe automation.
- Use Case: Implement a
PreToolUsehook to automatically validate allWritetool calls against a security policy, blocking any attempts to modify sensitive files without explicit approval.
Quick Start
Use the hooks-builder skill to create a PreToolUse hook that validates tool inputs before execution, blocking any unsafe commands based on predefined patterns.
Dependency Matrix
Required Modules
None requiredComponents
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: hooks-builder Download link: https://github.com/bsamiee/Parametric_Portal/archive/main.zip#hooks-builder 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.