# agents-sdk

Adopt this skill: https://proskills.md/skills/other/openai-openai-developers-for-cursor-skills-agents-sdk

Page: https://proskills.md/skills/other/openai-openai-developers-for-cursor-skills-agents-sdk
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/agents-sdk/SKILL.md
size: 1445
sha: 61d17b513aafce773a7e65bf29c131810c1ce89f
upstream: https://github.com/openai/openai-developers-for-cursor/blob/main/skills/agents-sdk/SKILL.md

```text
---
name: agents-sdk
description: Use when the user wants to build, adapt, run, or evaluate an OpenAI Agents SDK app from Cursor. Prefer a docs-first workflow and route API credential decisions through openai-platform-api-key before API-backed work.
---

# Agents SDK

Use this skill to turn an idea or repo into a focused Agents SDK implementation.

## Before You Build

1. Use `openai-docs` to inspect current Agents SDK guidance.
2. If the work will call the OpenAI API, use `openai-platform-api-key` before building, running, testing, or debugging the API-backed path.
3. Inspect the repo's existing language, package manager, entrypoints, and testing style before choosing a structure.

## Workflow

1. Define the agent contract:
   - goal
   - user input
   - expected output
   - tools
   - approval or escalation boundaries
2. Prefer the smallest runnable implementation first.
3. Use tools deliberately and keep side effects narrow.
4. Add evals when the user asks for reliability, comparison, or regression coverage.
5. Provide a local run command and a concrete smoke result when implementation is requested.

## Guidance

- Prefer Python unless the repo or user already points to TypeScript.
- Start with one agent before introducing handoffs or orchestration.
- Keep prompts, tools, tests, and deployment artifacts clearly separated.
- Use `openai-docs` again when current SDK behavior or product guidance is central to the answer.
```

## File: README.md
upstream: https://github.com/openai/openai-developers-for-cursor/blob/main/README.md

````text
# OpenAI Developers Plugin for Cursor

This plugin is the Cursor-facing bundle for OpenAI developer workflows. It pairs the public OpenAI Docs MCP server with Cursor-native skills so users can build AI applications, agents, and ChatGPT Apps from Cursor.

## What Is Included

- `.cursor-plugin/plugin.json` declares the `OpenAI Developers` Cursor plugin and logo.
- `mcp.json` configures the public OpenAI Docs MCP server.
- `skills/openai-docs/` routes OpenAI product, API, model, and SDK questions through live OpenAI documentation, including current-model metadata and explicit-model guidance.
- `skills/openai-platform-api-key/` guides local `OPENAI_API_KEY` setup for API-backed work.
- `skills/openai-api-troubleshooting/` classifies common runtime API failures and routes users to the right next step.
- `skills/agents-sdk/` helps plan and build Agents SDK applications.
- `skills/build-chatgpt-app/` helps design and implement ChatGPT Apps SDK projects.
- `skills/chatgpt-app-submission/` prepares submission-oriented ChatGPT Apps guidance.
- `assets/openai-platform.png` provides the plugin logo.

## Install

For Cursor Teams or Enterprise, import this repository through a team marketplace:

1. Open **Dashboard -> Settings -> Plugins** in Cursor.
2. Under **Team Marketplaces**, select **Add Marketplace**.
3. Select **Import from Repo** and enter `https://github.com/openai/openai-developers-for-cursor`.
4. Add the OpenAI Developers plugin, configure team access, and save the marketplace.
5. Install the plugin from the **Plugins** panel in Cursor.

On Enterprise plans, only admins can add team marketplaces. See Cursor's
[plugin installation documentation](https://cursor.com/docs/plugins#add-a-team-marketplace)
for details.

## Verify

After installation, ask Cursor Agent:

1. `what is the newest OpenAI model?`
2. `write a small Responses API example`
3. `help me set up OPENAI_API_KEY for this repo`

The docs questions should use the OpenAI Docs MCP server. API-backed work requires a locally configured `OPENAI_API_KEY`; this plugin cannot create or retrieve API keys automatically.

## Local Validation

```bash
npm test
```

## License

This project is licensed under the [Apache License 2.0](LICENSE).
````
