Skip to content

georgevetticaden/3-amigo-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– 3 AI Amigos: Multi-Agent Product Development Team

Transform your development workflow with AI-powered Product Manager, UX Designer, and Claude Code working in perfect harmony. Build production-ready multi-agent systems in hours, not months.

πŸ“– Read the blog post | πŸŽ₯ Watch the video | πŸš€ See it in action

πŸ“– Table of Contents

🌟 Overview

The 3 AI Amigos revolutionizes how we build multi-agent systems by orchestrating three specialized AI agents that mirror traditional software development roles:

  1. Product Manager Agent - Creates PRDs, user stories, and technical architecture
  2. UX Designer Agent - Designs interfaces, creates prototypes, and defines experiences
  3. Claude Code Agent - Implements the complete system following specifications

This pattern is based on Anthropic's research showing 90.2% performance improvement with multi-agent systems over single agents.

3 AI Amigos Team Diagram

The 3 AI Amigos orchestrates these specialized AI agents in a continuous development cycle:

  1. Define & Plan - Product Owner collaborates with PM Agent to create requirements and architecture
  2. Design & Iterate - Requirements flow to UX Designer Agent for design specs and prototypes
  3. Build & Test - UX artifacts guide Claude Code to implement the complete system

This creates a seamless flow where human vision is amplified by AI expertise at every stage.

🎯 Key Benefits

  • ⚑ 10x Faster Development - From idea to working system in hours
  • πŸ”„ Reusable Patterns - Technical guides work for any domain
  • 🎨 Professional UX - AI-designed interfaces that users love
  • πŸ—οΈ Production Ready - Following Anthropic's best practices
  • πŸ”§ Domain Agnostic - Works for health, finance, legal, education, etc.

πŸ“ Repository Structure

3-AMIGO-AGENTS/
β”‚
β”œβ”€β”€ πŸ€– agents/                    # Reusable agent configurations
β”‚   β”œβ”€β”€ pm-agent/                 # Product Manager Agent
β”‚   β”‚   β”œβ”€β”€ config/               # Agent instructions
β”‚   β”‚   β”œβ”€β”€ example/              # Example outputs and prompts
β”‚   β”‚   β”‚   β”œβ”€β”€ prompts/          # What to submit to PM
β”‚   β”‚   β”‚   └── generated-pm-artifacts/ # Example PM outputs
β”‚   β”œβ”€β”€ ux-agent/                 # UX Designer Agent
β”‚   β”‚   β”œβ”€β”€ config/               # Agent instructions
β”‚   β”‚   β”œβ”€β”€ example/              # Example outputs and prompts
β”‚   β”‚   β”‚   β”œβ”€β”€ prompts/          # What to submit to UX
β”‚   β”‚   β”‚   └── generated-ux-artifacts/ # Example UX outputs
β”‚   └── code-agent/               # Claude Code configuration
β”‚       └── config/               # CLAUDE.md template
β”‚
β”œβ”€β”€ πŸ“š technical-patterns/        # Domain-agnostic patterns
β”‚   β”œβ”€β”€ implementation-guide.md   # Multi-agent implementation
β”‚   β”œβ”€β”€ multi-agent-patterns.md   # Orchestrator-worker patterns
β”‚   β”œβ”€β”€ streaming-patterns.md     # Real-time SSE updates
β”‚   β”œβ”€β”€ dependency-management-guide.md  # Critical version requirements
β”‚   β”œβ”€β”€ sse-implementation-guide.md     # SSE best practices
β”‚   β”œβ”€β”€ multi-agent-implementation-architecture.md  # Backend service structure
β”‚   β”œβ”€β”€ visualization-agent-pattern.md  # Visualization agent implementation
β”‚   β”œβ”€β”€ technology-requirements.md      # Stack and version requirements
β”‚   └── anthropic-blog.md              # Anthropic's research patterns
β”‚
β”œβ”€β”€ πŸ₯ use-cases/                 # Domain-specific examples
β”‚   └── multi-agent-health-insight-system/
β”‚       β”œβ”€β”€ health-domain-requirements.md
β”‚       β”œβ”€β”€ health-system-architecture-guide.md  # Combined architecture doc
β”‚       β”œβ”€β”€ health-mcp-tool-interface.md        # Health MCP tools
β”‚       β”œβ”€β”€ health-user-stories.pdf             # User stories & mockups
β”‚       β”œβ”€β”€ health-design-requirements.md
β”‚       └── Anthropic-Blog-[...].txt
β”‚
β”œβ”€β”€ πŸ“– docs/                      # Setup guides
β”‚   β”œβ”€β”€ demo/                     # Demo-specific guides
β”‚   β”‚   β”œβ”€β”€ demo-setup-guide.md
β”‚   β”‚   └── po-document-checklist.md
β”‚   β”œβ”€β”€ requirements-directory-structure.md
β”‚   β”œβ”€β”€ production-quality-checklist.md
β”‚   └── images/
β”‚       └── ai-amigos-diagram.png
β”‚
└── README.md                     # You are here!

πŸš€ Quick Start

Prerequisites

  • Claude Desktop or Claude.ai account (for PM and UX agents)
  • Claude Code installed (Get it here)
  • VSCode or preferred editor
  • Python 3.11+ for backend
  • Node.js 18+ for frontend
  • Basic understanding of multi-agent systems (Read Anthropic's blog)

30-Second Overview

  1. Create Agents β†’ Set up PM and UX agents in Claude Desktop
  2. Run PM Agent β†’ Upload domain requirements, get product specs
  3. Run UX Agent β†’ Upload PM outputs, get designs
  4. Setup Workspace β†’ Organize all outputs for Claude Code
  5. Run Claude Code β†’ Get working system!

πŸ“‹ Complete Setup Guide

Phase 1: Create Your AI Agents

1.1 Create Product Manager Agent

In Claude Desktop:

  1. Click "Create New Project"
  2. Name: "Product Manager Agent"
  3. Description: Copy from agents/pm-agent/config/pm-agent-description.md
  4. Copy instructions from: agents/pm-agent/config/pm-agent-instructions.md
  5. Paste into project instructions
  6. Save project

1.2 Create UX Designer Agent

In Claude Desktop:

  1. Click "Create New Project"
  2. Name: "UX Designer Agent"
  3. Description: Copy from agents/ux-agent/config/ux-agent-description.md
  4. Copy instructions from: agents/ux-agent/config/ux-designer-agent-instructions.md
  5. Paste into project instructions
  6. Save project

Phase 2: Prepare Your Documents

For Health Insight System Demo:

Use provided documents in use-cases/multi-agent-health-insight-system/:

  • βœ… All documents ready to use
  • βœ… Skip to Phase 3

For Custom Use Case:

Create these documents (use health examples as templates):

  1. [domain]-requirements.md - Your domain expertise
  2. [domain]-system-architecture-guide.md - Combined architecture document with multi-agent patterns
  3. [domain]-mcp-tool-interface.md - If you have pre-built MCP tools
  4. Visual references - Screenshots/PDF showing desired UI/UX (optional but recommended)
  5. [domain]-design-requirements.md - Design requirements for UX Agent
  6. Anthropic blog - Link

Phase 3: Run the AI Amigos

3.1 Product Manager Agent

  1. Open PM Agent project in Claude Desktop
  2. Start new conversation
  3. Copy prompt from: agents/pm-agent/example/prompts/po-prompt-for-pm-agent.md
  4. Customize for your domain
  5. Attach your documents (8 files) to the message
  6. Submit and wait for outputs

PM Agent will create:

  • πŸ“„ PRD.md
  • πŸ“ user-stories.md
  • πŸ—οΈ system-architecture.md
  • πŸ”Œ api-specification.md
  • πŸ“Š data-models.md
  • 🧩 component-architecture.md
  • πŸ› οΈ tool-interface.md
  • πŸ“‹ feature-priority.md

3.2 UX Designer Agent

  1. Open UX Agent project
  2. Start new conversation
  3. Copy prompt from: agents/ux-agent/example/prompts/po-prompt-for-ux-agent.md
  4. Attach all PM outputs + visual references (PDF/screenshots) to the message
  5. Submit and wait for designs

UX Agent will create:

  • 🎨 design-system.md
  • 🧩 component-specs.md
  • πŸ“± welcome-prototype.html
  • πŸ“± main-app-prototype.html
  • πŸ“ layout-guidelines.md
  • πŸ“Š visualization-specs.md
  • β™Ώ accessibility-guidelines.md
  • 🎬 animation-specs.md

Phase 4: Prepare Claude Code Workspace

4.1 Create Workspace Structure

mkdir my-awesome-system
cd my-awesome-system

# Create directory structure
mkdir -p backend/tools
mkdir -p frontend
mkdir -p requirements/{technical-patterns,pm-outputs/architecture,ux-outputs/prototypes,po-inputs}

4.2 Copy Technical Guides (Reusable)

# Copy from this repo's technical-patterns/
cp path/to/3-AMIGO-AGENTS/technical-patterns/* requirements/technical-patterns/

Critical: Include these new guides:

  • dependency-management-guide.md - Exact versions to prevent conflicts
  • sse-implementation-guide.md - Correct SSE patterns

4.3 Add PM Outputs

Place in requirements/pm-outputs/:

  • PRD.md, user-stories.md, feature-priority.md (root level)
  • architecture/ β†’ PM's technical documents (api-specification.md, data-models.md, system-architecture.md, component-architecture.md, tool-interface.md)

Important: Check api-specification.md for correct SSE endpoint (should be GET, not POST)

4.4 Add UX Outputs

Place in requirements/ux-outputs/:

  • All design documents
  • prototypes/ folder (containing HTML prototypes)

4.5 Add Domain Input Documents

Place in requirements/po-inputs/:

  • Your original domain requirements
  • Tool documentation (if any)
  • Anthropic blog

4.6 Create CLAUDE.md

Copy the template from agents/code-agent/config/minimal-claude-md-template.md to your workspace root:

cp path/to/3-AMIGO-AGENTS/agents/code-agent/config/minimal-claude-md-template.md CLAUDE.md

Then edit CLAUDE.md to replace:

  • [PROJECT_NAME] with your system name
  • [ONE_LINE_DESCRIPTION] with a brief description

This template ensures Claude Code will:

  • Review all requirements before implementing
  • Create a comprehensive plan and get your approval
  • Avoid duplicate todo entries
  • Follow a structured implementation process

Phase 5: Run Claude Code

  1. Open terminal in your workspace
  2. Run: claude-code
  3. Claude Code will:
    • Read CLAUDE.md and analyze all requirements
    • Create a comprehensive implementation plan
    • Present the plan for your review and approval
    • Only proceed with implementation after you confirm
    • Provide running instructions when complete

πŸ₯ Health Insight System Demo

To run the complete health insight system demo:

What You'll Build

A sophisticated multi-agent health analysis system featuring:

  • 🧠 Chief Medical Officer (CMO) orchestrator agent
  • πŸ‘₯ 8 Medical Specialists (Cardiology, Endocrinology, etc.)
  • πŸ“Š Real-time Analysis with SSE streaming
  • πŸ“ˆ Dynamic Visualizations generated by AI
  • 🎨 Beautiful Medical UI with glassmorphism effects

Demo Steps

  1. Use Provided Health Documents

    use-cases/multi-agent-health-insight-system/
    β”œβ”€β”€ health-domain-requirements.md
    β”œβ”€β”€ health-system-architecture-guide.md
    β”œβ”€β”€ health-mcp-tool-interface.md
    β”œβ”€β”€ health-user-stories.pdf
    β”œβ”€β”€ health-design-requirements.md
    └── Anthropic-Blog-[...].txt
    
  2. Copy Technical Patterns (CRITICAL)

    cp technical-patterns/* your-workspace/requirements/technical-patterns/

    Especially: dependency-management-guide.md, sse-implementation-guide.md

  3. Follow Phases 1-5 above with health documents

  4. Expected Output Structure

    health-insight-system/
    β”œβ”€β”€ backend/
    β”‚   β”œβ”€β”€ main.py              # FastAPI server
    β”‚   β”œβ”€β”€ services/            # Multi-agent orchestration
    β”‚   β”œβ”€β”€ agents/              # CMO + specialists
    β”‚   └── tools/               # Pre-built health tools
    β”œβ”€β”€ frontend/
    β”‚   β”œβ”€β”€ src/
    β”‚   β”‚   β”œβ”€β”€ components/      # React components
    β”‚   β”‚   └── services/        # API integration
    β”‚   └── package.json
    └── requirements/            # All specifications
    
  5. Run the System

    # Backend
    cd backend
    pip install -r requirements.txt
    python main.py  # or uvicorn main:app --reload
    
    # Frontend (new terminal)
    cd frontend
    npm install
    npm run dev
  6. Access at http://localhost:5173 (Vite default)

  7. Common Issues:

    • If Tailwind CSS errors: Ensure v3.3.0, not v4
    • If SSE not streaming: Check for GET endpoint and headers
    • If TypeScript errors: Use import type for type imports

🎯 Creating Your Own Use Case

Example: Financial Advisory System

  1. Create Domain Documents

    # finance-domain-requirements.md
    - Asset classes: stocks, bonds, crypto
    - Analysis types: risk, performance, allocation
    - User queries: "Optimize my portfolio", "Tax implications"

    Plus: Dashboard screenshots showing portfolio views

  2. Run Through AI Amigos

    • PM creates: Chief Investment Officer + specialists
    • UX creates: Financial dashboards matching your visual references
    • Claude Code: Implements complete system

Example: Legal Document Analyzer

  1. Create Domain Documents

    # legal-domain-requirements.md
    - Document types: contracts, patents, compliance
    - Analysis needs: risk assessment, clause extraction
    - Specialists: Contract Lawyer, IP Expert, Compliance Officer
  2. Same pattern, different domain!

πŸ”§ Technical Architecture

Multi-Agent Orchestration

# The pattern works like this:
Orchestrator (CMO/CIO/Senior Counsel)
    β”œβ”€β”€ Analyzes request complexity
    β”œβ”€β”€ Creates specialist tasks
    β”œβ”€β”€ Executes specialists in parallel
    β”œβ”€β”€ Synthesizes results
    └── Generates visualizations

Real-time Streaming

// SSE provides live updates:
- Specialist activation
- Progress indicators  
- Partial results
- Final synthesis

Key Technologies

  • Backend: FastAPI 0.104.1, Anthropic SDK 0.39.0, SSE (sse-starlette 1.8.2)
  • Frontend: React 18.2.0, TypeScript 5.2.2, Tailwind CSS 3.3.0 (NOT v4)
  • Patterns: Orchestrator-Worker, Progressive Disclosure
  • Streaming: GET endpoints with EventSource, X-Accel-Buffering headers
  • Based on: Anthropic's Research

πŸ“š Resources

Essential Reading


🌟 If this helps you build something amazing, please star the repo and share your story!

Made with ❀️ by George Vetticaden and the 3 AI Amigos Community

⬆ Back to Top

About

No description, website, or topics provided.

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages