hook-developer

仓库创建 2025年12月23日最近提交 6 个月前SkillHot 收录 23 天前
▸ 精选理由

对写/调试 hooks 的开发者提供准确规范与示例。

这个 Skill 做什么

完整的 Claude Code Hook 输入/输出模式、注册与测试参考。

把写 Claude Code 钩子需要的输入/输出 schema、注册方式和测试模式都梳理清楚,提供完整参考手册。当你要新建钩子、调试输入输出格式或配置 settings.json 时会用到。特别之处是把哪些钩子会阻塞、哪些只是注入上下文等行为分类说明,避免盲目试错。

▸ 展开 SKILL.md 英文原文

Complete Claude Code hooks reference - input/output schemas, registration, testing patterns

开发编程HooksSchema开发指南通用
3.9k
Stars
298
Forks
40
仓库内 Skill
+19
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/hook-developer/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/hook-developer/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Hook Developer

Complete reference for developing Claude Code hooks. Use this to write hooks with correct input/output schemas.

## When to Use

- Creating a new hook
- Debugging hook input/output format
- Understanding what fields are available
- Setting up hook registration in settings.json
- Learning what hooks can block vs inject context

## Quick Reference

| Hook | Fires When | Can Block? | Primary Use |
|------|-----------|------------|-------------|
| **PreToolUse** | Before tool executes | YES | Block/modify tool calls |
| **PostToolUse** | After tool completes | Partial | React to tool results |
| **UserPromptSubmit** | User sends prompt | YES | Validate/inject context |
| **Perm
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有