create-hooks

Community

Automate Claude Code with event-driven hooks.

Authorronnycoding
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill eliminates the need for manual, repetitive tasks and provides deterministic control over Claude Code's lifecycle, ensuring consistent behavior and security.

Core Features & Use Cases

  • Automated Code Formatting: Automatically run tools like Prettier or Black after Claude Code edits files.
  • File Protection & Validation: Block modifications to sensitive files or validate commands before execution.
  • Session Logging & Cleanup: Log session starts/ends, or clean up temporary files after tool use.
  • Use Case: Configure a PostToolUse hook to automatically format all JavaScript/TypeScript files whenever Claude Code makes an edit, ensuring consistent code style without manual intervention.

Quick Start

Create a hook to automatically run prettier --write on any .js or .ts file after Claude Code edits it.

Dependency Matrix

Required Modules

jqprettier

Components

Standard package

💻 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: create-hooks
Download link: https://github.com/ronnycoding/.claude/archive/main.zip#create-hooks

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.