hook-optimization

Community

Boost Claude hooks with caching and budgets.

Authorduongdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides guidance for optimizing CCPM's Claude Code hooks to ensure high performance, token efficiency, and reliable execution.

Core Features & Use Cases

  • Performance targets: <5s for UserPromptSubmit, <1s for PreToolUse, <5s for Stop hooks.
  • Optimization strategies: Cached agent discovery, contextual injection, progressive disclosure, and fast-path decisions.
  • Token budgets: Enforce token limits per hook to keep interactions snappy and affordable.

Quick Start

Enable caching and token budgets in the configuration and start using optimized hooks for faster responses.

Dependency Matrix

Required Modules

bashjq

Components

scripts

💻 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-optimization
Download link: https://github.com/duongdev/ccpm/archive/main.zip#hook-optimization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository