team-composition-patterns by wshobson/agents
npx skills add https://github.com/wshobson/agents --skill team-composition-patterns关于 Claude Code 智能体团队功能的最佳实践,涵盖多智能体团队组建、团队规模选择、智能体类型选取以及显示模式配置。
subagent_type)| 复杂度 | 团队规模 | 适用场景 |
|---|---|---|
| 简单 | 1-2 | 单一维度审查、独立 Bug、小型功能 |
| 中等 | 2-3 | 多文件变更、2-3个关注点、中型功能 |
| 复杂 | 3-4 | 跨领域关注点、大型功能、深度调试 |
| 非常复杂 | 4-5 | 全栈功能、全面审查、系统性问题 |
经验法则:从覆盖所有必要维度的最小团队开始。增加团队成员会提高协调开销。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
team-reviewerteam-debuggerteam-lead + 2x team-implementerteam-lead + 1x 前端 team-implementer + 1x 后端 team-implementer + 1x 测试 team-implementergeneral-purposeteam-reviewerteam-lead + 2x team-implementer + 1x team-reviewer使用 Task 工具生成团队成员时,根据团队成员所需工具选择 subagent_type:
| 智能体类型 | 可用工具 | 适用场景 |
|---|---|---|
general-purpose | 所有工具(Read、Write、Edit、Bash 等) | 实施、调试、任何需要文件变更的任务 |
Explore | 只读工具(Read、Grep、Glob) | 研究、代码探索、分析 |
Plan | 只读工具 | 架构规划、任务分解 |
agent-teams:team-reviewer | 所有工具 | 带结构化发现的代码审查 |
agent-teams:team-debugger | 所有工具 | 基于假设的调查 |
agent-teams:team-implementer | 所有工具 | 在文件所有权边界内构建功能 |
agent-teams:team-lead | 所有工具 | 团队编排与协调 |
关键区别:只读智能体(Explore、Plan)无法修改文件。切勿将实施任务分配给只读智能体。
在 ~/.claude/settings.json 中配置:
{
"teammateMode": "tmux"
}
| 模式 | 行为 | 最佳适用场景 |
|---|---|---|
"tmux" | 每个团队成员在 tmux 窗格中 | 开发工作流、监控多个智能体 |
"iterm2" | 每个团队成员在 iTerm2 标签页中 | 偏好 iTerm2 的 macOS 用户 |
"in-process" | 所有团队成员在同一进程中 | 简单任务、CI/CD 环境 |
构建自定义团队时:
team-lead 或由用户直接协调每周安装量
2.4K
代码仓库
GitHub 星标数
32.3K
首次出现
2026年2月5日
安全审计
安装于
gemini-cli2.0K
opencode1.9K
codex1.9K
claude-code1.9K
cursor1.8K
github-copilot1.8K
Best practices for composing multi-agent teams, selecting team sizes, choosing agent types, and configuring display modes for Claude Code's Agent Teams feature.
| Complexity | Team Size | When to Use |
|---|---|---|
| Simple | 1-2 | Single-dimension review, isolated bug, small feature |
| Moderate | 2-3 | Multi-file changes, 2-3 concerns, medium features |
| Complex | 3-4 | Cross-cutting concerns, large features, deep debugging |
| Very Complex | 4-5 | Full-stack features, comprehensive reviews, systemic issues |
Rule of thumb : Start with the smallest team that covers all required dimensions. Adding teammates increases coordination overhead.
team-reviewerteam-debuggerteam-lead + 2x team-implementerteam-lead + 1x frontend team-implementer + 1x backend team-implementer + 1x test team-implementergeneral-purposeteam-reviewerteam-lead + 2x team-implementer + 1x team-reviewerWhen spawning teammates with the Task tool, choose subagent_type based on what tools the teammate needs:
| Agent Type | Tools Available | Use For |
|---|---|---|
general-purpose | All tools (Read, Write, Edit, Bash, etc.) | Implementation, debugging, any task requiring file changes |
Explore | Read-only tools (Read, Grep, Glob) | Research, code exploration, analysis |
Plan | Read-only tools | Architecture planning, task decomposition |
agent-teams:team-reviewer | All tools | Code review with structured findings |
agent-teams:team-debugger |
Key distinction : Read-only agents (Explore, Plan) cannot modify files. Never assign implementation tasks to read-only agents.
Configure in ~/.claude/settings.json:
{
"teammateMode": "tmux"
}
| Mode | Behavior | Best For |
|---|---|---|
"tmux" | Each teammate in a tmux pane | Development workflows, monitoring multiple agents |
"iterm2" | Each teammate in an iTerm2 tab | macOS users who prefer iTerm2 |
"in-process" | All teammates in same process | Simple tasks, CI/CD environments |
When building custom teams:
team-lead or have the user coordinate directlyWeekly Installs
2.4K
Repository
GitHub Stars
32.3K
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli2.0K
opencode1.9K
codex1.9K
claude-code1.9K
cursor1.8K
github-copilot1.8K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
| All tools |
| Hypothesis-driven investigation |
agent-teams:team-implementer | All tools | Building features within file ownership boundaries |
agent-teams:team-lead | All tools | Team orchestration and coordination |