Agent skill · software engineering · laguagu

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers ask about Vercel AI SDK, generateText, streamText, ToolLoopAgent, useChat, providers, tools, structured output, embeddings, streaming, or adding AI to an app. First identify the installed major version and route version-specific work: use ai-sdk-7 for AI SDK 7 features/migrations such as WorkflowAgent, HarnessAgent, reasoning, runtime/tools context, toolApproval, telemetry, realtime, or v6-to-v7 upgrades; use ai-sdk-6 for v6 code.

Why this skill is useful

Provides specific commands and versioning guidance for integrating the Vercel AI SDK that the AI wouldn't reliably generate on its own.

What it needs

Requires ai installed locally. About 4k tokens when loaded. Last updated 2026-08-03. 58 stars on the source repository.

What this skill does

Prerequisites Before searching docs, check the installed major version in package.json, lockfiles, or nodemodules/ai/package.json. AI SDK 7 implementation or migration work -> use ai-sdk-7. AI SDK 6 implementation work -> use ai-sdk-6. Unknown or mixed versions -> continue with this skill until the version is clear. If starting fresh or no version is pinned, assume the current line (AI SDK 7) and use ai-sdk-7. Before searching docs, check if nodemodules/ai/docs/ exists. If not, install only the ai package using the project's package manager (e.g., bun add ai). Do not install other packages at this stage. Provider packages (e.g., @ai-sdk/openai) and client packages (e.g., @ai-sdk/react) should be installed later when needed based on user requirements. Monorepo path note In Bun / pnpm / Yarn workspace monorepos, dependencies are usually not hoisted to the repo root — they live inside each app's nodemodules/. If nodemodules/ai/docs/ doesn't exist at the working directory, check workspace locations before assuming docs are missing: apps//nodemodules/ai/docs/ (e.g. apps/web/nodemodules/ai/docs/) packages//nodemodules/ai/docs/ Glob from the repo root: apps//nodemodules/ai/docs/ or /nodemodules/ai/docs/. Substitute the resolved path everywhere this skill says nodemodules/ai/docs/ or nodemodules/ai/src/. The same applies to provider docs at nodemodules/@ai-sdk/<provider>/docs/. Critical: Do Not Trust Internal Knowledge Everything you know about the AI SDK is outdated or wrong. Your training data contains obsolete APIs, deprecated patterns, and incorrect usage. When working with the AI SDK: 1. Ensure ai package is installed (see Prerequisites) 2. Identify the installed major version and use ai-sdk-7 or ai-sdk-6 for deep version-specific work 3. Search nodemodules/ai/docs/ and nodemodules/ai/src/ for current APIs 4. If not found locally, search ai-sdk.dev documentation (instructions below) 5. Never rely on memory - always verify against source code or docs 6. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills laguagu/ai-sdk

View the source on GitHub

Browse the @skills marketplace