スキル一覧に戻る
MattMagg

openai-agents

by MattMagg

Claude Code plugins for building AI agents across frameworks (Google ADK, OpenAI, and more)

2🍴 0📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: OpenAI Agents description: Workflow patterns and gotchas for OpenAI Agents SDK. Directs to RAG for implementation.

OpenAI Agents Workflow

When to Choose OpenAI Agents

  • Already using OpenAI API and models
  • Need handoff patterns between specialized agents
  • Want function calling with type safety
  • Building conversational assistants

Decision Framework

Architecture Patterns

NeedPatternRAG Query
Single specialistBasic Agent"Agent basic example"
Route to specialistsHandoffs"agent handoff routing"
Sequential stepsAgent chains"agent chain pattern"
Persistent contextMemory"agent memory conversation"
Background processingAsync runner"async agent runner"

Query RAG: mcp__agentic-rag__query_sdk("pattern name", sdk="openai", mode="build")

Critical Gotchas

These cause silent failures or confusion:

  1. Use @tool decorator - Functions without it won't be recognized
  2. Type hints are required - Parameters need type annotations for schema generation
  3. Docstrings define the schema - LLM uses docstring for understanding, not just comments
  4. OPENAI_API_KEY env var - Must be set; SDK doesn't prompt for it
  5. Model names are specific - gpt-5.2, gpt-5.2-codex (not gpt5 or GPT-5.2)
  6. Handoff descriptions drive routing - Vague = poor decisions

Workflow: Creating an OpenAI Agent

Step 1: Environment Setup

RAG Query: mcp__agentic-rag__query_sdk("openai agents installation", sdk="openai", mode="explain")

Step 2: Basic Agent

RAG Query: mcp__agentic-rag__query_sdk("Agent class definition", sdk="openai", mode="build")

Step 3: Tool Definition

RAG Query: mcp__agentic-rag__query_sdk("@tool decorator example", sdk="openai", mode="build")

Type hints + docstring = working tool.

Step 4: Running the Agent

RAG Query: mcp__agentic-rag__query_sdk("Runner execution", sdk="openai", mode="build")

Step 5: Handoffs (if multi-agent)

RAG Query: mcp__agentic-rag__query_sdk("handoff between agents", sdk="openai", mode="build")

Step 6: Memory (if conversational)

RAG Query: mcp__agentic-rag__query_sdk("agent memory persistence", sdk="openai", mode="build")

Common Error Patterns

SymptomLikely CauseRAG Query
Tool not foundMissing @tool decorator"tool decorator usage"
Schema errorMissing type hints"tool type annotations"
API errorInvalid API key"openai authentication"
Model errorWrong model name"supported models"
Handoff failsBad description"handoff description"

Advanced Features

Query RAG when you need:

  • Streaming responses: "streaming agent output"
  • Parallel tool calls: "parallel tool execution"
  • Custom runners: "custom Runner implementation"
  • Guardrails: "agent guardrails safety"
  • Tracing: "agent tracing debugging"

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です