
Add Function Examples
- 14 installs
- 25.8k repo stars
- Updated July 28, 2026
- vercel-labs/ai
add-function-examples adds AI SDK function examples for new features.
About
The add-function-examples skill guides contributors adding examples to examples/ai-functions after branch changes introduce features or fixes worth demonstrating against live provider APIs. Identify affected model kind and top-level function: language models need both generateText and streamText variants while image or speech models use their respective entrypoints like generateImage or generateSpeech. After creating examples run pnpm type-check:full and fix any type errors. Examples double as integration checks with real providers and as end-user reference implementations. Adds examples under examples/ai-functions directory. Language models need generateText and streamText variants. Maps model kind to correct top-level AI function. Runs pnpm type-check:full after adding examples. Supports provider API testing and user documentation. Type-checked examples exercising the relevant provider APIs. User adds examples after AI SDK feature or bugfix work. Vercel AI SDK contributors documenting new capabilities.
- Adds examples under examples/ai-functions directory.
- Language models need generateText and streamText variants.
- Maps model kind to correct top-level AI function.
- Runs pnpm type-check:full after adding examples.
- Supports provider API testing and user documentation.
Add Function Examples by the numbers
- 14 all-time installs (skills.sh)
- Ranked #11,294 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
add-function-examples capabilities & compatibility
- Capabilities
- adding function examples workflow · model kind to function mapping
- Works with
- vercel · openai
- Use cases
- testing · documentation
npx skills add https://github.com/vercel-labs/ai --skill add-function-examplesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 14 |
|---|---|
| repo stars | ★ 25.8k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | vercel-labs/ai ↗ |
How do I add an AI SDK function example?
Add AI SDK function examples under examples/ai-functions for provider testing and user documentation.
Who is it for?
Vercel AI SDK contributors documenting new capabilities.
Skip if: Skip for internal refactors without user-visible API changes.
When should I use this skill?
User adds examples after AI SDK feature or bugfix work.
What you get
Type-checked examples exercising the relevant provider APIs.
Files
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.
Related skills
FAQ
What does add-function-examples do?
add-function-examples adds AI SDK function examples for new features.
When should I use add-function-examples?
User adds examples after AI SDK feature or bugfix work.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.