Files
everything-claude-code/rules/zh/hooks.md
xingzihai 3f5e042b40 feat: add Chinese (zh-CN) translation for rules/common
- Add rules/zh/ directory with complete Chinese translations
- Translate all 10 common rule files:
  - coding-style.md
  - security.md
  - testing.md
  - git-workflow.md
  - performance.md
  - patterns.md
  - hooks.md
  - agents.md
  - development-workflow.md
  - code-review.md
- Add README.md for the zh directory explaining structure and installation
- Maintain consistent formatting with original English versions
- Keep technical terms and code examples in English where appropriate
2026-03-26 01:38:39 +00:00

724 B

钩子系统

钩子类型

  • PreToolUse:工具执行前(验证、参数修改)
  • PostToolUse:工具执行后(自动格式化、检查)
  • Stop:会话结束时(最终验证)

自动接受权限

谨慎使用:

  • 为可信、定义明确的计划启用
  • 探索性工作时禁用
  • 永远不要使用 dangerously-skip-permissions 标志
  • 改为在 ~/.claude.json 中配置 allowedTools

TodoWrite 最佳实践

使用 TodoWrite 工具:

  • 跟踪多步骤任务的进度
  • 验证对指令的理解
  • 启用实时引导
  • 显示细粒度的实现步骤

待办列表揭示:

  • 顺序错误的步骤
  • 缺失的项目
  • 多余的不必要项目
  • 错误的粒度
  • 误解的需求