add-function-examples

add-function-examples is a skill for Claude Code, Codex from vercel/ai. It costs 23 tokens per session (188 once invoked), scanned A, original, no licence file.

A guide for adding AI SDK function examples that test particular features with real provider APIs, which are the services the SDK connects to.

In plain words
What is it for?
Use it when adding examples for specific AI SDK features or testing those features with provider APIs.
Why use it?
It helps keep feature examples focused while checking their behaviour against actual provider services.

Skill for Claude CodeCodex ✓ vendor

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when adding examples for specific AI SDK features or testing those features with provider APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel/ai/add-function-examples
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vercel/ai --skill add-function-examples
Clone the repo
git clone --depth 1 https://github.com/vercel/ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-function-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/ai/add-function-examples/github.svg)](https://agentmods.dev/skills/vercel/ai/add-function-examples)
Your own site
<a href="https://agentmods.dev/skills/vercel/ai/add-function-examples"><img src="https://agentmods.dev/badge/skills/vercel/ai/add-function-examples/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-function-examples

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/ai/add-function-examples"><img src="https://agentmods.dev/badge/skills/vercel/ai/add-function-examples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 188 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00188
Opus 5.5 $0.00009 $0.00075
Sonnet 5.5 $0.00005 $0.00038
Haiku 4.5 $0.00002 $0.00019

Measured 1mo ago against content hash b4befbc5a0e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-function-examples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/add-function-examples/SKILL.md · 15 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 15 lines · 23 tokens per session scan A b4befbc5a0e0

Subscribe to this mod's changes

add-function-examples is a skill published in the GitHub repository vercel/ai (27,365 stars, last pushed today), with no licence file. It adds 23 tokens to every session and 188 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ax-agent-optimize

This skill helps an LLM generate correct AxAgent tuning and evaluation code using @ax-llm/ax. Use when the user asks about agent.optimize(...), judgeOptions, eval datasets, optimization targets, saved optimizedProgram artifacts, or agent optimization guidance.

ax-llm/ax · 57 tokens

react-testing

React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.

affaan-m/ECC · 59 tokens

react-patterns

React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.

affaan-m/ECC · 49 tokens

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.

react/react · 42 tokens

compiler-port

Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.

react/react · 35 tokens

compiler-verify

Use when you need to run all compiler checks (tests, lint, format) before committing. Detects whether TS or Rust code changed and runs the appropriate checks.

react/react · 37 tokens