hook-conventions
CommunityEnforce safe lifecycle hooks and scripts
Authorzcawood-mie
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Defines conventions and guardrails for agent lifecycle hooks and their scripts so teams can deterministically enforce safety, prevent dangerous operations, and standardize hook behavior across environments.
Core Features & Use Cases
- Lifecycle Mapping: Documents events like PreToolUse, PostToolUse, SessionStart, UserPromptSubmit and their expected uses.
- Script Guidance: Specifies input/output contracts (JSON stdin/stdout), exit code semantics, timeout expectations, and fault-tolerant practices for hook scripts.
- Governance & Safety: Provides rules and example scripts to block destructive git commands, require approvals for hook edits, and auto-format or scan outputs after tools run.
- Use Case: Validate and enforce project hooks to block force-pushes, scan diffs for secrets before push, and auto-format files after modifications.
Quick Start
Use the hook-conventions skill to audit and validate your project's hooks configuration and scripts before running any tool.
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: hook-conventions Download link: https://github.com/zcawood-mie/agentz/archive/main.zip#hook-conventions 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.