·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