cc-hooks-creator

Create and configure deterministic Claude Code hooks for tool lifecycle events.

3|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/hongbietcode/synthetic-claude --skill cc-hooks-creator-hongbietcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cc-hooks-creator
Source: https://github.com/hongbietcode/synthetic-claude/tree/main/plugins/dev-tools/skills/cc-hooks-creator
Command: npx skills add https://github.com/hongbietcode/synthetic-claude --skill cc-hooks-creator-hongbietcode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps users create, configure, and debug Claude Code hooks to automate lifecycle events, ensuring deterministic behavior across tool calls and prompts.

Core Features & Use Cases

  • Create and manage hooks for PreToolUse, PostToolUse, PermissionRequest, Stop, and SessionStart to automate workflows.
  • Support Bash command hooks as well as prompt-based hooks for intelligent decision-making, with matcher patterns and timeouts.
  • Integrate with global and project-specific settings, plugin hooks, and references to learn best practices.

Quick Start

Open the hooks editor, add a new matcher for a target tool (for example Bash or Edit/Write), add a hook with a simple command or prompt, save your configuration, and test by running Claude Code against a sample action to verify the hook executes.

Frequently Asked Questions about cc-hooks-creator

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

FAQPage Schema
How do I automate Claude Code tool lifecycle events with hooks?

You can automate Claude Code tool lifecycle events by configuring deterministic shell hooks. This enables automated workflows across PreToolUse, PostToolUse, Stop, and SessionStart events using specific matcher patterns and commands.

How do I set up a PreToolUse hook for Bash commands in Claude Code?

To set up a PreToolUse hook, open the hooks editor, add a new matcher for the Bash tool, configure a simple command or prompt, save the settings, and test it by running Claude Code against a sample action. Timeout settings ensure reliable execution.

Can I use prompt-based hooks for complex decisions in Claude Code?

Yes, Claude Code supports prompt-based hooks for intelligent decision-making alongside standard Bash command hooks. This allows you to handle complex logic by integrating matcher patterns and optional project or plugin settings.

What are Claude Code matcher patterns and why do they matter for hook configuration?

Matcher patterns target specific tools like Bash or Edit to trigger hooks reliably. Defining clear matchers ensures deterministic behavior across tool calls and prompts, preventing unintended executions during automated workflows.

Does Claude Code support plugin integrations for custom hooks?

Yes, Claude Code hooks support plugin integrations alongside global and project-specific settings. You can reference these integrations to apply best practices and ensure hooks function reliably across different environments.

Why are my Claude Code hooks not executing reliably during tool calls?

Unreliable hook execution often stems from unclear matcher patterns or missing timeout settings. Ensure your command or prompt hooks have clear matchers for target tools and proper project configurations to maintain deterministic behavior.