Implements official OpenAI SDK patterns for Chat Completions, Responses API, and structured outputs in TypeScript.
This skill provides standardized patterns for integrating the official OpenAI SDK into TypeScript and Node.js projects within Claude Code. It enables developers to implement complex AI workflows, including the newer Responses API for agentic behaviors with built-in tools, type-safe structured data extraction using Zod, and low-latency streaming. By following production-grade best practices for error handling, retries, and client configuration, it ensures robust and scalable integration with the GPT-4o and o1 model families, as well as vision, audio, and embedding APIs.
Key Features
01Type-safe structured outputs using Zod schema validation
02Comprehensive multimodal support for vision, audio, and embeddings
03Production-ready error handling and client retry configuration
04Support for Responses API with server-side state and built-in tools
05Streamlined event-based and for-await streaming patterns
065 GitHub stars
Use Cases
01Developing high-performance RAG pipelines using embeddings and batch processing
02Building agentic workflows with built-in web search and code execution
03Extracting validated JSON data from LLM responses into TypeScript types