build-with-agent-team
Build a project using Claude Code Agent Teams with tmux split panes. Takes a plan document path and optional team size. Use when you want multiple agents collaborating on a build.
Install
mkdir -p .claude/skills/build-with-agent-team && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6827" && unzip -o skill.zip -d .claude/skills/build-with-agent-team && rm skill.zipInstalls to .claude/skills/build-with-agent-team
About this skill
Build with Agent Team
You are coordinating a build using Claude Code Agent Teams. Read the plan document, determine the right team structure, spawn teammates, and orchestrate the build.
Arguments
- Plan path:
$ARGUMENTS[0]- Path to a markdown file describing what to build - Team size:
$ARGUMENTS[1]- Number of agents (optional)
Step 1: Read the Plan
Read the plan document at $ARGUMENTS[0]. Understand:
- What are we building?
- What are the major components/layers?
- What technologies are involved?
- What are the dependencies between components?
Step 2: Determine Team Structure
If team size is specified ($ARGUMENTS[1]), use that number of agents.
If NOT specified, analyze the plan and determine the optimal team size based on:
- Number of independent components (frontend, backend, database, infra, etc.)
- Technology boundaries (different languages/frameworks = different agents)
- Parallelization potential (what can be built simultaneously?)
Guidelines:
- 2 agents: Simple projects with clear frontend/backend split
- 3 agents: Full-stack apps (frontend, backend, database/infra)
- 4 agents: Complex systems with additional concerns (testing, DevOps, docs)
- 5+ agents: Large systems with many independent modules
For each agent, define:
- Name: Short, descriptive (e.g., "frontend", "backend", "database")
- Ownership: What files/directories they own exclusively
- Does NOT touch: What's off-limits (prevents conflicts)
- Key responsibilities: What they're building
Step 3: Set Up Agent Team
Enable tmux split panes so each agent is visible:
teammateMode: "tmux"
Step 4: Define Contracts
Before spawning agents, the lead reads the plan and defines the integration contracts between layers. This focused upfront work is what enables all agents to spawn in parallel without diverging on interfaces. Agents that build in parallel will diverge on endpoint URLs, response shapes, trailing slashes, and data storage semantics unless they start with agreed-upon contracts.
Map the Contract Chain
Identify which layers need to agree on interfaces:
Database → function signatures, data shapes → Backend
Backend → API contract (URLs, response shapes, SSE format) → Frontend
Author the Contracts
From the plan, define each integration contract with enough specificity that agents can build to it independently:
Database → Backend contract:
- Function signatures (create, read, update, delete)
- Pydantic model definitions
- Data shapes and types
Backend → Frontend contract:
- Exact endpoint URLs (including trailing slash conventions)
- Request/response JSON shapes (exact structures, not prose descriptions)
- Status codes for success and error cases
- SSE event types with exact JSON format
- Response envelopes (flat vs nested — e.g.,
{"session": {...}, "messages": [...]})
Identify Cross-Cutting Concerns
Some behaviors span multiple agents and will fall through the cracks unless explicitly assigned. Identify these from the plan and assign ownership to one agent:
Common cross-cutting concerns:
- Streaming data storage: If backend streams chunks to frontend, should chunks be stored individually in the DB or accumulated into one row? (Affects how frontend renders on reload)
- URL conventions: Trailing slashes, path parameters, query params — both sides must match exactly
- Response envelopes: Flat objects vs nested wrappers — both sides must agree
- Error shapes: How errors are returned (status codes, error body format)
- UI accessibility: Interactive elements need aria-labels for automated testing
Assign each concern to one agent with instructions to coordinate with others.
Contract Quality Checklist
Before including a contract in agent prompts, verify:
- Are URLs exact, including trailing slashes? (e.g.,
POST /api/sessions/vsPOST /api/sessions) - Are response shapes explicit JSON, not prose descriptions? (e.g.,
{"session": {...}, "messages": [...]}not "returns session with messages") - Are all SSE event types documented with exact JSON?
- Are error responses specified? (404 body, 422 body, etc.)
- Are storage semantics clear? (accumulated vs per-chunk)
Step 5: Spawn All Agents in Parallel
With contracts defined, spawn all agents simultaneously. Each agent receives the full context they need to build independently from the start. This is the whole point of agent teams — parallel work across boundaries.
Enter Delegate Mode (Shift+Tab) before spawning. You should not implement code yourself — your role is coordination.
Spawn Prompt Structure
You are the [ROLE] agent for this build.
## Your Ownership
- You own: [directories/files]
- Do NOT touch: [other agents' files]
## What You're Building
[Relevant section from plan]
## Contracts
### Contract You Produce
[Include the lead-authored contract this agent is responsible for]
- Build to match this exactly
- If you need to deviate, message the lead and wait for approval before changing
### Contract You Consume
[Include the lead-authored contract this agent depends on]
- Build against this interface exactly — do not guess or deviate
### Cross-Cutting Concerns You Own
[Explicitly list integration behaviors this agent is responsible for]
## Coordination
- Message the lead if you discover something that affects a contract
- Ask before deviating from any agreed contract
- Flag cross-cutting concerns that weren't anticipated
- Share with [other agent] when: [trigger]
- Challenge [other agent]'s work on: [integration point]
## Before Reporting Done
Run these validations and fix any failures:
1. [specific validation command]
2. [specific validation command]
Do NOT report done until all validations pass.
Step 6: Facilitate Collaboration
All agents are working in parallel. Your job as lead is to keep them aligned and unblock them.
During Implementation
- Relay messages between agents when they flag contract issues
- If an agent needs to deviate from a contract, evaluate the change, update the contract, and notify all affected agents
- Unblock agents waiting on decisions
- Track progress through the shared task list
Pre-Completion Contract Verification
Before any agent reports "done", run a contract diff:
- "Backend: what exact curl commands test each endpoint?"
- "Frontend: what exact fetch URLs are you calling with what request bodies?"
- Compare and flag mismatches before integration testing
Cross-Review
Each agent reviews another's work:
- Frontend reviews Backend API usability
- Backend reviews Database query patterns
- Database reviews Frontend data access patterns
Collaboration Patterns
Anti-pattern: Parallel spawn without contracts (agents diverge)
Lead spawns all 3 agents simultaneously without defining interfaces
Each agent builds to their own assumptions
Integration fails on URL mismatches, response shape mismatches ❌
Anti-pattern: Fully sequential spawning (defeats purpose of agent teams)
Lead spawns database agent → waits for contract → spawns backend → waits → spawns frontend
Only one agent works at a time, no parallelism ❌
Anti-pattern: "Tell them to talk" (they won't reliably)
Lead tells backend "share your contract with frontend"
Backend sends contract but frontend already built half the app ❌
Good pattern: Lead-authored contracts, parallel spawn
Lead reads plan → defines all contracts upfront → spawns all agents in parallel with contracts included
All agents build simultaneously to agreed interfaces → minimal integration mismatches ✅
Good pattern: Active collaboration during parallel work
Agent A: "I need to add a field to the response — messaging the lead"
Lead: "Approved. Agent B, the response now includes 'metadata'. Update your fetch."
Agent B: "Got it, updating now"
Task Management
Create a shared task list. Since contracts are defined upfront, agents can start building immediately — no inter-agent blocking for initial implementation work. Only block tasks that genuinely require another agent's output (like integration testing).
[ ] Agent A: Build UI components
[ ] Agent B: Implement API endpoints
[ ] Agent C: Build schema and data layer
[ ] Agent A + B + C: Integration testing (blocked by all implementation tasks)
Track progress and facilitate communication when agents need to coordinate.
Common Pitfalls to Prevent
- File conflicts: Two agents editing the same file → Assign clear ownership
- Lead over-implementing: You start coding → Stay in Delegate Mode
- Isolated work: Agents don't talk → Require explicit handoffs via lead relay
- Vague boundaries: "Help with backend" → Specify exact files/responsibilities
- Missing dependencies: Agent B waits on Agent A forever → Track blockers actively
- Parallel spawn without contracts: All agents start simultaneously with no shared interfaces → Integration failures. Define contracts before spawning
- Implicit contracts: "The API returns sessions" → Ambiguous. Require exact JSON shapes, URLs with trailing slashes, status codes
- Orphaned cross-cutting concerns: Streaming storage, URL conventions, error shapes → Nobody owns them. Explicitly assign to one agent
- Per-chunk storage: Backend stores each streamed text chunk as a separate DB row → Frontend renders N bubbles on reload. Accumulate chunks into single rows
- Hidden UI elements: CSS
opacity-0on interactive elements → Invisible to automation. Add aria-labels, ensure keyboard/focus visibility
Definition of Done
The build is complete when:
- All agents report their work is done
- Each agent has validated their own domain
- Integration points have been tested
- Cross-review feedback has been addressed
- The plan's acceptance criteria are met
- Lead agent has run end-to-end validation
Step 7: Validation
Validation happens at
Content truncated.
More by coleam00
View all skills by coleam00 →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversBuild persistent semantic networks for enterprise & engineering data management. Enable data persistence and memory acro
Boost productivity with Task Master: an AI-powered tool for project management and agile development workflows, integrat
Optimize your codebase for AI with Repomix—transform, compress, and secure repos for easier analysis with modern AI tool
Enhance productivity with AI-driven Notion automation. Leverage the Notion API for secure, automated workspace managemen
Explore official Google BigQuery MCP servers. Find resources and examples to build context-aware apps in Google's ecosys
Find official MCP servers for Google Maps. Explore resources to build, integrate, and extend apps with Google directions
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.