Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub blueif16/amazing-claude-code-plugins --plugin skillforgeHow 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文件。
Guides creation of Claude Code plugin hooks with prompt-based and bash command types for PreToolUse, PostToolUse, Stop, and other events. Covers plugin hooks.json and settings.json formats.
Configures event-driven hooks for Claude Code to run shell commands before/after tool calls, on lifecycle events, or user prompts for automations and validations.
Guides 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.
Share bugs, ideas, or general feedback.
创建或添加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"
执行流程: