agent-teams-advanced
БесплатноБез исполняемых скриптовНе проверенAdvanced patterns for Claude Code Agent Teams — topology design, cross-team communication, worktree coordination, failure handling, and cost management
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Agent Teams Advanced Patterns
Claude Code Agent Teams enable parallel multi-agent coordination within a shared task context. This skill covers production-grade patterns for designing, scaling, and debugging agent team topologies.
Agent Teams Mechanics
Enablement:
- Set environment variable:
CLAUDE_ENABLE_TEAMS=true - Or pass
--enable-teamsflag to Claude Code CLI - Each teammate gets an independent context window and git worktree
How teams differ from subagents:
- Subagents are sequential, fire-and-forget workers. Main agent waits for results then continues.
- Teammates run in parallel with peer-to-peer messaging. All teammates share a task list and can see each other's progress in real-time.
- Independent sessions: Each teammate maintains its own conversation state and can recover if it fails without blocking other teammates.
- Shared responsibility: Teammates collectively own the goal, not individual subtasks assigned by a parent.
Team Topology Patterns
Hub-and-Spoke (Lead-Driven)
One lead assigns work to teammates and collects results.
- Best for: Hierarchical workflows, clear task decomposition, reporting requirements
- Lead responsibilities: Break work into tasks, assign to teammates, merge results
- Teammates: Execute assigned tasks, report status and blockers
- Cost: 1 lead (Opus) + N teammates (Sonnet/Haiku)
┌─────────┐
│ Lead │
└────┬────┘
┌────┴────┬─────────┬─────────┐
│ │ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼ ▼
Team1 Team2 Team3 Team4 Team5 Team6
Mesh Network (Peer-to-Peer)
All teammates can message each other directly. Useful for truly parallel, interdependent work.
- Best for: Feature branches, cross-domain coordination, research teams
- Communication: Direct peer messaging, no bottleneck at lead
- Self-organization: Teammates claim tasks from shared queue
- Cost: N agents (all Sonnet for parity)
┌──────────────────────────┐
│ │
▼ ▼
Team1 ◄──────────────────► Team2
│ │
│ ◄──────────────────► │
│ │
└──────────►Team3◄─────────┘
◄────────┐ │ ┌───────────►
│ │ │
Self-Claim Queue
Pipeline (Sequential Handoff)
Work moves through stages. Each stage completes before passing to the next.
- Best for: Transformations, migrations, multi-phase analysis
- Stages: Analyzer → Implementer → Validator → Deployer
- Blocking: Each stage waits for previous to complete
- Cost: 4+ agents (Opus-Sonnet-Sonnet-Sonnet typically)
Hierarchy (Multi-Level Teams)
Team leads manage sub-teams. Useful for large organizations.
- Best for: Enterprise projects, scaled parallel work
- Structure: Main team + 3-4 sub-teams, each with lead
- Complexity: Coordination overhead increases at each level
- Cost: Scales quadratically (main lead + leads × members)
Cross-Team Communication
Shared Task List
All teammates can view, claim, and complete tasks from a shared queue.
- Self-claiming: Teammates ask "who's claiming this?" and pick up the next unclaimed task
- Status visibility: All teammates see what everyone else is working on
- Prevents duplicate work: Task locks prevent two teammates from claiming the same work
Peer-to-Peer Messaging
Direct messages between teammates for synchronous coordination.
Teammate1 → "Finished schema, Team2 can now generate tests"
Teammate2 → "Tests running, Team3 estimate for performance review?"
Teammate3 → "Ready when schema is final—what's your ETA?"
Status Broadcasting
Periodic updates visible to entire team (every 5-10 minutes).
- Progress: "Completed 3/8 unit tests"
- Blockers: "Waiting on Team4's API changes"
- Handoff signals: "Feature branch ready for review"
Conflict Resolution
When two teammates claim the same task:
- Task lock: First to claim gets exclusive lock (60 sec default)
- Conflict detection: System alerts second claimer
- Graceful degradation: Second teammate picks next task or supports first with parallel work
Git Worktree Coordination
Each teammate gets an isolated git worktree, preventing merge conflicts during work.
Worktree naming:
# Automatic naming by team ID and teammate index
.git/worktrees/team-{team_id}-{teammate_index}/
Merge strategy on completion:
- Squash and merge: Default. Reduces commit graph noise
- Rebase and merge: Preserves linear history, good for pipelines
- Three-way merge: Default for independent branches, may have conflicts
Conflict handling:
- Auto-resolvable: Same file, different sections → merge succeeds
- Conflict markers: Both teammates edit same section → manual resolution required
- Fallback: Team lead (or designated resolver) reviews and resolves conflicts
**Br
Установить agent-teams-advanced в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashAgentВложенные файлы
FAQ
Что делает скилл agent-teams-advanced?
Advanced patterns for Claude Code Agent Teams — topology design, cross-team communication, worktree coordination, failure handling, and cost management
Как установить скилл agent-teams-advanced?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-teams-advanced запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic