Files
everything-claude-code/docs/zh-CN/rules/common/agents.md

53 lines
1.4 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.
# 智能体编排
## 可用智能体
位于 `~/.claude/agents/` 中:
| 智能体 | 用途 | 使用时机 |
|-------|---------|-------------|
| planner | 实现规划 | 复杂功能、重构 |
| architect | 系统设计 | 架构决策 |
| tdd-guide | 测试驱动开发 | 新功能、错误修复 |
| code-reviewer | 代码审查 | 编写代码后 |
| security-reviewer | 安全分析 | 提交前 |
| build-error-resolver | 修复构建错误 | 构建失败时 |
| e2e-runner | 端到端测试 | 关键用户流程 |
| refactor-cleaner | 清理死代码 | 代码维护 |
| doc-updater | 文档 | 更新文档时 |
## 即时智能体使用
无需用户提示:
1. 复杂的功能请求 - 使用 **planner** 智能体
2. 刚编写/修改的代码 - 使用 **code-reviewer** 智能体
3. 错误修复或新功能 - 使用 **tdd-guide** 智能体
4. 架构决策 - 使用 **architect** 智能体
## 并行任务执行
对于独立操作,**始终**使用并行任务执行:
```markdown
# 良好:并行执行
同时启动 3 个智能体:
1. 智能体 1认证模块的安全分析
2. 智能体 2缓存系统的性能审查
3. 智能体 3工具类的类型检查
# 不良:不必要的顺序执行
先智能体 1然后智能体 2最后智能体 3
```
## 多视角分析
对于复杂问题,使用拆分角色的子智能体:
* 事实审查员
* 高级工程师
* 安全专家
* 一致性审查员
* 冗余检查器