What problem does it solve? Integrating the Pi AI SDK into Workbench requires choosing the correct runtime ownership, import paths, and stream semantics; mistakes cause auth bypasses, broken message streams, or leaked credentials. This Skill guides changes to model, provider, authentication, message stream, and image-generation code so they match the installed SDK version and Workbench's existing architecture. ## Core Features & Use Cases - Source-of-truth routing: Resolves the installed @earendil-works/pi-ai version, export map, and declaration files before writing any import, avoiding drift against the local Pi source checkout. - Runtime ownership guidance: Directs reuse of the coding-agent ModelRuntime for configured providers and credentials, reserving standalone createModels() collections for isolated consumers or tests. - Stream and protocol correctness: Preserves AssistantMessageEvent versus PiMessagesEvent semantics, contentIndex routing, partial tool-call buffering, and Workbench's durable compact delta protocol. - Use Case: When adding a custom OpenAI-compatible provider to Workbench, follow the Skill to build a createProvider() definition with declared auth, wire it through the existing ModelRuntime, and test abort, auth-failure, and refresh paths with fauxProvider() instead of real paid API calls. ## Quick Start Use the pi-ai-sdk skill to add a custom provider and update the model streaming reducer in Workbench without making real provider requests.