cc-hooks

Create and maintain Claude Code hooks with structured templates and references.

2|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/costa-marcello/skillkit --skill cc-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cc-hooks
Source: https://github.com/costa-marcello/skillkit/tree/main/skills/cc-hooks
Command: npx skills add https://github.com/costa-marcello/skillkit --skill cc-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Claude Code hooks can be hard to build, debug, and keep consistent across projects; cc-hooks provides a centralized reference and working templates to standardize this process.

Core Features & Use Cases

  • Definitive reference for creating and improving event-driven hooks.
  • Quick-start templates and configuration guidance for PreToolUse, PostToolUse, Stop, and SessionStart events.
  • Security and quality guidance including matcher patterns, async handling, and agent-based hooks.

Quick Start

Start by reviewing the hook templates and integrating the standard reference into your Claude Code workflow.

Frequently Asked Questions about cc-hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Claude Code hooks for PreToolUse and PostToolUse events?

You create Claude Code hooks by using structured templates and configuration guidance that standardize event-driven workflows for PreToolUse, PostToolUse, Stop, and SessionStart events. This enforces required YAML frontmatter and supports optional resources under scripts/ and references/ directories.

What are Claude Code hooks and when do I need them in my workflow?

Claude Code hooks are event-driven scripts that trigger during PreToolUse, PostToolUse, Stop, and SessionStart workflows. You need them to automate actions, enforce quality checks, and integrate CI/CD processes directly into your Claude Code sessions.

How do I debug Claude Code hooks that are not working correctly?

Debugging Claude Code hooks involves applying reference materials and best practices for async handling and matcher patterns. Structured templates help isolate issues by standardizing the hook configuration and ensuring the YAML frontmatter requirement is met.

Can I use Claude Code hooks for CI/CD integration and session automation?

Yes, Claude Code hooks support CI/CD integration and session automation through SessionStart and Stop event workflows. They provide security guidance, agent-based hook patterns, and matcher configurations to control tool execution within automated pipelines.

What is the best way to standardize Claude Code hook configuration across multiple projects?

The best way to standardize hook configuration is to use centralized reference materials and quick-start templates that enforce consistent YAML frontmatter. This ensures uniform security, quality guidance, and async handling across all project workflows.

Why do my Claude Code hooks fail due to YAML frontmatter requirements?

Claude Code hooks fail when the YAML frontmatter requirement is not met or matcher patterns are incorrectly configured. Using structured templates and reference materials enforces the required frontmatter structure and validates async handling for reliable execution.