openai-docs

openai-docs is a skill for Codex from rojim666/SztuCode. It costs 105 tokens per session (4,700 once invoked), scanned A, original, MIT.

A skill for answering questions about OpenAI products and APIs using current official developer documentation. It covers topics such as models, SDKs, Responses, Realtime, agents, and Codex.

In plain words
What is it for?
Use it to explain or implement OpenAI API features, compare or migrate models, troubleshoot product setup, and provide documentation-based guidance.
Why use it?
It helps avoid relying on outdated or incomplete information when OpenAI APIs, tools, settings, or model choices may have changed.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions AGENTS.md; mentions Codex.

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/rojim666/sztucode/openai-docs
Any agent
npx skills add rojim666/SztuCode --skill openai-docs
Clone the repo
git clone --depth 1 https://github.com/rojim666/SztuCode

Made for: 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/rojim666/sztucode/openai-docs.svg)](https://agentmods.dev/skills/rojim666/sztucode/openai-docs)
Your own site
<a href="https://agentmods.dev/skills/rojim666/sztucode/openai-docs"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/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,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found 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.04700
Opus 5 $0.00053 $0.02350
Sonnet 5 $0.00021 $0.00940
Haiku 4.5 $0.00011 $0.00470

Measured 6d ago against content hash f9bc031e9bd5, 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 6d 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

Copies of this mod

2 near-identical copies found in the catalogue:

packages/runtime-ts/skills/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. 6d ago First seen · 184 lines · 105 tokens per session scan A f9bc031e9bd5

Subscribe to this mod's changes

openai-docs is a skill published in the GitHub repository rojim666/SztuCode (50 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 4,700 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.