SkillsLib.ai

Hook Developer

Build Claude Code hooks with correct schemas, registration, and testing patterns

4.4(46 reviews)
1,000+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

Create, debug, and test Claude Code hooks with confidence using comprehensive schema documentation and registration patterns. You'll understand the lifecycle of each hook type, their blocking capabilities, and how to structure inputs and outputs correctly. This skill covers all hook types from PreToolUse to SubagentStop, helping you implement the right hook for your automation use case.

Features

Complete hook lifecycle reference

understand when each hook fires, blocking capabilities, and primary use cases

Input/output schema documentation

precise JSON structures for PreToolUse, PostToolUse, UserPromptSubmit, PermissionRequest, and all event hooks

Registration setup guide

configure hooks in settings.json with correct syntax and hook type options (command vs prompt)

Hook blocking patterns

learn which hooks can block execution and how to implement permission decisions or tool modifications

Testing and debugging patterns

validate hook inputs/outputs and diagnose schema mismatches

Context injection workflows

use hooks to load context, set environment variables, and coordinate subagents

Permission request handling

auto-approve, deny, or modify permissions based on tool execution context

Example Output

PreToolUse Hook Example:

code
{
  "hookSpecificOutput": {
    "hookEventName": "PreToolUse",
    "permissionDecision": "allow",
    "modifiedToolInput": {
      "file_path": "/safe/path/file.txt",
      "command": "cat"
    }
  },
  "output": "Tool execution approved and sanitized"
}

UserPromptSubmit Hook Example:

code
{
  "hookSpecificOutput": {
    "hookEventName": "UserPromptSubmit",
    "permissionDecision": "allow",
    "injectedSystemContext": "User has elevated permissions. Session started at 2024-01-15."
  },
  "output": "Prompt accepted with injected context"
}

SessionStart Hook Example:

code
{
  "hookSpecificOutput": {
    "hookEventName": "SessionStart",
    "environmentVariables": {
      "PROJECT_ROOT": "/workspace",
      "API_KEY": "***"
    }
  },
  "output": "Environment initialized"
}

What's Included

  • hook-developer SKILL.md: comprehensive reference with all hook types and schemas
  • Hook lifecycle table: quick reference showing which hooks can block, inject context, or react to events
  • Input/output schema templates: JSON structures for each hook type (PreToolUse, PostToolUse, UserPromptSubmit, PermissionRequest, SessionStart, SessionEnd, Stop, SubagentStart, SubagentStop, PreCompact, Notification)
  • Registration checklist: settings.json configuration patterns and hook type options (command vs prompt)
  • Testing patterns: validation scripts and debugging workflows for hook execution

Who It's For

  • DevOps engineers building automation hooks for Claude Code
  • Platform engineers implementing permission and context management systems
  • Backend developers integrating Claude into multi-agent architectures
  • AI/ML engineers coordinating subagent execution and lifecycle events
  • Systems architects designing hook-based approval and validation workflows

Best For

  • Blocking or modifying tool execution before it runs
  • Validating user prompts and injecting context dynamically
  • Handling permission requests and auto-approval workflows
  • Coordinating session lifecycle (startup cleanup, environment setup)
  • Managing subagent execution and forcing continuation logic
  • Debugging hook input/output schema mismatches
  • Building notification and alerting systems

You might also like

Slash Commands
$35
Tooling4.5(50)
Slash Commands

You can create reusable slash commands that execute instantly in Claude Code conversations. Commands support bash execution, file references, arguments, and tool permissions. Use built-in commands like /cost, /review, /memory, and /clear, or define custom project and personal commands stored in .claude/commands/ or ~/.claude/commands/.

Screenpipe Cli
$45
Tooling4.4(50)
Screenpipe Cli

You can create, list, enable, disable, and run markdown-based AI automation pipes that execute on schedules ranging from every 30 minutes to custom cron expressions. Manage service connections to Telegram, Slack, Discord, and other platforms directly from the CLI, and troubleshoot pipe execution with built-in logging and debugging commands.

Bid Assembly & Analysis for Preconstruction Estimates
$40
Bid Assembly & Analysis for Preconstruction Estimates

You can rapidly process multiple subcontractor bid responses—from trade contractors, material suppliers, and specialty vendors—into a cohesive, auditable estimate structure. Claude extracts key bid components, identifies pricing inconsistencies against benchmarks or prior projects, flags scope gaps and exclusions, and organizes everything by CSI division for seamless estimate assembly. This eliminates manual spreadsheet comparison and reduces the risk of overlooked scope omissions or pricing anomalies when managing 15+ concurrent bids.

Shapely Compute
$30
Shapely Compute

You can construct geometric objects (points, lines, polygons, multigeometries), execute boolean operations (intersection, union, difference), apply spatial predicates (contains, intersects, within), calculate measurements (area, length, distance, centroid), and transform geometries through translation, rotation, and scaling. This skill handles geometry validation, invalid geometry repair, and complex spatial analysis tasks.

Construction Estimate Analysis & Refinement
$35
Estimating4.0(34)
Construction Estimate Analysis & Refinement

You can systematically analyze construction estimates by breaking down components, validating labor and material pricing against market data, identifying embedded errors or outdated assumptions, and applying data-driven contingency allocation. Claude helps you produce risk-adjusted cost projections that are defensible to stakeholders and competitive in bid scenarios, reducing estimate variance and catching pricing gaps before client submission.

Math
$35
Math

Solve algebraic and transcendental equations, compute derivatives and integrals, perform matrix operations, simplify expressions, compute limits and series expansions, solve differential equations, and convert units. Claude automatically selects the best computational engine for your problem—SymPy for symbolic math, Z3 for logical proofs, Pint for unit conversion—so you get fast, verified answers without manual tool selection.

Bid Assembly & Proposal Generation for Estimators
$30
Bid Assembly & Proposal Generation for Estimators

You can transform fragmented cost data, subcontractor quotes, and contingency calculations into cohesive, defensible bid packages that stakeholders understand and trust. This skill guides you through hierarchical cost aggregation, dynamic contingency modeling based on project risk, multi-tier markup application, and narrative integration that links scope assumptions to pricing—enabling you to develop competitive proposals with justified pricing strategies.

Implement Task
$35
Full-Stack4.6(48)
Implement Task

You can deploy this agent to execute specific implementation tasks within a larger development plan. It operates independently with fresh context, follows test-driven development principles for every code change, and creates comprehensive handoff documentation that captures progress, decisions, and learnings for the next task executor. This ensures consistent code quality, prevents rework, and maintains continuity across distributed implementation efforts.

$28.00$35.00