mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-13 18:03:27 +08:00
* docs: add Chinese versions docs * update --------- Co-authored-by: neo <neo.dowithless@gmail.com>
1.4 KiB
1.4 KiB
智能体编排
可用智能体
位于 ~/.claude/agents/ 中:
| 智能体 | 用途 | 使用时机 |
|---|---|---|
| planner | 实现规划 | 复杂功能、重构 |
| architect | 系统设计 | 架构决策 |
| tdd-guide | 测试驱动开发 | 新功能、错误修复 |
| code-reviewer | 代码审查 | 编写代码后 |
| security-reviewer | 安全分析 | 提交前 |
| build-error-resolver | 修复构建错误 | 构建失败时 |
| e2e-runner | 端到端测试 | 关键用户流程 |
| refactor-cleaner | 清理死代码 | 代码维护 |
| doc-updater | 文档 | 更新文档时 |
即时智能体使用
无需用户提示:
- 复杂的功能请求 - 使用 planner 智能体
- 刚编写/修改的代码 - 使用 code-reviewer 智能体
- 错误修复或新功能 - 使用 tdd-guide 智能体
- 架构决策 - 使用 architect 智能体
并行任务执行
对于独立操作,始终使用并行任务执行:
# GOOD: Parallel execution
Launch 3 agents in parallel:
1. Agent 1: Security analysis of auth.ts
2. Agent 2: Performance review of cache system
3. Agent 3: Type checking of utils.ts
# BAD: Sequential when unnecessary
First agent 1, then agent 2, then agent 3
多视角分析
对于复杂问题,使用拆分角色的子智能体:
- 事实审查员
- 高级工程师
- 安全专家
- 一致性审查员
- 冗余检查器