create-hook

Create and validate custom Claude hooks for project tooling.

1|Updated Oct 9, 2018
One-click install
npx skills add https://github.com/Apostolos-Delis/Dotfiles --skill create-hook-apostolos-delis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-hook
Source: https://github.com/Apostolos-Delis/Dotfiles/tree/main/.agents/skills/create-hook
Command: npx skills add https://github.com/Apostolos-Delis/Dotfiles --skill create-hook-apostolos-delis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating and validating custom hooks for the Claude AI assistant, enabling more sophisticated and automated interactions with your development environment.

Core Features & Use Cases

  • Environment Analysis: Automatically detects project tooling (TypeScript, Prettier, ESLint, Python, Ruby, Git) to suggest relevant hooks.
  • Hook Configuration: Guides the user through defining hook triggers, tools, scope, and Claude integration.
  • Automated Creation & Validation: Creates hook scripts and registers them, then tests both successful and error scenarios.
  • Use Case: You're working on a Python project and want Claude to automatically run black and ruff after you save a file. This Skill can analyze your project, suggest the appropriate PostToolUse hooks, and create the necessary scripts and configurations.

Quick Start

Use the create-hook skill to set up a PostToolUse hook for formatting Python files.

Frequently Asked Questions about create-hook

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

FAQPage Schema
How do I automate Claude hook creation for my project?

Automating Claude hook creation involves analyzing your project configurations for TypeScript, Prettier, ESLint, Python, Ruby, or Git to suggest environment-specific hooks. This process defines trigger timing, tool matching, and response handling, then registers and validates the executable scripts.

Can I automatically run Python formatting tools when Claude edits files?

Yes, you can configure PostToolUse hooks to automatically run Python formatting tools like black and ruff after file edits. The Skill analyzes your Python project and creates the necessary scripts to trigger these tools automatically.

What is the best way to validate custom Claude hooks before deploying them?

Validating custom Claude hooks requires testing both successful and error scenarios to ensure correct functionality. The Skill creates hook scripts and registers them, then automatically executes tests covering both happy and sad paths to verify reliable behavior.

Does Claude hook configuration support TypeScript and ESLint project environments?

Yes, Claude hook configuration supports TypeScript and ESLint environments by analyzing project tooling configurations. It suggests relevant hooks based on the detected environment, ensuring the generated scripts align with your specific formatting and linting requirements.

How do I define trigger timing and blocking behavior for Claude hooks?

Defining trigger timing and blocking behavior for Claude hooks is done by specifying hook parameters during setup. The Skill guides you through configuring tool matching, scope, response handling, and file filtering to control when and how hooks execute.

Why are my custom Claude hooks not executing properly after registration?

Claude hooks may not execute properly if the scripts are not registered correctly or lack executable permissions. The Skill ensures hooks are properly registered and validates both successful and error scenarios to confirm they function correctly.