openai/openai-cookbook
GitHubExamples and guides for using the OpenAI API
- chatgpt
- gpt-4
- openai
- openai-api
- Stars:
- 76.9k
- Language:
- Jupyter Notebook
- Default branch:
- main
- Last scored:
44.4
Overall
At a glance
- Rank
- #379 of 401
- Checks passed
- 5 of 17
- Full list below
- Best set up for
- Claude Code
- Score 50.7
- Needs most work for
- Aider
- Biggest fix: .aider.conf.yml (+14.1 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Reproducible dev envAdd a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.+11.8 pts
- 2Dependency manifestCommit a proper manifest (package.json, pyproject.toml, Cargo.toml, go.mod, etc.) plus a lockfile.+9.2 pts
- 3Linter / formatter configConfigure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.+7.9 pts
Score for each AI agent
Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →
Does openai/openai-cookbook have agent instructions?
An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.
- AGENTS.md / CLAUDE.md
AGENTS.md(new tab) · 5,672 characters- Agent-specific files
- None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
- Repos that have one
- 221 of 401 repos on the leaderboard · See examples →
All 17 checks · 5 passed
✗
Skills (.agents/skills)· 0% pass
No .agents/skills/<name>/SKILL.md
✓
✗
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
✓
✓
✗
Cursor rules (.cursor/rules)· 0% pass
No .cursor/rules/*.mdc or .cursorrules
✗
Dependency manifest· 0% pass
No dependency manifest found
✗
Reproducible dev env· 0% pass
No Makefile / devcontainer / Docker / equivalent found
✗
GEMINI.md· 0% pass
No GEMINI.md at repo root
✓
✗
Linter / formatter config· 0% pass
No linter/formatter config found
✗
.openhands/setup.sh· 0% pass
No .openhands/setup.sh
✗
Pre-commit / git hooks· 0% pass
No pre-commit / husky / lefthook found
~
Manageable size· 50% pass
3644 files — large
~
Test suite· 70% pass
Test files detected (examples/agents_sdk/tests/test_security_review_repository_labels.py)
✗
Type configuration· 0% pass
No type config found
How openai/openai-cookbook compares
- vs leaderboard average
- 22.4 pts below
- Average 66.8
Missing here, and how many repos have it
- Dependency manifest · passed by 92% of leaderboard repos
- Type configuration · passed by 68% of leaderboard repos
- Linter / formatter config · passed by 65% of leaderboard repos
One fix for the most agents: Linter / formatter config would raise the score for all 9 agents, by up to 14.1 points.
Similar repos
The repos closest to it in overall score.
- C · 22.7k ★
- serde-rs/serde44.4Rust · 10.9k ★
- getlago/lago44.4Go · 10.8k ★
- C# · 46.5k ★
- dotnet/maui43.0C# · 23.3k ★
- C++ · 4k ★
Same topics, any language
Repos tagged with the same GitHub topics, most shared first.
- Aider-AI/aider63.2Python · chatgpt, gpt 4, OpenAI
- TypeScript · chatgpt, OpenAI
- Python · chatgpt, OpenAI
- Python · chatgpt
- BerriAI/litellm85.2Python · OpenAI
- Python · OpenAI
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](https://agentfriendlycode.com/repo/github/openai/openai-cookbook)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.