Skip to content
Back to skills

Add Function Examples

ASecurity

Guide for adding new AI function examples, for testing specific features against the actual provider APIs.

  • 27,142 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
developmenttestingapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add vercel/ai --skill add-function-examples --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Function Examples?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Function Examples
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vercel-add-function-examples/badge)](https://www.skillsdirectory.com/skills/vercel-add-function-examples)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-function-examples
description: Guide for adding new AI function examples, for testing specific features against the actual provider APIs.
metadata:
  internal: true
---

## 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.