·create-hooks
!

create-hooks

ronnycoding/.claude

使用正确的配置、shell 命令、事件处理和安全实践创建 Claude Code 挂钩的指南。当用户想要创建挂钩、自动化工作流程、添加事件处理程序、自动格式化代码、保护文件、记录操作或提及创建/配置/构建挂钩时使用。

4安装·0热度·@ronnycoding

安装

$npx skills add https://github.com/ronnycoding/.claude --skill create-hooks

SKILL.md

This skill helps you create Claude Code hooks - user-defined shell commands that execute at specific points in Claude Code's lifecycle. Hooks provide deterministic control over behavior rather than relying on LLM decisions.

PreToolUse When: Before tool calls execute Can block: Yes (exit code 2) Use for:

PostToolUse When: After tool calls complete Can block: No Use for:

使用正确的配置、shell 命令、事件处理和安全实践创建 Claude Code 挂钩的指南。当用户想要创建挂钩、自动化工作流程、添加事件处理程序、自动格式化代码、保护文件、记录操作或提及创建/配置/构建挂钩时使用。 来源:ronnycoding/.claude。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/ronnycoding/.claude --skill create-hooks
分类
!安全工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 create-hooks?

使用正确的配置、shell 命令、事件处理和安全实践创建 Claude Code 挂钩的指南。当用户想要创建挂钩、自动化工作流程、添加事件处理程序、自动格式化代码、保护文件、记录操作或提及创建/配置/构建挂钩时使用。 来源:ronnycoding/.claude。

如何安装 create-hooks?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ronnycoding/.claude --skill create-hooks 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/ronnycoding/.claude