openai-agents
Build AI agents with OpenAI Agents SDK, tool registration, conversation history, and stateless execution. Use when creating AI agents, registering tools, or handling conversations.
npx skills add majiayu000/claude-skill-registry --skill openai-agents-jawad-chaudhary-hackathone-2-todo-sp --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.
# OpenAI Agents SDK Integration ## Agent Initialization ```python from openai import OpenAI from openai.agents import Agent, Runner client = OpenAI(api_key=os.getenv("OPENAI_API_KEY")) agent = Agent( name="TaskAssistant", instructions="""You are a helpful task management assistant. Use the provided tools to help users manage their todo list. Always confirm actions with friendly responses. If a user's request is ambiguous, ask for clarification.""", model="gpt-4o", tools=[] # MCP tools registered here ) ``` ## Tool Registration (from MCP) ```python tools = [ { "type": "function", "function": { "name": "add_task", "description": "Create a new task", "parameters": { "type": "object", "properties": { "user_id": {"type": "string"}, "title": {"type": "string"}, "description": {"type": "string"} }, "required": ["user_id", "title"] } } } ] agent.tools = tools ``` ## Running Agent with History ```python async def run_agent(messages: list[dict]) -> tuple[str, list[str]]: """Run agent with conversation history.""" runner = Runner(agent=agent) result = await runner.run(messages=messages) # Extract response response = result.messages[-1].content[0].text.value # Extract tool calls tool_calls = [
- Agent Initialization
- Tool Registration (from MCP)
- Running Agent with History
- Message Format
What does the openai-agents skill do?
Build AI agents with OpenAI Agents SDK, tool registration, conversation history, and stateless execution. Use when creating AI agents, registering tools, or handling conversations.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill openai-agents-jawad-chaudhary-hackathone-2-todo-sp --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.
