
Ai Sdk 6 Skills
This covers the AI SDK 6 beta migration with solid examples for the new agent abstraction, tool approval flows, and Groq integration for running Llama and other open weight models. The tool approval pattern is genuinely useful if you're building anything that needs user confirmation before executing actions like payments or deletions. The Groq provider examples show how to use fast, cheap Llama models with structured outputs and tool calling. One thing to note is the Vercel AI Gateway section requires a credit card and bills for usage, so factor that into your setup if you're routing calls through it. The migration notes suggest v5 code should mostly work, which is reassuring if you're already using the SDK.
- skills.sh installs
- 484
- GitHub stars
- 23
- last updated
- Aug 21, 2026
Install
$ npx -y skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills --agent claude-codeInstalls into .claude/skills of the current project.
Files
Links
- AI SDK 6 Beta Docs: https://v6.ai-sdk.dev/docs/announcing-ai-sdk-6-beta
- Groq Provider: https://v6.ai-sdk.dev/providers/ai-sdk-providers/groq
- Vercel AI Gateway: https://v6.ai-sdk.dev/providers/ai-sdk-providers/ai-gateway
- AI SDK GitHub: https://github.com/vercel/ai
- Groq Console Models: https://console.groq.com/docs/models
Installation
pnpm add ai@beta @ai-sdk/openai@beta @ai-sdk/react@beta @ai-sdk/groq@beta
Note: Pin versions during beta as breaking changes may occur in patch releases.
What's New in AI SDK 6?
1. Agent Abstraction (New)
Unified interface for building agents with full control over execution flow, tool loops, and state management.
import { ToolLoopAgent } from 'ai';
import { tool } from 'ai';
import { z } from 'zod';
const weatherTool = tool({
description: 'Get weather for a location',
inputSchema: z.object({ city: z.string() }),
execute: async ({ city }) => ({ temperature: 72, condition: 'sunny' }),
});
const agent = new ToolLoopAgent({
model: 'groq/llama-3.3-70b-versatile', // or any model
instructions: 'You are a helpful weather assistant.',
tools: { weather: weatherTool },
});
Sponsors
Details
- Repository
- github.com/gocallum/nextjs16-agent-skills
- Categories
- Backend & APIs, AI & Agent Building, Cloud & Infrastructure
- First seen
- Jun 3, 2026