Loading...
Loading...
Compare original and translation side by side
/agents/agentsmkdir -p .claude/agents
cat > .claude/agents/reviewer.md << 'EOF'
---
name: reviewer
description: Code review specialist. Use proactively after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
You are a senior code reviewer focusing on quality and security.mkdir -p .claude/agents
cat > .claude/agents/reviewer.md << 'EOF'
---
name: reviewer
description: Code review specialist. Use proactively after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
You are a senior code reviewer focusing on quality and security.undefinedundefinedclaude --agents '{
"reviewer": {
"description": "Code reviewer",
"prompt": "Review for quality and security",
"tools": ["Read", "Bash"],
"model": "sonnet"
}
}'claude --agents '{
"reviewer": {
"description": "Code reviewer",
"prompt": "Review for quality and security",
"tools": ["Read", "Bash"],
"model": "sonnet"
}
}'---
name: agent-name
description: When/why to use this agent
tools: Read, Edit, Bash # Optional, inherits all if omitted
model: sonnet # sonnet, haiku, claude-opus-4-5-20251101, inherit
---
System prompt content here...---
name: agent-name
description: When/why to use this agent
tools: Read, Edit, Bash # Optional, inherits all if omitted
model: sonnet # sonnet, haiku, claude-opus-4-5-20251101, inherit
---
System prompt content here...| Field | Required | Options |
|---|---|---|
| Yes | lowercase, hyphens |
| Yes | When to use |
| No | Tool list (inherits all if omitted) |
| No | |
| 字段 | 是否必填 | 可选值 |
|---|---|---|
| 是 | 小写字母、连字符 |
| 是 | 使用场景说明 |
| 否 | 工具列表(若省略则继承所有工具) |
| 否 | |
| Agent | Model | Tools | Purpose |
|---|---|---|---|
| General-purpose | Sonnet | All | Complex multi-step tasks |
| Plan | Sonnet | Read-only | Plan mode research |
| Explore | Haiku | Read-only | Fast codebase search |
| 代理 | 模型 | 工具 | 用途 |
|---|---|---|---|
| 通用型 | Sonnet | 全部 | 复杂多步骤任务 |
| 规划型 | Sonnet | 只读 | 规划模式研究 |
| 探索型 | Haiku | 只读 | 快速代码库搜索 |
| Model | Speed | Best For |
|---|---|---|
| Haiku | Fastest | Search, quick lookups |
| Sonnet | Fast | Most tasks (default) |
| Opus | Slower | Complex reasoning |
| 模型 | 速度 | 最佳适用场景 |
|---|---|---|
| Haiku | 最快 | 搜索、快速查询 |
| Sonnet | 快 | 大多数任务(默认) |
| Opus | 较慢 | 复杂推理 |
undefinedundefinedundefinedundefined---
name: code-reviewer
description: Reviews code for quality and security. Use after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
Review code for:
- Security vulnerabilities
- Code quality issues
- Missing error handling
- Test coverage gaps
Output findings by priority: Critical > Warning > Suggestion---
name: code-reviewer
description: Reviews code for quality and security. Use after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
Review code for:
- Security vulnerabilities
- Code quality issues
- Missing error handling
- Test coverage gaps
Output findings by priority: Critical > Warning > Suggestion---
name: debugger
description: Debug errors and test failures.
tools: Read, Edit, Bash, Grep, Glob
model: inherit
---
Debugging process:
1. Capture error details
2. Identify failure location
3. Form hypotheses
4. Test and verify
5. Implement fix---
name: debugger
description: Debug errors and test failures.
tools: Read, Edit, Bash, Grep, Glob
model: inherit
---
Debugging process:
1. Capture error details
2. Identify failure location
3. Form hypotheses
4. Test and verify
5. Implement fix| Type | Location | Priority |
|---|---|---|
| Project | | Highest |
| User | | Lower |
| 类型 | 位置 | 优先级 |
|---|---|---|
| 项目级 | | 最高 |
| 用户级 | | 较低 |
[Agent returns agentId: "abc123"][Agent returns agentId: "abc123"]undefinedundefinedUse code-analyzer to find issues,
then use optimizer to fix themUse code-analyzer to find issues,
then use optimizer to fix them.claude/agents/.claude/agents/