openai-cookbook is a collection of example code and practical guides for completing common tasks with the OpenAI API. It is for developers building applications that call OpenAI models, with most examples written in Python. The catalogue add-ons provide reusable workflows for working with the cookbook and OpenAI API examples.
Borrowing it
Nothing to install: this file belongs to openai/openai-cookbook. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/openai/openai-cookbook/main/.codex/skills/docs-editor/SKILL.mdgit clone --depth 1 https://github.com/openai/openai-cookbookWrote 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.
[](https://agentmods.dev/skills/openai/openai-cookbook/docs-editor)<a href="https://agentmods.dev/skills/openai/openai-cookbook/docs-editor"><img src="https://agentmods.dev/badge/skills/openai/openai-cookbook/docs-editor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/openai/openai-cookbook/docs-editor"><img src="https://agentmods.dev/badge/skills/openai/openai-cookbook/docs-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk warn
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.00876 |
| Opus 5.5 | $0.00023 | $0.00350 |
| Sonnet 5.5 | $0.00012 | $0.00175 |
| Haiku 4.5 | $0.00006 | $0.00088 |
Grade A, and why
docs-editor scanned grade A with 0 findings 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 2mo ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenAI Cookbook docs editor
Objective
Review Cookbook content conservatively. Improve correctness and readability without changing the author's intent, inventing facts, or creating unrelated churn.
Workflow
1. Define the scope
- Prefer explicit paths or the files changed in the pull request.
- For pull requests, review changed
.mdand.mdxfiles plus Markdown cells in changed.ipynbfiles. - Review
registry.yamlandauthors.yamlwhen content is added, moved, removed, or attributed to a new author. - Stay within the requested content. Do not turn a focused review into a repository-wide rewrite.
2. Protect notebook integrity
- When the request is editorial, edit only notebook Markdown cells.
- Preserve code cells, outputs, execution counts, attachments, cell order, cell IDs, and notebook and cell metadata.
- Avoid reserializing an entire notebook for a small prose change. Inspect the diff for unintended JSON churn.
- Do not execute notebook code unless the user requests it or code changes are in scope. Markdown-only edits require structural validation, not calls to external services.
- Never add hard-coded secrets. Document required environment variables such as
OPENAI_API_KEY.
3. Review the content
Load resources/style-guide.md and check:
- Technical claims, API names, model names, identifiers, commands, paths, and URLs.
- Agreement between prose, code, sample inputs, and expected outputs.
- Prerequisites, dependencies, environment variables, and steps needed to run an example.
- File and notebook names, headings, lists, numbering, cross-references, and links.
- Grammar, spelling, punctuation, terminology, capitalization, and concise wording.
- Publication metadata in
registry.yamland author metadata inauthors.yamlwhen applicable.
Verify uncertain technical claims from an authoritative source or flag them for review. Do not guess.
4. Prioritize findings
Use the repository's review bar:
- P0: Broken notebook JSON; hard-coded secrets; materially false or unsafe guidance; or any repository-defined P0 issue, including naming violations, typos, broken links, inconsistent formatting, placeholder identifiers, undocumented environment variables, or out-of-sync publication metadata.
- P1: Misleading instructions, prose that contradicts code or output, missing prerequisites, or a required link that does not work.
- P2: Clear improvements to grammar, consistency, organization, or readability that do not affect correctness.
- P3: Optional polish with little effect on comprehension.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 85 lines · 58 tokens per session scan A a10903669374
docs-editor is a skill published in the GitHub repository openai/openai-cookbook (76,971 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 876 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
docs-editor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docs-editoropenai/openai-cookbook | Skill | 77k | yesterday | MIT | A | 58 | Codex |
| delphi-uses-graphMaxiDonkey/DelphiGenAI | Skill | 88 | 4mo ago | MIT | A | 105 | Claude Code, Codex |
| pro-researchermiuuyy/codex-chatgpt-web | Skill | 16k | 7d ago | MIT | A | 51 | Codex |
| powerpointthe-open-agent/openagent | Skill | 5.7k | 4d ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| codebase-classificationgptme/gptme | Skill | 4.5k | yesterday | MIT | A | 16 | Claude Code, Codex |
| tmuxthe-open-agent/openagent | Skill | 5.7k | 4d ago | Apache-2.0 | A | 22 | Claude Code, Codex |
| openai-whisper-apithe-open-agent/openagent | Skill | 5.7k | 4d ago | Apache-2.0 | A | 20 | Claude Code, Codex |