Skip to content
Skill

openai-docs

by openai

AI Summary

Provides developers with authoritative, up-to-date OpenAI API documentation and guidance by prioritizing official MCP tools for questions about building with OpenAI products. Ideal for developers integrating OpenAI APIs who need reliable, cited references.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "openai-docs" skill in my project.

Please run this command in my terminal:
# Install skill into your project (10 files)
mkdir -p .claude/skills/openai-docs && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/SKILL.md "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/LICENSE.txt "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/LICENSE.txt" && mkdir -p .claude/skills/openai-docs/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/agents/openai.yaml "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/agents/openai.yaml" && mkdir -p .claude/skills/openai-docs/assets && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/assets/openai-small.svg "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/assets/openai-small.svg" && mkdir -p .claude/skills/openai-docs/assets && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/assets/openai.png "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/assets/openai.png" && mkdir -p .claude/skills/openai-docs/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/references/latest-model.md "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/references/latest-model.md" && mkdir -p .claude/skills/openai-docs/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/references/prompting-guide.md "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/references/prompting-guide.md" && mkdir -p .claude/skills/openai-docs/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/references/upgrade-guide.md "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/references/upgrade-guide.md" && mkdir -p .claude/skills/openai-docs/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/scripts/fetch-codex-manual.mjs "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/scripts/fetch-codex-manual.mjs" && mkdir -p .claude/skills/openai-docs/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/openai-docs/scripts/resolve-latest-model-info.js "https://raw.githubusercontent.com/openai/skills/main/skills/.curated/openai-docs/scripts/resolve-latest-model-info.js"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; use OpenAI docs MCP tools for non-Codex docs questions, use the Codex manual helper first for broad Codex self-knowledge, and restrict fallback browsing to official OpenAI domains.

OpenAI Docs

Provide authoritative, current guidance from OpenAI developer docs using the developers.openai.com MCP server. "Docs MCP" means mcp__openaiDeveloperDocs__search_openai_docs and mcp__openaiDeveloperDocs__fetch_openai_doc; for API reference, schema, parameter, or required-field questions, also use mcp__openaiDeveloperDocs__get_openapi_spec when available. Official-domain web search is fallback after those tools are unavailable or unhelpful. Broad Codex questions use the manual helper before Docs MCP. This skill also owns model selection, API model migration, and prompt-upgrade guidance.

Source Priority

• For Codex self-knowledge, use the Codex source route below; it owns when to use the manual helper, Docs MCP, or bounded uncertainty. • For non-Codex OpenAI docs questions, use mcp__openaiDeveloperDocs__search_openai_docs to find the most relevant doc pages. • For non-Codex OpenAI docs questions, fetch the relevant page with mcp__openaiDeveloperDocs__fetch_openai_doc before answering. If search is noisy, run a narrower Docs MCP search; when any plausible official OpenAI docs URL is known or found, try fetching that URL through Docs MCP before relying on web-search content. • For API reference, schema, parameter, or required-field questions, use mcp__openaiDeveloperDocs__get_openapi_spec when available to verify the API shape alongside the relevant guide or reference page. • Use mcp__openaiDeveloperDocs__list_openai_docs only when you need to browse or discover non-Codex pages without a clear query. • For model-selection, "latest model", or default-model questions, fetch https://developers.openai.com/api/docs/guides/latest-model.md first. If that is unavailable, load references/latest-model.md. • For model upgrades or prompt upgrades, run node scripts/resolve-latest-model-info.js only when the target is latest/current/default or otherwise unspecified; otherwise preserve the explicitly requested target. • Preserve explicit target requests: if the user names a target model like "migrate to GPT-5.4", keep that requested target even if latest-model.md names a newer model. Mention newer guidance only as optional. • If current remote guidance is needed, fetch both the returned migration and prompting guide URLs directly. If direct fetch fails, use MCP/search fallback; if that also fails, use bundled fallback references and disclose the fallback.

OpenAI product snapshots

• Apps SDK: Build ChatGPT apps by providing a web component UI and an MCP server that exposes your app's tools to ChatGPT. • Responses API: A unified endpoint designed for stateful, multimodal, tool-using interactions in agentic workflows. • Chat Completions API: Generate a model response from a list of messages comprising a conversation. • Codex: OpenAI's coding agent for software development that can write, understand, review, and debug code. • gpt-oss: Open-weight OpenAI reasoning models (gpt-oss-120b and gpt-oss-20b) released under the Apache 2.0 license. • Realtime API: Build low-latency, multimodal experiences including natural speech-to-speech conversations. • Agents SDK: A toolkit for building agentic apps where a model can use tools and context, hand off to other agents, stream partial results, and keep a full trace.

Codex self-knowledge

Use this path for questions about Codex itself: configuring, extending, operating, troubleshooting, local state, product surfaces, or where Codex behavior should live. A codebase merely mentioning a plugin, skill, hook, MCP server, browser, or automation is not enough. For generic software tasks, answer the software task directly; if asked whether Codex self-knowledge applies, answer that meta question briefly and continue the requested artifact.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption1K+ stars on GitHub
22.6k ★ · Popular
DocsREADME + description
Well-documented

GitHub Signals

Stars22.6k
Forks1.5k
Issues277
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code