add-provider-package
Guide for adding first-party AI provider packages to the AI SDK. Use when creating a provider package under packages/ to integrate an external AI service.
Install
git clone https://github.com/vercel/ai /tmp/ai && ln -s /tmp/ai/skills/add-provider-package ~/.claude/skills/add-provider-package
From README
Add a Provider Package Add a complete first-party @ai-sdk/ package that follows the current provider interfaces, repository conventions, security requirements, and release process. Read the Current Sources of Truth Before implementing anything, read: Add new provider for current package and release requirements Provider development notes for naming, schemas, and workflow serialization Provider architecture for the provider abstraction Secure URL handling when the provider fetches polling, image, audio, video, or other URLs Use PR #18595 as a recent end-to-end example, but choose the current provider package whose API shape and model types most closely resemble the new provider as the implementation reference. Third parties can publish provider packages outside this repository. A new first-party @ai-sdk/ package requires prior discussion in an issue. Confirm that agreement exists before implementing the package.
