create-hooks
创建、配置和使用 Claude Code 挂钩的专家指南。在使用挂钩、设置事件侦听器、验证命令、自动化工作流程、添加通知或了解挂钩类型(PreToolUse、PostToolUse、Stop、SessionStart、UserPromptSubmit 等)时使用。
SKILL.md
Hooks are event-driven automation for Claude Code that execute shell commands or LLM prompts in response to tool usage, session events, and user interactions. This skill teaches you how to create, configure, and debug hooks for validating commands, automating workflows, injecting context, and implementing custom completion criteria.
Hooks provide programmatic control over Claude's behavior without modifying core code, enabling project-specific automation, safety checks, and workflow customization.
Hooks are shell commands or LLM-evaluated prompts that execute in response to Claude Code events. They operate within an event hierarchy: events (PreToolUse, PostToolUse, Stop, etc.) trigger matchers (tool patterns) which fire hooks (commands or prompts). Hooks can block actions, modify tool inputs, inject context, or simply observe and log Claude's operations.
创建、配置和使用 Claude Code 挂钩的专家指南。在使用挂钩、设置事件侦听器、验证命令、自动化工作流程、添加通知或了解挂钩类型(PreToolUse、PostToolUse、Stop、SessionStart、UserPromptSubmit 等)时使用。 来源:kyldvs/setup。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/kyldvs/setup --skill create-hooks- 分类
- </>开发工具
- 认证
- —
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 create-hooks?
创建、配置和使用 Claude Code 挂钩的专家指南。在使用挂钩、设置事件侦听器、验证命令、自动化工作流程、添加通知或了解挂钩类型(PreToolUse、PostToolUse、Stop、SessionStart、UserPromptSubmit 等)时使用。 来源:kyldvs/setup。
如何安装 create-hooks?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/kyldvs/setup --skill create-hooks 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/kyldvs/setup
详情
- 分类
- </>开发工具
- 来源
- user
- 收录时间
- 2026-02-01