mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-21 22:10:09 +00:00
docs: 完成所有文档的中文翻译并应用到项目
This commit is contained in:
@@ -1,49 +1,49 @@
|
||||
# Agent Orchestration
|
||||
# 智能体编排 (Agent Orchestration)
|
||||
|
||||
## Available Agents
|
||||
## 可用智能体 (Available Agents)
|
||||
|
||||
Located in `~/.claude/agents/`:
|
||||
位于 `~/.claude/agents/`:
|
||||
|
||||
| Agent | Purpose | When to Use |
|
||||
| 智能体 (Agent) | 用途 | 适用场景 |
|
||||
|-------|---------|-------------|
|
||||
| planner | Implementation planning | Complex features, refactoring |
|
||||
| architect | System design | Architectural decisions |
|
||||
| tdd-guide | Test-driven development | New features, bug fixes |
|
||||
| code-reviewer | Code review | After writing code |
|
||||
| security-reviewer | Security analysis | Before commits |
|
||||
| build-error-resolver | Fix build errors | When build fails |
|
||||
| e2e-runner | E2E testing | Critical user flows |
|
||||
| refactor-cleaner | Dead code cleanup | Code maintenance |
|
||||
| doc-updater | Documentation | Updating docs |
|
||||
| planner | 实现规划 | 复杂特性、重构 |
|
||||
| architect | 系统设计 | 架构决策 |
|
||||
| tdd-guide | 测试驱动开发 (TDD) | 新特性、Bug 修复 |
|
||||
| code-reviewer | 代码审查 | 代码编写/修改后 |
|
||||
| security-reviewer | 安全分析 | 提交代码前 |
|
||||
| build-error-resolver | 修复构建错误 | 构建失败时 |
|
||||
| e2e-runner | 端到端 (E2E) 测试 | 关键用户流程 |
|
||||
| refactor-cleaner | 冗余代码清理 | 代码维护 |
|
||||
| doc-updater | 文档更新 | 更新文档 |
|
||||
|
||||
## Immediate Agent Usage
|
||||
## 立即调用智能体 (Immediate Agent Usage)
|
||||
|
||||
No user prompt needed:
|
||||
1. Complex feature requests - Use **planner** agent
|
||||
2. Code just written/modified - Use **code-reviewer** agent
|
||||
3. Bug fix or new feature - Use **tdd-guide** agent
|
||||
4. Architectural decision - Use **architect** agent
|
||||
以下情况无需用户提示即可直接调用:
|
||||
1. 复杂特性请求 - 使用 **planner** 智能体
|
||||
2. 刚刚编写/修改的代码 - 使用 **code-reviewer** 智能体
|
||||
3. Bug 修复或新特性 - 使用 **tdd-guide** 智能体
|
||||
4. 架构决策 - 使用 **architect** 智能体
|
||||
|
||||
## Parallel Task Execution
|
||||
## 并行任务执行 (Parallel Task Execution)
|
||||
|
||||
ALWAYS use parallel Task execution for independent operations:
|
||||
对于相互独立的操作,**务必**使用并行任务执行:
|
||||
|
||||
```markdown
|
||||
# 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
|
||||
# 推荐:并行执行
|
||||
并行启动 3 个智能体:
|
||||
1. 智能体 1:对 auth.ts 进行安全分析
|
||||
2. 智能体 2:对缓存系统进行性能审查
|
||||
3. 智能体 3:对 utils.ts 进行类型检查
|
||||
|
||||
# BAD: Sequential when unnecessary
|
||||
First agent 1, then agent 2, then agent 3
|
||||
# 避忌:在不必要时采用串行执行
|
||||
先启动智能体 1,然后智能体 2,最后智能体 3
|
||||
```
|
||||
|
||||
## Multi-Perspective Analysis
|
||||
## 多维度分析 (Multi-Perspective Analysis)
|
||||
|
||||
For complex problems, use split role sub-agents:
|
||||
- Factual reviewer
|
||||
- Senior engineer
|
||||
- Security expert
|
||||
- Consistency reviewer
|
||||
- Redundancy checker
|
||||
针对复杂问题,使用分角色子智能体:
|
||||
- 事实审查员 (Factual Reviewer)
|
||||
- 资深工程师 (Senior Engineer)
|
||||
- 安全专家 (Security Expert)
|
||||
- 一致性审查员 (Consistency Reviewer)
|
||||
- 冗余检查员 (Redundancy Checker)
|
||||
|
||||
Reference in New Issue
Block a user