Publish Plugins Version Bump
vinta/hal-9000
Finds which plugins in the repository changed, bumps only the ones not already bumped since origin/main, and checks that each plugin's two manifests stay in sync.
Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factory --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/generated-skills/hook-factory .claude/skills/hook-factory && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .claude/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factoryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factory --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/generated-skills/hook-factory .agents/skills/hook-factory && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .agents/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factory --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/generated-skills/hook-factory .cursor/skills/hook-factory && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .cursor/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/alirezarezvani/claude-code-skill-factory.git --path generated-skills/hook-factory--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factory --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/generated-skills/hook-factory .gemini/skills/hook-factory && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .gemini/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factoryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .github/skills && cp -r skills-src/generated-skills/hook-factory .github/skills/hook-factory && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .github/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install alirezarezvani/claude-code-skill-factory hook-factory --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/generated-skills/hook-factory .opencode/skills/hook-factory && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hook-factory" agent skill from https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/hook-factory into .opencode/skills/hook-factory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hook-factory", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hook-factoryGenerate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.
Hook Factory is an agent skill from alirezarezvani/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.
Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 38 other files (for example `README.md`, `examples/auto-format-python/README.md` and `examples/auto-format-python/hook.json`).
It sits in Agent Workflows, covering Hooks and plugins and Workflow automation. It works with Git and Python. The repository describes itself as: Claude Code Skill Factory — A powerful open-source toolkit for building and deploying production-ready Claude Skills, Code Agents, custom Slash Commands, and LLM Prompts at… The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ba18b31. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docs.claude.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hook Factory loads about 3.1k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 1,084 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from alirezarezvani/claude-code-skill-factory at commit ba18b31, republished under its MIT licence (© alirezarezvani). 1,084 words, ~3,146 tokens.
.claude/skills/hook-factory/SKILL.md (or your agent's skills folder). This skill also uses 31 other files; get the full folder from GitHub.Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.
Hook Factory v2.0 is a comprehensive hook generation system with three modes:
Key Features:
Use hook-factory when you want to:
1. Interactive Mode (Recommended)
python3 hook_factory.py -i2. Natural Language Mode
python3 hook_factory.py -r "auto-format Python files after editing"3. Template Mode (Advanced)
python3 hook_factory.py -t post_tool_use_format -l pythonFormatting & Code Quality:
Testing & Validation: 3. subagent_stop_test_runner - Run tests when agent completes 4. pre_tool_use_validation - Validate before tool execution 5. pre_push_validation - Check before git push
Session Management: 6. session_start_load_context - Load context at session start 7. stop_session_cleanup - Cleanup at session end
User Interaction: 8. user_prompt_submit_preprocessor - Pre-process user prompts 9. notify_user_desktop - Desktop notifications (macOS/Linux)
Security: 10. security_scan_code - Security scanning with semgrep/bandit
4-Layer Validation System:
NEW in v2.0:
Every generated hook includes:
Simply describe what you want the hook to do:
"I want to auto-format Python files after editing"
"Create a hook that runs tests when agents complete"
"Auto-add files to git after editing"
"Load my TODO.md at session start"If you know which template you want:
"Generate a hook using the post_tool_use_format template for JavaScript"
"Create a test runner hook for Rust""Show me all available hook templates"
"List hook templates"You: "I need a hook to auto-format my Python code after editing"
Hook Factory:
post_tool_use_formatgenerated-hooks/auto-format-code-after-editing-python/hook.json and README.mdYou: "Automatically stage files with git when I edit them"
Hook Factory:
post_tool_use_git_addgenerated-hooks/auto-add-files-to-git-after-editing/You: "Run my JavaScript tests after the agent finishes coding"
Hook Factory:
subagent_stop_test_runnergenerated-hooks/run-tests-when-agent-completes-javascript/For each hook, Hook Factory creates:
generated-hooks/
└── [hook-name]/
├── hook.json # Complete hook configuration (validated)
└── README.md # Installation guide, usage, troubleshootingValid JSON configuration ready to copy into your Claude Code settings:
{
"matcher": {
"tool_names": ["Write", "Edit"]
},
"hooks": [
{
"type": "command",
"command": "if ! command -v black &> /dev/null; then\n exit 0\nfi\n\nif [[ \"$CLAUDE_TOOL_FILE_PATH\" == *.py ]]; then\n black \"$CLAUDE_TOOL_FILE_PATH\" || exit 0\nfi",
"timeout": 60
}
]
}Comprehensive documentation including:
Using Python Installer:
cd generated-skills/hook-factory
# Install to user level (~/.claude/settings.json)
python3 installer.py install generated-hooks/[hook-name] user
# Install to project level (.claude/settings.json)
python3 installer.py install generated-hooks/[hook-name] project
# Uninstall
python3 installer.py uninstall [hook-name] user
# List installed hooks
python3 installer.py list userUsing Bash Script (macOS/Linux):
cd generated-skills/hook-factory
# Install
./install-hook.sh generated-hooks/[hook-name] user
# Features:
# - Automatic backup with timestamp
# - JSON validation before/after
# - Atomic write operations
# - Rollback on failure
# - Keeps last 5 backupsAuto-Install from Interactive Mode:
Review Generated Files
cd generated-hooks/[hook-name]
cat README.md
cat hook.jsonManual Installation
.claude/settings.json (project) or ~/.claude/settings.json (user)hook.jsonVerify
~/.claude/logs/Every hook is validated for:
~/.claude/logs/ if hooks aren't workingPlatform Support:
Customization:
Template System:
Core Files:
SKILL.md - This manifest filehook_factory.py - Main orchestrator with CLI interface (687 lines)generator.py - Template substitution and hook generationvalidator.py - Enhanced validation engine (700+ lines)templates.json - 10 production hook templatesREADME.md - Skill usage guide and examplesNEW in v2.0:
installer.py - Automated installation system (536 lines)install-hook.sh - Bash installation script (148 lines)examples/ - 10 reference examples (10 folders × 2 files)Interactive Mode Flow:
User: python3 hook_factory.py -i
↓
[7-Question Flow with Smart Defaults]
↓
[Template Selection]
↓
[Variable Substitution]
↓
[4-Layer Validation]
↓
[File Generation]
↓
[Optional: Auto-Install via installer.py]
↓
Generated Hook in generated-hooks/ + InstalledNatural Language Flow:
User Request
↓
[Keyword Matching]
↓
[Template Selection]
↓
[Variable Substitution]
↓
[4-Layer Validation]
↓
[File Generation]
↓
Generated Hook in generated-hooks/Installation Flow:
Hook Folder
↓
[installer.py or install-hook.sh]
↓
[Backup settings.json]
↓
[Load + Validate JSON]
↓
[Merge Hook]
↓
[Atomic Write (temp → rename)]
↓
[Validate Result]
↓
✅ Installed (or ❌ Rollback)The examples/ directory contains reference implementations:
examples/
├── auto-format-python/ # PostToolUse format example
├── git-auto-add/ # PostToolUse git example
├── test-runner/ # SubagentStop test example
└── load-context/ # SessionStart context exampleEach example includes working hook.json and README.md files you can copy directly.
To add new hook patterns:
templates.jsongenerator.pyexamples/Generated by Claude Code Skills Factory Last Updated: 2025-10-30
© alirezarezvani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 31 other files in generated-skills/hook-factory of alirezarezvani/claude-code-skill-factory.
Open the folder on GitHubat commit ba18b31
Hook Factory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hook Factory this skillalirezarezvani/claude-code-skill-factory | 880 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Publish Plugins Version Bumpvinta/hal-9000 | 138 | — | ~1k | Automated safety check: Pass | MIT | |
| Rule Catalogathola/claude-night-market | 341 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Faq Shortcutskishormorol/cli-faq-shortcuts | 127 | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Rpa Initcoddy-project/coddy-agent | 167 | — | ~728 | Automated safety check: Pass | MIT | |
| Hns Moaiadk Dev Referencemodu-ai/moai-adk | 1.2k | — | ~937 | Automated safety check: Pass | Apache-2.0 |
vinta/hal-9000
Finds which plugins in the repository changed, bumps only the ones not already bumped since origin/main, and checks that each plugin's two manifests stay in sync.
athola/claude-night-market
Browse hookify rule catalog. An agent skill from athola/claude-night-market.
kishormorol/cli-faq-shortcuts
Turn the questions and instructions a user keeps typing into a project into short slash-command skills, mined from their real Claude Code, Codex and Cursor session history and git log.
coddy-project/coddy-agent
Run when the user invokes /rpa-init or asks to onboard or warm up context on a repository.
modu-ai/moai-adk
moai-adk-go local dev reference — version management/release process (sec 5), shell-script hook development (sec 7), build & dev commands (sec 10).
AIOSAI/AIPass
Session wrap-up. An agent skill from AIOSAI/AIPass.
alirezarezvani/claude-code-skill-factory
Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store
alirezarezvani/claude-code-skill-factory
Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization.
alirezarezvani/claude-code-skill-factory
Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven…
alirezarezvani/claude-code-skill-factory
Comprehensive Test Driven Development guide for engineering subagents with multi-framework support, coverage analysis, and intelligent test generation
alirezarezvani/claude-code-skill-factory
Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns
alirezarezvani/claude-code-skill-factory
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
Categories
Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation. Hook Factory is an agent skill from alirezarezvani/claude-code-skill-factory. Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation.
Hook Factory fits situations like: tasks that involve Hooks and plugins; tasks that involve Workflow automation.
Run `npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a claude-code`. Or copy the skill folder (generated-skills/hook-factory in alirezarezvani/claude-code-skill-factory) into .claude/skills/hook-factory in your project. Claude Code loads it when a task matches its description.
Run `npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a codex`. Or copy the skill folder (generated-skills/hook-factory in alirezarezvani/claude-code-skill-factory) into .agents/skills/hook-factory in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alirezarezvani/claude-code-skill-factory --skill hook-factory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hook-factory, .gemini/skills/hook-factory, .github/skills/hook-factory and .opencode/skills/hook-factory in your project.
Going by SKILL.md and its folder, Hook Factory needs the command-line tools its instructions call (python3). Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: docs.claude.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hook Factory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hook Factory: Publish Plugins Version Bump (vinta/hal-9000, 138 stars), Rule Catalog (athola/claude-night-market, 341 stars), Faq Shortcuts (kishormorol/cli-faq-shortcuts, 127 stars) and Rpa Init (coddy-project/coddy-agent, 167 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
alirezarezvani (a GitHub user) maintains it in alirezarezvani/claude-code-skill-factory, which has 880 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on November 12, 2025.
Source: alirezarezvani/claude-code-skill-factory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.