openai-docs-skill
am-will/codex-skills
Query OpenAI's official developer docs via MCP server for API, SDK, and platform guidance.
What is openai-docs-skill?
Access authoritative OpenAI documentation directly through a CLI interface powered by the OpenAI Docs MCP server. Use this whenever you need current, official information about OpenAI APIs, SDKs, endpoints, parameters, or migrations instead of relying on outdated knowledge or unofficial sources.
- Search the OpenAI docs index with focused queries to discover relevant pages
- Fetch full markdown documentation for specific pages or anchored sections
- List available documentation pages to browse the docs index
- Retrieve OpenAPI endpoint schemas and code samples in multiple languages
- Query endpoint specifications and parameter limits directly from official sources
- Surface documentation URLs in responses for clear source attribution
How to install openai-docs-skill
npx skills add https://github.com/am-will/codex-skills --skill openai-docs-skill- curl and jq installed locally
- Access to the OpenAI Docs MCP server at https://developers.openai.com/mcp
- Optional: MCP_URL environment variable to override default endpoint
How to use openai-docs-skill
- 1.Run `scripts/openai-docs-mcp.sh init` to verify server capabilities and connection
- 2.Use `search <query> [limit]` to find relevant documentation pages (e.g., `search "Chat Completions" 5`)
- 3.Use `list [limit]` to browse the full documentation index if you're unsure what to search for
- 4.Run `fetch <url> [anchor]` to retrieve the full markdown for a specific page or section
- 5.For API schemas, use `endpoints` to list available endpoints or `openapi <endpoint-url>` to fetch OpenAPI specs and code samples
- 6.Include the documentation URL from your fetch results in your response for source clarity
Use cases
- Implementing Chat Completions or Responses API calls with correct parameters and error handling
- Migrating code between OpenAI API versions using official migration guides
- Understanding rate limits, pricing tiers, and model availability for production deployments
- Generating code samples in specific languages for OpenAI SDK integration
- Troubleshooting API authentication, request formatting, or response handling issues
- Backend engineers integrating OpenAI APIs into applications
- AI/ML developers building with ChatGPT Apps SDK or Codex
- DevOps engineers managing OpenAI platform deployments
- Technical leads reviewing API documentation for compliance and best practices
openai-docs-skill FAQ
Always use this skill for OpenAI platform work. Official docs are authoritative, current, and change frequently. Your training data may be outdated for API parameters, models, pricing, or endpoints.
Start with `search` using a focused query like 'Responses API' or 'rate limits'. If unsure, use `list` to browse available pages. The search returns JSON hits ranked by relevance.
Yes. Use `fetch <url> [anchor]` where the anchor is the section heading. For example: `fetch https://platform.openai.com/docs/guides/migrate-to-responses#authentication`
Use `openai <endpoint-url> [lang1,lang2]` to fetch OpenAPI schemas with code samples. Specify languages like 'python,javascript' or use `code-only` flag to get just the samples.
Run `endpoints` to list all available OpenAPI endpoints, then use `openapi <endpoint-url>` to fetch the full schema and code examples for that endpoint.
Full instructions (SKILL.md)
Source of truth, from am-will/codex-skills.
name: openai-docs-skill description: 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.
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
searchorlistto find the best doc page, thenfetchthe page (or anchor) for exact text. - 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:
searchwith a focused query. If unsure, uselistto browse. - Read:
fetchthe most relevant URL (optionally add an anchor). - 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.
Related skills
More from am-will/codex-skills and the wider catalog.

parallel-task
Orchestrate parallel task execution with dependency management and test-driven validation.

parallel-task-spark
Orchestrate parallel task execution across subagents using dependency-aware task waves.

plan-harder
Create detailed, phased implementation plans with sprints and atomic tasks.

planner
Create comprehensive, phased implementation plans with sprints and atomic tasks.

read-github
Read and search GitHub repository documentation via gitmcp.io MCP service.

role-creator
Create and manage custom Codex agents via standalone TOML configuration files.