hook-factory

Solid

Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation. Supports 10 templates across 7 event types for comprehensive workflow automation.

AI & Automation 788 stars 154 forks Updated 6 months ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
96
Recency 20%
25
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hook Factory v2.0 **Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.** ## What This Skill Does Hook Factory v2.0 is a comprehensive hook generation system with three modes: 1. **Interactive Mode** (NEW!) - 7-question guided flow with smart defaults 2. **Natural Language** - Describe what you want in plain English 3. **Template Mode** - Direct generation from 10 production templates **Key Features:** - **Interactive Q&A** - 7 questions with validation and smart defaults - **Automated Installation** - Python and Bash installers with backup/rollback - **Enhanced Validation** - Secrets detection, event-specific rules, command validation - **10 Templates** - Covering 7 event types (PostToolUse, SubagentStop, SessionStart, PreToolUse, UserPromptSubmit, Stop, PrePush) - **Comprehensive Safety** - Tool detection, silent failure, atomic operations - **macOS/Linux Support** - Production-ready for Unix environments ## When to Use This Skill Use hook-factory when you want to: - Auto-format code after editing - Automatically stage files with git - Run tests when agents complete - Load project context at session start - Create custom workflow automation - Learn how hooks work through examples ## Capabilities ### Three Generation Modes **1. Interactive Mode (Recommended)** ```bash python3 hook_factory.py -i ``` - 7-question guided flow - Smart defaults based on event type - Input validation and safety warnings - ...

Details

Author
alirezarezvani
Repository
alirezarezvani/claude-code-skill-factory
Created
7 months ago
Last Updated
6 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category