hook-management

Session-scoped hook lifecycle management with enable/disable/status controls, execution profiling, and color-coded performance alerts.

509 stars

Best use case

hook-management is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Session-scoped hook lifecycle management with enable/disable/status controls, execution profiling, and color-coded performance alerts.

Teams using hook-management should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/hook-management/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/claudekit/skills/hook-management/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/hook-management/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How hook-management Compares

Feature / Agenthook-managementStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Session-scoped hook lifecycle management with enable/disable/status controls, execution profiling, and color-coded performance alerts.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Hook Management

## Overview

Session-scoped hook lifecycle management for ClaudeKit's event-driven hook system. Provides enable/disable/status controls with execution profiling and performance alerts.

## Hook Types

### PreToolUse Hooks
- **file-guard**: Blocks sensitive file access (195+ patterns)

### PostToolUse Hooks
- **typecheck-changed**: Type checking on modified files
- **lint-changed**: Linting on modified files
- **test-changed**: Testing related to modified files
- **check-comment-replacement**: Detects code replaced with comments
- **check-unused-parameters**: Detects unused function parameters

### UserPromptSubmit Hooks
- **codebase-map**: Invisible project context injection
- **thinking-level**: Reasoning enhancement (4 levels)

### Stop/SubagentStop Hooks
- **create-checkpoint**: Git-backed state snapshot
- **typecheck-project**: Full project type checking
- **lint-project**: Full project linting
- **test-project**: Full test suite execution
- **self-review**: Comprehensive change review

## Session Isolation

All hook changes are session-scoped. Disabling a hook only affects the current session and does not persist.

## Profiling

- Red alert: execution time > 5s
- Yellow warning: execution time > 3s
- Green: execution time < 3s
- Output size monitoring: flag > 10KB

## Commands

- `/hook:enable [hookName]` -- Enable a disabled hook
- `/hook:disable [hookName]` -- Disable a hook for this session
- `/hook:status` -- Show all hook states and profiling data

## When to Use

- When a hook is causing issues during a session
- To check performance of hook executions
- To temporarily bypass a hook for a specific operation

## Processes Used By

- `claudekit-orchestrator` (hook pipeline setup)
- `claudekit-safety-pipeline` (hook profiling)

Related Skills

react-hooks

509
from a5c-ai/babysitter

Deep expertise in React hooks patterns including custom hooks, composition, optimization, and testing strategies.

translation-management

509
from a5c-ai/babysitter

Integration with translation management systems and i18n workflows. Connect with Crowdin, Transifex, Weblate, manage translation memory, synchronize glossaries, and automate localization pipelines.

key-management-orchestrator

509
from a5c-ai/babysitter

Cryptographic key lifecycle management orchestration including generation, rotation, and destruction across key management systems

ip-core-management

509
from a5c-ai/babysitter

Vendor IP core configuration and integration expertise for FPGA designs

donor-relationship-management

509
from a5c-ai/babysitter

Cultivate and steward donor relationships including prospect research, personalized engagement strategies, gift acknowledgment, and impact reporting

change-management

509
from a5c-ai/babysitter

Skill for engineering change request and order processing through PLM systems

stormwater-management

509
from a5c-ai/babysitter

Skill for integrated stormwater management and green infrastructure design with SWMM modeling, hydrologic analysis, BMP sizing, and MS4 permit compliance.

thermal-management

509
from a5c-ai/babysitter

Vehicle and powertrain thermal management system design

influencer-kol-management

509
from a5c-ai/babysitter

Industry influencer and key opinion leader relationship management

crisis-management-platform

509
from a5c-ai/babysitter

Crisis response platform integration and real-time monitoring

social-media-management

509
from a5c-ai/babysitter

Cross-platform social media operations and analytics

marketing-project-management

509
from a5c-ai/babysitter

Marketing workflow and project management integration