How this skill is triggered — by the user, by Claude, or both
Slash command
/skillforge:create-hookThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
创建或添加event hooks到插件的hooks.json文件。
创建或添加event hooks到插件的hooks.json文件。
检查当前目录是否存在 .claude/ 目录
├─ 找到 → 继续到步骤3
└─ 未找到 → 进入步骤2(同create-skill的自动初始化)
与create-skill相同的初始化流程。
询问用户:
"Hook事件类型?"
"匹配模式?" (例如: "Bash", "Edit|Write", "*")
"要执行的命令?"
.claude/hooks/hooks.json
"Bash" - 仅匹配Bash工具"Edit|Write" - 匹配Edit或Write工具"*" - 匹配所有工具✅ Hook已添加到 {event}
📁 位置: ./.claude/hooks/hooks.json
🚀 该hook立即生效
用户: "添加一个auto-format hook"
执行流程:
npx claudepluginhub blueif16/amazing-claude-code-plugins --plugin skillforgeGuides development of event-driven hooks for Claude Code plugins using prompt-based and command-based configurations in hooks.json for events like PreToolUse, PostToolUse, Stop, and SessionStart to validate tools and automate workflows.
Guides creating Node.js .cjs hook scripts for Claude Code plugins: hooks.json config, events like PreToolUse, stdio processing, timeouts, paths, and testing.
Guides creation and configuration of Claude Code hooks for event-driven automation, validation, and workflow customization using PreToolUse, PostToolUse, Stop, and other events.