Skills openai-docs-skill
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.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/am-will/openai-docs" ~/.claude/skills/openclaw-skills-openai-docs-skill && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/am-will/openai-docs" ~/.openclaw/skills/openclaw-skills-openai-docs-skill && rm -rf "$T"
manifest:
skills/am-will/openai-docs/SKILL.mdsource content
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
(do not rely on Codex MCP tools).scripts/openai-docs-mcp.sh - Use
orsearch
to find the best doc page, thenlist
the page (or anchor) for exact text.fetch - Surface the doc URL you used in your response so sources are clear.
Quick start
scripts/openai-docs-mcp.sh search "Responses API" 5 scripts/openai-docs-mcp.sh fetch https://platform.openai.com/docs/guides/migrate-to-responses
Workflow
- Discover:
with a focused query. If unsure, usesearch
to browse.list - Read:
the most relevant URL (optionally add an anchor).fetch - 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:
: initialize and inspect server capabilities.init
: list available tools on the MCP server.tools
: return JSON hits from the docs index.search <query> [limit] [cursor]
: browse docs index.list [limit] [cursor]
: return markdown for a doc page or section.fetch <url> [anchor]
: list OpenAPI endpoints.endpoints
: fetch OpenAPI schema or code samples.openapi <endpoint-url> [lang1,lang2] [code-only]
Environment:
: override the default MCP endpoint.MCP_URL