Agent skill
add-function-examples
Guide for adding new AI function examples, for testing specific features against the actual provider APIs.
Install this agent skill to your Project
npx add-skill https://github.com/vercel/ai/tree/main/skills/add-function-examples
Metadata
Additional technical details for this skill
- internal
- YES
SKILL.md
Adding Function Examples
Review the changes in the current branch, and identify new or modified features or bug fixes that would benefit from having an example in the examples/ai-functions directory. These examples are used for testing specific features against the actual provider APIs, and can also serve as documentation for users.
Determine for which kind of model and top-level function the example should be added. For a language model, the example should be added in two variants, one for generateText and one for streamText. For any other models kinds, add the example for the relevant top-level function (e.g. generateImage, generateSpeech).
After creating the example, run pnpm type-check:full; fix any errors encountered.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
island-rescue
How to be rescued from a lonely island
island-rescue
How to be rescued from a lonely island
add-provider-package
Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk/<provider> package to integrate an AI service into the SDK.
adr-skill
Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.
update-provider-models
Add new or remove obsolete model IDs for existing AI SDK providers. Use when adding a model to a provider, removing an obsolete model, or processing a list of model changes from an issue. Triggers on "add model", "remove model", "new model ID", "obsolete model", "update model IDs".
capture-api-response-test-fixture
Capture API response test fixture.
Didn't find tool you were looking for?