by @frankxai
Build production-ready multi-agent systems using OpenAI AgentKit and Agents SDK with best practices for agent orchestration, handoffs, and routines
This skill provides comprehensive guidance on building production-ready multi-agent systems using OpenAI's AgentKit platform and Agents SDK, following 2025 best practices.
Complete platform for building, deploying, and optimizing agents with enterprise-grade tooling.
Core Components:
The Agents SDK is the production evolution of the experimental Swarm framework. Use Agents SDK for all production work - Swarm is educational only.
Migration Note: If you encounter legacy Swarm code, migrate to Agents SDK immediately.
An Agent encapsulates:
Design Principle: Agents should be lightweight and specialized rather than monolithic and general-purpose.
A routine is a sequence of actions an agent can perform:
Think of it as: A mini-workflow that an agent owns and executes autonomously.
Handoffs enable agent-to-agent transitions in execution flow.
Key Pattern: When an agent encounters a task outside its specialization, it hands off to a more appropriate agent.
Example:
# Triage agent determines which specialist to use
if task.type == "refund":
handoff_to(refund_agent)
elif task.type == "sales":
...