plugins/claude-code-expert/skills-old/agent-team-topologies/SKILL.md
Agent-team topology kits — 5 production-ready team configurations with task decomposition, file ownership, worktree guidance, and quality-gate hooks
npx skillsauth add markus41/claude plugins/claude-code-expert/skills-old/agent-team-topologiesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Agent teams parallelize work that would be serial in a single agent. The right topology depends on:
Use the topology selector below, then follow the kit for your chosen topology.
| Signal | Topology | Why | |--------|----------|-----| | Frontend + backend + tests all need changes | Frontend-Backend-Test Squad | Clear file ownership separation | | Need architecture review before implementation | Architect-Implementer-Reviewer Trio | Design gate before code | | Hard bug, multiple hypotheses | Competing-Hypotheses Debug Council | Parallel root-cause exploration | | PR needs security + perf + test review | Security-Performance-Test Review Board | Parallel review disciplines | | Large doc migration or README overhaul | Docs Migration Sprint | Parallel document processing |
Use when: A feature requires coordinated changes across UI, API, and test layers.
Team composition:
frontend-agent (Sonnet) — edits src/components/, src/pages/, src/hooks/backend-agent (Sonnet) — edits src/api/, src/services/, src/db/test-agent (Sonnet) — edits src/test/, *.test.ts, *.spec.tscoordinator (Opus, main context) — decomposes, coordinates, merges resultsFile ownership rules:
src/components/**, src/pages/**, src/hooks/**src/api/**, src/services/**, src/db/****/*.test.*, **/*.spec.*, src/test/**Worktree guidance:
isolation: "worktree") when their changes don't share filesCoordination protocol:
Phase 1 (parallel): frontend-agent + backend-agent implement their slices
Phase 2 (sequential): test-agent writes tests covering both slices
Phase 3 (main): coordinator reviews, resolves any type conflicts, commits
Quality gate hooks:
Example decomposition:
Feature: Add user profile editing
frontend-agent: ProfileEditForm.tsx, useProfile.ts, profile.css
backend-agent: /api/users/[id].ts, userService.ts, userRepository.ts
test-agent: ProfileEditForm.test.tsx, userService.test.ts, api/users.test.ts
Cost estimate: Medium (3 Sonnet agents + 1 Opus coordinator) — ~$0.05-0.15 per feature
Use when: The task involves design decisions that should be validated before code is written.
Team composition:
architect (Opus) — reads codebase, proposes design, writes specimplementer (Sonnet) — executes the specreviewer (Opus) — reviews against spec and quality criteriaFile ownership rules:
.claude/designs/<feature>.md.claude/reviews/<feature>.mdWorktree guidance:
feature/<name>)Coordination protocol:
Phase 1: architect analyzes codebase and writes design spec to .claude/designs/<name>.md
Phase 2: [HUMAN GATE] Review spec before implementation — stop here
Phase 3: implementer reads spec and implements
Phase 4: reviewer reads spec + diff, writes verdict to .claude/reviews/<name>.md
Phase 5: [HUMAN GATE] Review verdict before merge
Design spec format (architect output):
# Design: <feature>
## Goal
<one paragraph>
## Approach
<chosen approach with rationale>
## Alternatives considered
| Option | Why rejected |
|--------|-------------|
## Files to create/modify
| File | Change | Risk |
|------|--------|------|
## Interface contracts
<API signatures, data shapes, event types>
## Acceptance criteria
- [ ] <testable criterion>
Cost estimate: High (2 Opus + 1 Sonnet) — ~$0.20-0.50 per feature. Justified for architectural decisions.
Use when: A hard bug with multiple plausible root causes. Single-agent debugging gets anchored on the first plausible explanation.
Team composition:
hypothesis-a-agent (Sonnet) — investigates first hypothesishypothesis-b-agent (Sonnet) — investigates second hypothesishypothesis-c-agent (Sonnet) — investigates third hypothesissynthesis-agent (Opus) — reads all 3 reports, picks winner, proposes fixFile ownership rules:
.claude/debug/<issue>.mdWorktree guidance:
Coordination protocol:
Phase 1 (coordinator): Parse error, form 3 hypotheses, assign one to each agent
Phase 2 (parallel): 3 hypothesis agents independently investigate their hypothesis
Phase 3 (synthesis): synthesis-agent reads all 3 reports, selects most evidence-backed root cause
Phase 4 (coordinator): Present synthesis to user, await approval to fix
Hypothesis agent output format:
HYPOTHESIS: <one sentence>
Evidence FOR:
- <file:line>: <what it shows>
Evidence AGAINST:
- <fact that doesn't fit>
Confidence: HIGH / MEDIUM / LOW
If true, fix would be: <description>
Synthesis agent output format:
DEBUG SYNTHESIS
Winning hypothesis: <agent> — <hypothesis>
Confidence: HIGH / MEDIUM / LOW
Key evidence: <2-3 bullet points>
Rejected hypotheses:
- Hypothesis A: <why eliminated>
- Hypothesis B: <why eliminated>
PROPOSED FIX:
File: <path>
Change: <description>
Risk: <side effects>
Cost estimate: Low-Medium (3 Sonnet + 1 Opus, all read-only) — ~$0.05-0.10 per bug
Use when: A PR or change needs parallel review across multiple disciplines.
Team composition:
security-reviewer (Opus) — checks for security vulnerabilities, injection, credentials exposureperformance-reviewer (Sonnet) — checks for N+1 queries, bundle size, rendering performancetest-coverage-reviewer (Sonnet) — checks for missing tests, flaky patterns, coverage gapschair (Opus, main context) — aggregates all reviews into final verdictFile ownership rules:
.claude/reviews/pr-<n>.mdWorktree guidance:
Review scope:
Output format (each reviewer):
REVIEW: <discipline>
Verdict: PASS | REQUEST_CHANGES | BLOCK
BLOCK items:
- <file:line>: <critical issue>
REQUEST items:
- <file:line>: <should fix>
SUGGEST items:
- <file:line>: <optional improvement>
PASS items:
- <what was checked and found clean>
Chair aggregated verdict:
PR REVIEW BOARD VERDICT
Final verdict: APPROVE | REQUEST_CHANGES | BLOCK
Security: PASS | ⚠️ REQUEST | 🚫 BLOCK
Performance: PASS | ⚠️ REQUEST | 🚫 BLOCK
Test Coverage: PASS | ⚠️ REQUEST | 🚫 BLOCK
Consolidated action items:
MUST FIX: <list>
SHOULD FIX: <list>
CONSIDER: <list>
Cost estimate: Medium (2 Opus + 2 Sonnet, read-only) — ~$0.10-0.20 per PR
Use when: Large documentation update — multiple files need rewriting, restructuring, or migrating to a new format.
Team composition:
doc-agent-1 (Sonnet) — first batch of documentsdoc-agent-2 (Sonnet) — second batch of documentsdoc-agent-3 (Sonnet) — third batch of documentseditor-agent (Opus) — reviews consistency, cross-references, toneFile ownership rules:
Worktree guidance:
Coordination protocol:
Phase 1 (coordinator): List all docs, divide into 3 batches, generate style guide
Phase 2 (parallel): 3 doc-agents rewrite/migrate their assigned batch
Phase 3 (sequential): Merge all 3 worktrees (resolve conflicts if any)
Phase 4 (serial): editor-agent does consistency pass
Phase 5 (coordinator): Final review
Style guide injection: Coordinator writes .claude/doc-sprint-style.md before launching agents. All agents read it first.
Cost estimate: Low (3 Sonnet + 1 Opus, mostly write) — ~$0.10-0.30 per sprint. Very cost-effective for large doc migrations.
Is it a bug?
└─ Multiple plausible causes? → Competing-Hypotheses Debug Council
└─ Single obvious area? → debugger subagent (not a topology)
Is it a feature?
└─ Crosses multiple layers (UI + API + DB)? → Frontend-Backend-Test Squad
└─ Significant architecture decision? → Architect-Implementer-Reviewer Trio
└─ Pure implementation with clear spec? → implementer subagent (not a topology)
Is it a review?
└─ Security + performance + test concerns? → Security-Performance-Test Review Board
└─ Quick review? → code-reviewer subagent (not a topology)
Is it documentation?
└─ > 10 documents to update? → Docs Migration Sprint
└─ Single doc? → doc-writer subagent (not a topology)
Avoid agent teams for:
Rule of thumb: agent teams are worth it when the parallel work takes > 5 minutes per agent and agents won't block each other.
agent-teams skill — core team patterns, worktree coordinationagent-teams-advanced skill — eval-optimizer loop, blackboard councilautonomy-profiles skill — how to deploy teams in autonomous modeagents/autonomy-planner.md — task decomposition before team launchdevelopment
Enhanced plan-authoring skill with Pre-Writing context gathering, task metadata, non-TDD templates, Red Flags, telemetry, and an automated plan linter. Use when you have a spec or requirements for a multi-step task, before touching code.
tools
Documentation intelligence engine with graph-based API docs, algorithm library, and drift detection
tools
Ultraplan cloud planning — kick off a plan in the cloud from your terminal, review and revise in the browser, then execute remotely or send back to CLI
tools
--- name: mcp description: Configure MCP servers for Claude Code — stdio vs HTTP, authentication, Tools/Resources/Prompts distinction, channels (CI webhook, mobile relay, Discord bridge, fakechat), and cost of always-loaded tools. Use this skill whenever adding an MCP server, debugging connection issues, choosing between MCP Tools vs Prompts vs Resources, installing channel servers, or managing .mcp.json. Triggers on: "MCP server", "mcp config", "add Obsidian MCP", "install context7", "channels"