ai-sdk-6-skills — Claude Code skill: what it does, how to install
This skill gives coding assistants patterns for AI SDK 6 Beta, covering agent loops and Groq setups. It speeds up migration from v5.
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a claude-codeWhat ai-sdk-6-skills does
This skill provides code patterns for AI SDK 6 Beta features. It details the ToolLoopAgent abstraction, which controls tool calling loops and keeps state. It also covers structured outputs via Zod and document reranking through Cohere. For sensitive actions, tools can require explicit user approval before running.
The guide outlines Groq provider setups for open-weight models. It includes Llama 3.3 configurations, reasoning formats, and multimodal inputs.
Beta releases break often. Lock package versions strictly in your dependencies so patch updates do not disrupt working code. Groq models also require a valid GROQ_API_KEY.
What it helps with
- migrate legacy agent workflows from AI SDK v5 to v6
- configure user confirmation prompts before executing sensitive tools
- build autonomous loops using ToolLoopAgent with structured outputs
- integrate Groq open-weight models into AI SDK workflows
Example prompts for the agent
- Show me how to require user approval for a tool in AI SDK 6.
- Create a ToolLoopAgent setup with Groq Llama 3.3 and a structured output schema.
- Implement document reranking with Cohere using AI SDK v6 helpers.
How to install ai-sdk-6-skills
1Skills CLI (Vercel)
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a claude-code2Manually: put the files in place
~/.claude/skills/ai-sdk-6-skills/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ai-sdk-6-skills/
1Skills CLI (Vercel)
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a codex2Manually: put the files in place
.agents/skills/ai-sdk-6-skills/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a cursor2Manually: put the files in place
.cursor/skills/ai-sdk-6-skills/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install gocallum/nextjs16-agent-skills ai-sdk-6-skills2Manually: put the files in place
.github/skills/ai-sdk-6-skills/SKILL.md1Skills CLI (Vercel)
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a gemini-cli2Platform CLI
gemini skills install https://github.com/gocallum/nextjs16-agent-skills --path skills/ai-sdk-6-skillsManually: put the files in place
.devin/skills/ai-sdk-6-skills/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about ai-sdk-6-skills
How to install ai-sdk-6-skills in Claude Code?
Run npx skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills -a claude-code in your terminal. This creates the configuration file at ~/.claude/skills/ai-sdk-6-skills/SKILL.md.
What is ai-sdk-6-skills used for?
It provides implementation examples for AI SDK 6 Beta. Your assistant gets clear references for ToolLoopAgent, human-in-the-loop approvals, and structured data outputs.
What credentials are required for Groq models?
You must configure the GROQ_API_KEY environment variable. The @ai-sdk/groq package cannot send requests without it.