OpenAI 官方文档查询
openai-docs
当用户询问如何使用 OpenAI 产品或 API 进行构建,需要带引用的最新官方文档、帮助针对特定用例选择最新模型,或需要明确的 GPT-5.4 升级与提示词升级指导时使用;优先使用 OpenAI docs MCP 工具,仅将内置参考资料作为辅助上下文,并将所有回退浏览限制在 OpenAI 官方域名内。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- openai-docs
- description
- Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or explicit GPT-5.4 upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains.
02 资源文件 8
- 参考文档agents/openai.yaml577 B
- 资产文件assets/openai-small.svg1.1 KB
- 资产文件assets/openai.png1.4 KB
- 许可证LICENSE.txt10.7 KB
- 参考文档references/gpt-5p4-prompting-guide.md18.0 KB
- 参考文档references/latest-model.md1.8 KB
- 参考文档references/upgrading-to-gpt-5p4.md8.6 KB
- 参考文档templates/template.html12.2 KB
03 SKILL.md 正文
OpenAI Docs
Provide authoritative, current guidance from OpenAI developer docs using the developers.openai.com MCP server. Always prioritize the developer docs MCP tools over web.run for OpenAI-related questions. This skill may also load targeted files from references/ for model-selection and GPT-5.4-specific requests, but current OpenAI docs remain authoritative. Only if the MCP server is installed and returns no meaningful results should you fall back to web search.
Quick start
- Use
mcp__openaiDeveloperDocs__search_openai_docsto find the most relevant doc pages. - Use
mcp__openaiDeveloperDocs__fetch_openai_docto pull exact sections and quote/paraphrase accurately. - Use
mcp__openaiDeveloperDocs__list_openai_docsonly when you need to browse or discover pages without a clear query. - Load only the relevant file from
references/when the question is about model selection or a GPT-5.4 upgrade.
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.
If MCP server is missing
If MCP tools fail or no OpenAI docs resources are available:
- Run the install command yourself:
codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp - If it fails due to permissions/sandboxing, immediately retry the same command with escalated permissions and include a 1-sentence justification for approval. Do not ask the user to run it yet.
- Only if the escalated attempt fails, ask the user to run the install command.
- Ask the user to restart Codex.
- Re-run the doc search/fetch after restart.
Workflow
- Clarify the product scope and whether the request is general docs lookup, model selection, a GPT-5.4 upgrade, or a GPT-5.4 prompt upgrade.
- If it is a model-selection request, load
references/latest-model.md. - If it is an explicit GPT-5.4 upgrade request, load
references/upgrading-to-gpt-5p4.md. - If the upgrade may require prompt changes, or the workflow is research-heavy, tool-heavy, coding-oriented, multi-agent, or long-running, also load
references/gpt-5p4-prompting-guide.md. - Search docs with a precise query.
- Fetch the best page and the exact section needed (use
anchorwhen possible). - For GPT-5.4 upgrade reviews, always make the per-usage-site output explicit: target model, starting reasoning recommendation,
phaseassessment when relevant, prompt blocks, and compatibility status. - Answer with concise guidance and cite the doc source, using the reference files only as helper context.
Reference map
Read only what you need:
references/latest-model.md-> model-selection and "best/latest/current model" questions; verify every recommendation against current OpenAI docs before answering.references/upgrading-to-gpt-5p4.md-> only for explicit GPT-5.4 upgrade and upgrade-planning requests; verify the checklist and compatibility guidance against current OpenAI docs before answering.references/gpt-5p4-prompting-guide.md-> prompt rewrites and prompt-behavior upgrades for GPT-5.4; verify prompting guidance against current OpenAI docs before answering.
Quality rules
- Treat OpenAI docs as the source of truth; avoid speculation.
- Keep quotes short and within policy limits; prefer paraphrase with citations.
- If multiple pages differ, call out the difference and cite both.
- Reference files are convenience guides only; for volatile guidance such as recommended models, upgrade instructions, or prompting advice, current OpenAI docs always win.
- If docs do not cover the user’s need, say so and offer next steps.
Tooling notes
- Always use MCP doc tools before any web search for OpenAI-related questions.
- If the MCP server is installed but returns no meaningful results, then use web search as a fallback.
- When falling back to web search, restrict to official OpenAI domains (developers.openai.com, platform.openai.com) and cite sources.
04 同仓库更多 Skills
Codex 技能安装
skill-installer
从精选列表或 GitHub 仓库路径将 Codex 技能安装到 $CODEX_HOME/skills。当用户要求列出可安装技能、安装精选技能,或从其他仓库(包括私有仓库)安装技能时使用。
Codex 技能创建
skill-creator
创建高效技能的指南。当用户想要创建新技能(或更新现有技能),通过专业知识、工作流或工具集成来扩展 Codex 的能力时使用此技能。
桌面与系统截图
screenshot
当用户明确要求截取桌面或系统截图(全屏、特定应用或窗口,或某个像素区域),或当特定工具的截图功能不可用、需要操作系统级别的截图时使用。
Render 平台应用部署
render-deploy
通过分析代码库、生成 render.yaml Blueprints 并提供 Dashboard 深链接,将应用部署到 Render。当用户想要在 Render 云平台上部署、托管、发布或搭建应用时使用。
Playwright浏览器自动化
playwright
当任务需要通过 `playwright-cli` 或捆绑的包装脚本从终端自动化真实浏览器(导航、表单填写、快照、截图、数据提取、UI 流程调试)时使用。
Playwright 浏览器交互调试
playwright-interactive
通过 `js_repl` 进行持久化的浏览器和 Electron 交互,以实现快速迭代的 UI 调试。