What problem does it solve?
When new features or bug fixes land in the AI SDK, there is no systematic way to verify them against real provider APIs or to document usage for developers. This Skill reviews branch changes and adds the appropriate runnable examples to the examples/ai-functions directory.
Core Features & Use Cases
- Change-Driven Example Creation: Reviews the current branch to identify new or modified features that need example coverage.
- Model-Aware Variants: Adds generateText and streamText variants for language models, or the relevant top-level function (generateImage, generateSpeech) for other model kinds.
- Type Safety Verification: Runs pnpm type-check:full after creating examples and fixes any errors encountered.
- Use Case: After implementing a new streaming feature for a language model, use this Skill to generate both generateText and streamText examples that exercise the feature against the actual provider API.
Quick Start
Review the changes in my current branch and add appropriate function examples to examples/ai-functions for any new or modified features.