Skip to main content

What Makes a Good Squad?

A squad is a team of agents organized around a business domain—not a technical function.
Think departments, not features. “Research” not “Text Processing”.

Squad Structure

.agents/squads/research/
├── SQUAD.md           # Squad definition (required)
├── analyst.md         # Agent: deep research
├── writer.md          # Agent: content creation
└── reviewer.md        # Agent: quality checks

Creating a Squad

1. Create the Directory

mkdir -p .agents/squads/marketing

2. Define SQUAD.md

# Marketing Squad

## Mission
Create compelling content that converts.

## Agents
- copywriter: Ad copy and landing pages
- seo-analyst: Keyword research and optimization
- social: Social media content

## Outputs
- marketing/ directory
- Campaign assets
- Performance reports

## Memory
Shared context about brand voice, target audience,
successful campaigns, and style guidelines.

3. Add Agents

Create individual .md files for each agent listed.

Squad Design Patterns

Pattern 1: Pipeline

Agents work in sequence.
analyst → writer → reviewer → publish

Pattern 2: Parallel

Agents work independently on related tasks.
┌─ seo-analyst ─┐
│               │
├─ copywriter  ─┼─→ coordinator
│               │
└─ designer ───┘

Pattern 3: Specialist

One lead agent delegates to specialists.
lead-researcher
├── calls → market-analyst
├── calls → competitor-analyst
└── calls → trend-analyst

Running Squads

# Run all agents in a squad
squads run marketing

# Run specific agent
squads run marketing/copywriter

# Check squad status
squads status marketing -v

Best Practices

DoDon’t
Organize by business domainOrganize by technical function
3-7 agents per squad20+ agents in one squad
Clear ownership boundariesOverlapping responsibilities
Shared squad memoryIsolated agent silos

Next Steps