mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-11 03:43:30 +08:00
Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)"
This reverts commit 1bd68ff534.
This commit is contained in:
33
docs/zh-CN/rules/common/hooks.md
Normal file
33
docs/zh-CN/rules/common/hooks.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Hooks 系统
|
||||
|
||||
## Hook 类型
|
||||
|
||||
* **PreToolUse**:工具执行前(验证、参数修改)
|
||||
* **PostToolUse**:工具执行后(自动格式化、检查)
|
||||
* **Stop**:会话结束时(最终验证)
|
||||
|
||||
## 自动接受权限
|
||||
|
||||
谨慎使用:
|
||||
|
||||
* 为受信任、定义明确的计划启用
|
||||
* 为探索性工作禁用
|
||||
* 切勿使用 dangerously-skip-permissions 标志
|
||||
* 改为在 `~/.claude.json` 中配置 `allowedTools`
|
||||
|
||||
## TodoWrite 最佳实践
|
||||
|
||||
使用 TodoWrite 工具来:
|
||||
|
||||
* 跟踪多步骤任务的进度
|
||||
* 验证对指令的理解
|
||||
* 实现实时指导
|
||||
* 展示详细的实现步骤
|
||||
|
||||
待办事项列表可揭示:
|
||||
|
||||
* 步骤顺序错误
|
||||
* 缺失的项目
|
||||
* 额外不必要的项目
|
||||
* 粒度错误
|
||||
* 对需求的理解有误
|
||||
Reference in New Issue
Block a user