ingesting-spec
Skill2.7k starsChanged 10 months agoMITView on GitHub
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.
Trending
Quiet since September.about the whole repository
Who's talking about openai/openai-dotnet
- OkGoDoIt/OpenAI-API-dotnet“Big announcement: official support from Microsoft!”GitHub · May 10, 2024 · 5 reactions
- PowerShell/AIShell“Support displaying the Chain-of-Thought tokens for DeepSeek R1”GitHub · Apr 18, 2025 · 4 reactions
- OpenRouterTeam/openrouter-examples“OpenRouter compatible with SemanticKernel”GitHub · Jan 7, 2025 · 4 reactions
- A Hacker News story“OpenAI now has an official .NET library”Hacker News · Jun 7, 2024 · 3 points
- modelcontextprotocol/csharp-sdk“Content types that represent binary data are exposing UTF16 encoded strings”GitHub · Dec 5, 2025 · 2 reactions
The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 19
Talked about on GitHub and Hacker News (19 times).
On GitHub · 18
- May 10, 2024Big announcement: official support from Microsoft! — OkGoDoIt/OpenAI-API-dotnet5 reactions · 12 comments
- Apr 18, 2025Support displaying the Chain-of-Thought tokens for DeepSeek R1 — PowerShell/AIShell4 reactions
- Jan 7, 2025OpenRouter compatible with SemanticKernel — OpenRouterTeam/openrouter-examples4 reactions · 5 comments
- Dec 5, 2025Content types that represent binary data are exposing UTF16 encoded strings — modelcontextprotocol/csharp-sdk2 reactions · 3 comments
- Sep 25, 2025[BUG] Latest Azure.AI.OpenAI is incompatible with latest OpenAI — Azure/azure-sdk-for-net2 reactions · 6 comments
13 more on GitHub
- Sep 23, 2025[BUG] AzureFileClient.UploadFileAsync: Method not found: 'Void OpenAI.Files.OpenAIFile..ctor — Azure/azure-sdk-for-net2 reactions · 1 comment
- Aug 24, 2025feat: appsettings modeling OpenAI gpt — aliencube/open-chat-playground2 reactions · 8 comments
- Sep 2, 2026[C#] Generated JsonPatch propagation throws for nullable nested dynamic model properties — microsoft/typespec1 reaction
- Sep 2, 2026[http-client-csharp] ApiCompat can add null guards to nullable reference properties — microsoft/typespec1 reaction
- Jun 17, 2026[Responses] Add ResponsesClientOptions in OpenAI.Responses — review-bench/openai_openai-dotnet1 reaction · 1 comment
- Jun 16, 2026[Azure.AI.Projects] Responses input transform strips reasoning item 'id', breaking stateless encrypted-reasoning replay (HTTP 400 invalid_payload) — Azure/azure-sdk-for-net1 reaction · 4 comments
- May 22, 2026.NET: [Feature]: .NET Support for oauth_consent_request via AGUI — microsoft/agent-framework1 reaction · 3 comments
- Dec 23, 2025.NET AI ResponseItem Conversion Repro Example — dotnet/extensions1 reaction · 1 comment
- Nov 7, 2025Add [JsonIgnore] to JsonPatch property to avoid limitation in System.Text.Json — microsoft/typespec1 reaction
- Aug 5, 2025[BUG] 404 when using the latest Azure.OpenAI (2.2.0-beta5) + Latest OpenAI (2.3.0) — Azure/azure-sdk-for-net1 reaction · 2 comments
- May 4, 2025.Net: Bug: OpenAI Assistant throws Invalid URI: The Uri string is too long. — microsoft/semantic-kernel1 reaction · 3 comments
- Oct 29, 2024[Azure.AI.OpenAI] Add net8.0 target / remove RequiredTargetFrameworks workaround — Azure/azure-sdk-for-net1 reaction · 2 comments
- Jun 10, 2024[BUG] OpenAI Legacy Completion endpoint not exposed — Azure/azure-sdk-for-net1 reaction · 6 comments
On Hacker News · 1
- Jun 7, 2024OpenAI now has an official .NET library3 points
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- running-testsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Read file-locations.md to understand the repo layout
- Distinctive: line 36
Follow steps.md for the full ingestion workflow
- Distinctive: line 37
Use checklist.md to track your progress
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spec Ingestion
Overview
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:
- Copying updated base specs from upstream
- Reporting any compile errors in the base TSP
- Fixing compile errors in the client TSP layer
- Preserving custom C# code (renames, stubs)
- Running code generation
- Verifying the output
Skill Documents
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 |
Quick Start
- Review references.md for examples of past ingestions in your area
- Read file-locations.md to understand the repo layout
- Follow steps.md for the full ingestion workflow
- Use checklist.md to track your progress
- Consult patterns-and-gotchas.md when you hit issues
Available Areas
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
Key Rules
- Always add
@@clientLocationfor every operation in the client TSP (the latest spec no longer usesinterfaceblocks) - Update
[CodeGenType]stubs insrc/Custom/{Area}/Internal/GeneratorStubs.csfor any renamed types - Defer complex features — suggest them as follow-up items rather than implementing in the same ingestion
- Run
./scripts/Invoke-CodeGen.ps1to generate code (warnings are OK. Errors are not), thendotnet buildto verify (Should be no warnings or errors) - Work locally only — do NOT create PRs or file issues. Instead, suggest a list of issues that may need to be filed upstream
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

