Affaan Mustafa 6556f20af7 docs: salvage zh-CN command translations
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.
2026-05-11 14:05:38 -04:00

47 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: 获取关于hookify系统的帮助
---
显示完整的 hookify 文档。
## Hook 系统概述
Hookify 创建与 Claude Code 的 hook 系统集成的规则文件,以防止不必要的行为。
### 事件类型
* `bash`:在 Bash 工具使用时触发,匹配命令模式
* `file`:在写入/编辑工具使用时触发,匹配文件路径
* `stop`:在会话结束时触发
* `prompt`:在用户消息提交时触发,匹配输入模式
* `all`:在所有事件上触发
### 规则文件格式
文件存储为 `.claude/hookify.{name}.local.md`
```yaml
---
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`,匹配文件路径
* 在部署前测试模式