docs-editor

docs-editor is a skill for Claude Code, 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 Claude CodeCodex

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 · 75,752 stars · on GitHub

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/openai/openai-cookbook/docs-editor.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.svg" alt="Measured on agentmods" 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. 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 $0.00058 $0.00876
Opus 5 $0.00029 $0.00438
Sonnet 5 $0.00012 $0.00175
Haiku 4.5 $0.00006 $0.00088

Measured 5d ago against content hash a10903669374, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 (75,752 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 876 once invoked, about $0.0003 per session on Opus 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.