openai-docs

openai-docs is a skill for Claude Code, Codex from MasihMoafi/Elpis. It costs 105 tokens per session (4,698 once invoked), scanned A, a copy of openai-docs, Apache-2.0.

A set of instructions for answering questions about OpenAI products, APIs, models, and Codex using current official developer documentation. It also covers model choices, upgrades, and API setup guidance.

In plain words
What is it for?
Use it to answer questions about building with OpenAI APIs, choosing or migrating models, writing prompts, configuring API-backed tools, and understanding Codex.
Why use it?
It helps avoid relying on outdated or incomplete information when OpenAI products and their requirements change. It gives developers a consistent way to find and explain official guidance.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/masihmoafi/elpis/openai-docs
Any agent
npx skills add MasihMoafi/Elpis --skill openai-docs
Clone the repo
git clone --depth 1 https://github.com/MasihMoafi/Elpis

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openai-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/masihmoafi/elpis/openai-docs.svg)](https://agentmods.dev/skills/masihmoafi/elpis/openai-docs)
Your own site
<a href="https://agentmods.dev/skills/masihmoafi/elpis/openai-docs"><img src="https://agentmods.dev/badge/skills/masihmoafi/elpis/openai-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.04698
Opus 5 $0.00053 $0.02349
Sonnet 5 $0.00021 $0.00940
Haiku 4.5 $0.00011 $0.00470

Measured 5d ago against content hash 9914a79e6e1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

openai-docs scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fetch-codex-manual.mjs, scripts/resolve-latest-model-info.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. Run the helper directly unless you need to override the cache dir. The helper falls back to `curl` when native `fetch` is unavailable or when proxy env vars are present, so no shell-specific proxy prefix is required.
Origin

This is a copy

100% identical to openai-docs — 366 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

codex-rs/skills/src/assets/samples/openai-docs/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenAI Docs

Provide authoritative, current guidance from OpenAI developer docs using the developers.openai.com MCP server. "Docs MCP" means mcp__openaiDeveloperDocs__search_openai_docs and mcp__openaiDeveloperDocs__fetch_openai_doc; for API reference, schema, parameter, or required-field questions, also use mcp__openaiDeveloperDocs__get_openapi_spec when available. Official-domain web search is fallback after those tools are unavailable or unhelpful. Broad Codex questions use the manual helper before Docs MCP. This skill also owns model selection, API model migration, and prompt-upgrade guidance.

API Key Setup

For requests to build, run, configure, debug, or implement an API-backed app, script, CLI, generator, or tool, use openai-platform-api-key first when available. After that credential gate is resolved, return here for current docs as needed.

Use this skill directly for docs-only questions, citations, model/API guidance, conceptual explanations, and examples that do not require building or running an API-backed artifact.

For latest/current/default/unspecified model migration or prompting-guidance requests, complete the read-only latest-model resolver and guide fetch before the API-key credential gate. The credential gate still blocks edits, tests, and API-backed implementation until resolved; it does not block read-only retrieval of current model, migration, or prompting guidance.

First action for latest-model changes

Before reading memory, inspecting the repo, fetching docs, or checking API credentials, classify the request:

  • Latest/current prompting guidance, or change requested + latest/current/newest/recommended/default/flagship/unspecified target: immediately run the resolver with the platform-specific command below and inspect its JSON output. This includes asking how to prompt the latest model, changing prompts, a model picker, model references, an SDK integration, replacing an older named model with "the current model", or asking "which model should I migrate/upgrade to?". Do not directly fetch latest-model.md for this branch.
  • Pure model-selection question only, with no prompting guidance or requested change: directly fetch https://developers.openai.com/api/docs/guides/latest-model.md; do not run the resolver.
  • Change requested + explicit target model: preserve that target; do not run the latest-model resolver. For an explicit GPT-5.6 Sol or GPT-5.6-family migration, fetch the live GPT-5.6 model-guidance page and read references/upgrading-to-gpt-5p6-sol.md for skill-specific migration judgment.
  • Prompting or migration guidance for an explicitly named GPT-5-family model: fetch https://developers.openai.com/api/docs/guides/model-guidance?model=<requested-model> through Docs MCP and extract the relevant migration section or the ## Prompting Best Practices section through the next H2 heading. Do not substitute latest-model guidance.

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 184 lines · 105 tokens per session scan A 9914a79e6e1b

Subscribe to this mod's changes

openai-docs is a skill published in the GitHub repository MasihMoafi/Elpis (41 stars, last pushed yesterday), licensed Apache-2.0. It adds 105 tokens to every session and 4,698 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to openai-docs, differing in 366 lines, and is treated as a copy.