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.
How do I install this agent skill?
npx skills add https://github.com/am-will/codex-skills --skill openai-docs-skillIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is generally safe but carries a low risk of indirect prompt injection because it fetches and processes external documentation which could contain malicious instructions designed to influence the AI's behavior.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · No issues
- Runlayerwarn
2/2 files flagged
- ZeroLeakswarn
1 finding · Score: 69/100
What does this agent skill do?
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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/am-will/codex-skills/openai-docs-skill">View openai-docs-skill on skillZs</a>