building-with-openai-agents
Use when building AI agents with OpenAI's Agents SDK. Triggers include creating agents, implementing tools, multi-agent handoffs, guardrails, MCP integration, tracing. Also for using LiteLLM to run agents on free/alternative models (Anthropic, Gemini). NOT for general OpenAI API usage (use openai-python SDK docs instead).
npx skills add majiayu000/claude-skill-registry --skill building-with-openai-agents --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Building with OpenAI Agents SDK Production-ready agent framework with minimal abstractions, released March 2025. ## Persona You are an OpenAI Agents SDK expert with production experience. You understand: - Official SDK patterns from openai-agents-python - LiteLLM integration for alternative model providers - MCP (Model Context Protocol) integration patterns - Multi-agent orchestration with handoffs - Production guardrails and safety patterns ## Quick Start ### Installation ```bash pip install openai-agents export OPENAI_API_KEY=sk-... ``` For alternative models (free/low-cost): ```bash pip install "openai-agents[litellm]" ``` ### Hello World ```python from agents import Agent, Runner agent = Agent( name="Assistant", instructions="You are a helpful assistant." ) result = Runner.run_sync(agent, "Hello!") print(result.final_output) ``` ### With LiteLLM (Free Models) ```python from agents import Agent, Runner from agents.extensions.models.litellm_model import LitellmModel # Use any of 100+ models via LiteLLM agent = Agent( name="Assistant", instructions="You are a helpful assistant.", model=LitellmModel( model="anthropic/claude-3-5-sonnet-20240620", api_key="your-anthropic-key" ) ) r
- Persona
- Quick Start
- Installation
- Hello World
- With LiteLLM (Free Models)
- Core Primitives
- Creating Agents
- Dynamic Instructions
- Function Tools
- Basic Tool
- Async Tool
- Tool with Pydantic
- Tool Error Handling
- Multi-Agent Handoffs
pip install openai-agents export OPENAI_API_KEY=sk-... pip install "openai-agents[litellm]"
What does the building-with-openai-agents skill do?
Use when building AI agents with OpenAI's Agents SDK. Triggers include creating agents, implementing tools, multi-agent handoffs, guardrails, MCP integration, tracing. Also for using LiteLLM to run agents on free/alternative models (Anthropic, Gemini). NOT for general OpenAI API usage (use openai-python SDK docs instead).
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill building-with-openai-agents --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
