ai-sdk-7

Solid

Vercel AI SDK v7 development and migration. Use when building or upgrading AI SDK 7 apps, especially ToolLoopAgent, WorkflowAgent, HarnessAgent, Claude Code/Codex/Pi harnesses, runtimeContext, toolsContext, toolApproval, telemetry, reasoning, file or skill uploads, realtime, video generation, or v6-to-v7 breaking changes. For AI SDK v6 code use ai-sdk-6; for version discovery and general doc lookup use ai-sdk.

AI & Automation 60 stars 19 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Vercel AI SDK v7 Development Guide Use this skill for AI SDK 7-specific implementation, migrations, and agent architecture. For AI SDK 6 projects, use `ai-sdk-6`. For unknown versions, use `ai-sdk` first to inspect `node_modules/ai/package.json` and local docs. ## First Checks 1. Inspect `package.json`, lockfiles, and `node_modules/ai/package.json`. 2. Confirm the installed `ai` major version is 7 before applying this guide. 3. Search local docs first: `node_modules/ai/docs/` and `node_modules/ai/src/`. 4. In monorepos, check app/package workspaces such as `apps/*/node_modules/ai/` and `packages/*/node_modules/ai/`. 5. If local docs are missing or ambiguous, verify against `ai-sdk.dev` or the Vercel AI repository docs source before coding. AI SDK 7 requires Node.js >=22 and AI SDK packages are ESM-only. Convert `require()` imports to `import` syntax before chasing downstream type errors. ## Install Use the project's package manager and install only packages needed by the task: ```bash bun add ai @ai-sdk/react bun add @ai-sdk/openai # or the provider already used by the project ``` For durable agents, add `@ai-sdk/workflow` and `workflow`. For harness agents, add `@ai-sdk/harness`, one harness adapter, and a sandbox provider. ## Core v7 Patterns | Task | Prefer in AI SDK 7 | | --- | --- | | Text generation | `generateText` / `streamText` | | System prompt | top-level `instructions`, not `system` | | Structured output | `output: Output.object(...)` on text fun...

Details

Author
laguagu
Repository
laguagu/claude-code-nextjs-skills
Created
7 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

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.

60 Updated yesterday
laguagu
AI & Automation Solid

ai-sdk-6

Vercel AI SDK v6 development. Use when building AI agents, chatbots, tool integrations, streaming apps, or structured output with the ai package. Covers ToolLoopAgent, useChat, generateText, streamText, tool approval, smoothStream, provider tools, MCP integration, and Output patterns.

60 Updated yesterday
laguagu
AI & Automation Listed

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

66 Updated today
wibus-wee