首页 / 技能与插件 / 其他

hook-development

Claude Code 技能未实测

「hook-development」是 anthropics 发布的Claude Code 技能(Skill),归入「其他」分类。源码托管在 GitHub 仓库 anthropics/claude-plugins-official(43.7k 星,Apache-2.0 许可),最近更新于 2026-10-22。将技能目录复制到 ~/.claude/skills/ 即可在所有项目中使用。

作者原文描述:

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides

安装

把技能目录复制到个人技能目录(或项目内的 .claude/skills/):

git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git /tmp/claude-plugins-official
cp -r /tmp/claude-plugins-official/plugins/plugin-dev/skills/hook-development ~/.claude/skills/

命令由仓库/注册表元数据推导,未经实测;安装前请阅读源码并确认可信。 详见 如何安装 Skill。

信息

源码https://github.com/anthropics/claude-plugins-official/tree/main/plugins/plugin-dev/skills/hook-development
GitHub Stars43.7k (所在仓库)
许可证Apache-2.0
最近更新2026-10-22
分类其他