openai/ingesting-spec
Guide for ingesting the latest OpenAI TypeSpec specification into the openai-dotnet SDK. Use this when asked to update or ingest OpenAI API specs, copy base TypeSpec files from upstream, fix client TSP compile errors, or run code generation for new API areas.
npx skills add https://github.com/openai/openai-dotnet --skill ingesting-spec
This skill describes how to ingest the latest OpenAI TypeSpec specification (from the upstream microsoft/openai-openapi-pr repository) into the openai-dotnet SDK, area by area.
The process involves:
This skill is split across multiple files for easier navigation:
| Document | Description |
|----------|-------------|
| steps.md | Step-by-step process — the full 9-step workflow from copying spec to post-generation verification |
| file-locations.md | Key file locations — quick reference for all upstream and local paths, area mappings |
| patterns-and-gotchas.md | Common patterns & gotchas — lessons learned, pitfalls, and conventions to follow |
| checklist.md | Checklist — a task-by-task checklist for tracking progress during an ingestion |
| references.md | Reference PRs — detailed notes on past ingestion PRs with lessons learned |
Areas that can be ingested independently:
administration · assistants · audio · batch · chat · containers · conversations · embeddings · evals · files · fine-tuning · graders · images · models · moderations · realtime · responses · runs · threads · vector-stores · videos
@@clientLocation for every operation in the client TSP (the latest spec no longer uses interface blocks)specification/client/ instead[CodeGenType] stubs in src/Custom/{Area}/Internal/GeneratorStubs.cs for any renamed types./scripts/Invoke-CodeGen.ps1 to generate code (warnings are OK. Errors are not), then dotnet build to verify (Should be no warnings or errors)Take openai/ingesting-spec from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.