Tooluck logoTooluck
SKILL.md

hook-factory

Agent skill fromalirezarezvani/claude-code-skill-factory

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.

How to install hook-factory

install hook-factory
# install the claude-code-skill-factory pack with the skills CLI
npx skills add alirezarezvani/claude-code-skill-factory

# or add only this skill to Claude Code: copy the folder

generated-skills/hook-factory/

# into

~/.claude/skills/hook-factory/ (all projects)

.claude/skills/hook-factory/ (one project)

generated-skills/hook-factory/SKILL.md

MITFull file
1# Hook Factory v2.0
2
3**Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.**
4
5## What This Skill Does
6
7Hook Factory v2.0 is a comprehensive hook generation system with three modes:
8
91. **Interactive Mode** (NEW!) - 7-question guided flow with smart defaults
102. **Natural Language** - Describe what you want in plain English
113. **Template Mode** - Direct generation from 10 production templates
12
13**Key Features:**
14- **Interactive Q&A** - 7 questions with validation and smart defaults
15- **Automated Installation** - Python and Bash installers with backup/rollback
16- **Enhanced Validation** - Secrets detection, event-specific rules, command validation
17- **10 Templates** - Covering 7 event types (PostToolUse, SubagentStop, SessionStart, PreToolUse, UserPromptSubmit, Stop, PrePush)
18- **Comprehensive Safety** - Tool detection, silent failure, atomic operations
19- **macOS/Linux Support** - Production-ready for Unix environments
20
21## When to Use This Skill
22
23Use hook-factory when you want to:
24
25- Auto-format code after editing
26- Automatically stage files with git
27- Run tests when agents complete
28- Load project context at session start
29- Create custom workflow automation
30- Learn how hooks work through examples
31
32## Capabilities
33
34### Three Generation Modes
35
36**1. Interactive Mode (Recommended)**
37```bash
38python3 hook_factory.py -i
39```
40- 7-question guided flow
41- Smart defaults based on event type
42- Input validation and safety warnings
43…

Excerpt shown under the repository's MIT license.

More skills in claude-code-skill-factory

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates