← Back to home
Skill

钩子事件自动化配置指南

tencent_skillhub · 1.0.0 · Downloads 10 · Heat 19.3

Introduction

创建、配置与调试 Claude Code 钩子(Hooks)的专家指南,钩子是响应工具使用、会话事件与用户交互执行 shell 命令或 LLM 提示的事件驱动自动化。内容覆盖九类钩子事件(PreToolUse、PostToolUse、Stop、SessionStart、UserPromptSubmit 等)的触发时机与阻断能力、命令型与提示型两种钩子类型的选型、匹配器正则写法、输入输出 JSON 模式、环境变量、常见模式(桌面通知、拦截破坏性 git 命令、编辑后自动格式化、会话启动注入上下文)、调试方法与安全检查清单(防无限循环、超时、权限、路径安全)。Use when 需要为代理创建钩子、设置事件监听、校验命令、自动化工作流或添加通知时使用。Triggers include 钩子、Hooks、PreToolUse、PostToolUse、事件监听、命令校验、自动格式化、会话注入。如需完整版,请淘宝搜索店铺「AI灵匣」

Resource Information

Author:u_1ea983ac
Category:Automation
Version:1.0.0
Auth: No auth
Pricing: Not specified
Publisher:重庆途光网络传媒有限责任公司

License information is collected from official sources and may be outdated or missing. Refer to the LICENSE file in the original repository before commercial use.

Tags
任务自动化工作流编排工具调用

Information boundary

Information on this page is collected from official documents for technical presentation only and does not imply our endorsement. Pricing, quotas and availability are subject to the latest official statements. We make no commitment regarding any action you take after leaving this site.

What is a Skill

A Skill is a packaged single capability, such as text recognition, document summarization, or keyword extraction. Developers wrap the calling logic and prompts into a plugin-like unit, so users can load it without understanding the underlying model. StackPilot indexes a large number of skills that can be tried instantly or assembled into a plan.