openai-cookbook: Skill for Codex

.codex/skills/docs-editor/SKILL.md

docs-editor is a skill for Codex from openai/openai-cookbook. It costs 58 tokens per session (876 once invoked), scanned A, original, MIT.

An editorial guide for reviewing OpenAI Cookbook notebooks, Markdown, and MDX documentation. It focuses on technical accuracy, clear writing, consistent style, runnable examples, and publication rules.

In plain words
What is it for?
Use it for documentation reviews, pull-request checks, and Markdown-cell reviews in OpenAI Cookbook notebooks.
Why use it?
It catches unclear, incorrect, or inconsistent documentation while protecting notebook code, outputs, and structure from accidental changes.

Skill for Codex ✓ vendor

Written for Codex: installed under .codex/.

This is openai/openai-cookbook's own configuration. It tells Codex how to work on openai-cookbook itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openai-cookbook configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is env -u VIRTUAL_ENV uv run --with nbformat python .github/scripts/check_notebooks.py.

About the project

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.

openai/openai-cookbook · 76,971 stars · on GitHub · cookbook.openai.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/openai/openai-cookbook/main/.codex/skills/docs-editor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/openai/openai-cookbook

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 docs-editor

README.md
[![agentmods](https://agentmods.dev/badge/skills/openai/openai-cookbook/docs-editor/github.svg)](https://agentmods.dev/skills/openai/openai-cookbook/docs-editor)
Your own site
<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.

agentmods 80×15 button for docs-editor

Your own site · 80×15
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk warn 6 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00058 $0.00876
Opus 5.5 $0.00023 $0.00350
Sonnet 5.5 $0.00012 $0.00175
Haiku 4.5 $0.00006 $0.00088

Measured 2mo ago against content hash a10903669374, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.codex/skills/docs-editor/SKILL.md · 85 lines

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 .md and .mdx files plus Markdown cells in changed .ipynb files.
  • Review registry.yaml and authors.yaml when 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.yaml and author metadata in authors.yaml when 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.

Read the full file on GitHub · 85 lines

Files

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.

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. 2mo ago First seen · 85 lines · 58 tokens per session scan A a10903669374

Subscribe to this mod's changes

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.

Related

docs-editor compared with skills from other repositories

docs-editor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-editoropenai/openai-cookbookSkill77kyesterdayMITA58Codex
delphi-uses-graphMaxiDonkey/DelphiGenAISkill884mo agoMITA105Claude Code, Codex
pro-researchermiuuyy/codex-chatgpt-webSkill16k7d agoMITA51Codex
powerpointthe-open-agent/openagentSkill5.7k4d agoApache-2.0A48Claude Code, Codex
codebase-classificationgptme/gptmeSkill4.5kyesterdayMITA16Claude Code, Codex
tmuxthe-open-agent/openagentSkill5.7k4d agoApache-2.0A22Claude Code, Codex
openai-whisper-apithe-open-agent/openagentSkill5.7k4d agoApache-2.0A20Claude Code, Codex