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.
This commit is contained in:
Affaan Mustafa
2026-05-11 13:47:40 -04:00
committed by Affaan Mustafa
parent 922e058e68
commit 6556f20af7
19 changed files with 2772 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
---
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`,匹配文件路径
* 在部署前测试模式