mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-13 16:13:03 +08:00
Port the current-source-safe command documentation subset from stale PR #1687.\n\nEach copied command page maps to an English source file unchanged since the stale PR base; fastapi-review remains deferred because #1687 did not include a matching zh-CN translation.
1.1 KiB
1.1 KiB
description
| description |
|---|
| 获取关于hookify系统的帮助 |
显示完整的 hookify 文档。
Hook 系统概述
Hookify 创建与 Claude Code 的 hook 系统集成的规则文件,以防止不必要的行为。
事件类型
bash:在 Bash 工具使用时触发,匹配命令模式file:在写入/编辑工具使用时触发,匹配文件路径stop:在会话结束时触发prompt:在用户消息提交时触发,匹配输入模式all:在所有事件上触发
规则文件格式
文件存储为 .claude/hookify.{name}.local.md:
---
name: descriptive-name
enabled: true
event: bash|file|stop|prompt|all
action: block|warn
pattern: "regex pattern to match"
---
Message to display when rule triggers.
Supports multiple lines.
命令
/hookify [description]创建新规则,并在未提供描述时自动分析对话/hookify-list列出已配置的规则/hookify-configure启用或禁用规则
模式提示
- 使用正则表达式语法
- 对于
bash,匹配完整的命令字符串 - 对于
file,匹配文件路径 - 在部署前测试模式