Openai Docs Skill

am-will/codex-skills/skills/openai-docs-skill

by am-will9f954c3b63fda0d1875252009c196bf15072c1caNo license1K starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 2 months ago

Query the OpenAI developer documentation via the OpenAI Docs MCP server using CLI (curl/jq). Use whenever a task involves the OpenAI API (Responses, Chat Completions, Realtime, etc.), OpenAI SDKs, ChatGPT Apps SDK, Codex, MCP integrations, endpoint schemas, parameters, limits, or migrations and you need up-to-date official guidance.

Includes scriptsResearch & Analysis
AI-generated overview

Queries the OpenAI developer documentation MCP server from the shell to retrieve current official API and SDK guidance.

What it does
This skill wraps the OpenAI developer documentation MCP server in a shell CLI, using curl and jq against the default endpoint. It supports subcommands to initialize the server, list tools, search or browse the docs index, fetch a documentation page or anchor as markdown, list OpenAPI endpoints, and retrieve OpenAPI schemas or code samples. It produces search hits, fetched documentation text, and endpoint or schema details, and instructs the agent to cite the documentation URL used.
When to use it
Use it when a task involves the OpenAI API, OpenAI SDKs, the ChatGPT Apps SDK, Codex, MCP integrations, endpoint schemas, parameters, limits, or migrations and current official documentation is needed. It is meant to replace reliance on memory or non-official sources for OpenAI platform work.
Requirements
Requires a shell with curl and jq, and network access to the OpenAI docs MCP endpoint (default overridable via the MCP_URL environment variable). It ships an executable script at scripts/openai-docs-mcp.sh. No credentials are mentioned.

OpenAI Docs MCP Skill

Overview

Use the OpenAI developer documentation MCP server from the shell to search and fetch authoritative docs. Always do this for OpenAI platform work instead of relying on memory or non-official sources.

Core rules

  • Always use this skill for OpenAI API/SDK/Apps/Codex questions or when precise, current docs are required.
  • Query the MCP server via the CLI wrapper in scripts/openai-docs-mcp.sh (do not rely on Codex MCP tools).
  • Use search or list to find the best doc page, then fetch the page (or anchor) for exact text.
  • Surface the doc URL you used in your response so sources are clear.

Quick start

bash
scripts/openai-docs-mcp.sh search "Responses API" 5scripts/openai-docs-mcp.sh fetch https://platform.openai.com/docs/guides/migrate-to-responses

Workflow

  1. Discover: search with a focused query. If unsure, use list to browse.
  2. Read: fetch the most relevant URL (optionally add an anchor).
  3. Apply: summarize and/or quote relevant sections; include the URL.

Script reference

The CLI wrapper is at scripts/openai-docs-mcp.sh and uses curl + jq against https://developers.openai.com/mcp.

Subcommands:

  • init: initialize and inspect server capabilities.
  • tools: list available tools on the MCP server.
  • search <query> [limit] [cursor]: return JSON hits from the docs index.
  • list [limit] [cursor]: browse docs index.
  • fetch <url> [anchor]: return markdown for a doc page or section.
  • endpoints: list OpenAPI endpoints.
  • openapi <endpoint-url> [lang1,lang2] [code-only]: fetch OpenAPI schema or code samples.

Environment:

  • MCP_URL: override the default MCP endpoint.

Source and attribution

Source:am-will/codex-skillsinskills/openai-docs-skillat commit9f954c3

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal