Agent skill · software engineering · laguagu
ai-sdk-7
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.
Why this skill is useful
Provides specific implementation patterns and migration guidance for AI SDK v7 that the AI wouldn't reliably generate on its own.
What it needs
Requires bun installed locally. About 3k tokens when loaded. Last updated 2026-08-03. 58 stars on the source repository.
What this skill does
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 nodemodules/ai/package.json and local docs. First Checks 1. Inspect package.json, lockfiles, and nodemodules/ai/package.json. 2. Confirm the installed ai major version is 7 before applying this guide. 3. Search local docs first: nodemodules/ai/docs/ and nodemodules/ai/src/. 4. In monorepos, check app/package workspaces such as apps//nodemodules/ai/ and packages//nodemodules/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: 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 functions Loop limit stopWhen: isStepCount(n) Shared server state runtimeContext Per-tool state/secrets tool contextSchema + toolsContext Sensitive tools toolApproval on generateText, streamText, or ToolLoopAgent Durable long-running agents WorkflowAgent from @ai-sdk/workflow Running Claude Code/Codex/Pi HarnessAgent from @ai-sdk/harness/agent Observability registerTelemetry(new OpenTelemetry()) Stalled calls timeout number or object In examples, MODEL is a placeholder: resolve a current model via the project's provider package (e.g. anthropic('...')) or a gateway model string, following the model-ID guidance in the ai-sdk skill. Never hard-code a model ID from memory. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills laguagu/ai-sdk-7