.cursor/skills/ai-sdk-core-v6/SKILL.md
Build backend AI with Vercel AI SDK v5/v6. Agent abstraction, tool approval, error solutions. Use when: implementing AI SDK v5/v6 or troubleshooting AI errors.
npx skillsauth add blockmatic-icebox/basilic-old AI SDK v6 CoreInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
generateText for simple text generationgenerateObject for structured outputs with Zod schemasstreamText for streaming responsesToolLoopAgent (v6) for agent workflows with tool callingcallOptions for dynamic runtime configurationAI_APICallError, AI_NoObjectGeneratedError, etc.)openai, anthropic, google) for multi-provider supportresponse.error for typed error responsesonError callback in streamText for error handlingToolLoopAgent (v6) for agent workflows instead of manual tool orchestrationmode: 'json' when available for structured outputsany types (use proper error types)import { generateText } from 'ai'
import { openai } from '@ai-sdk/openai'
const result = await generateText({
model: openai('gpt-4'),
prompt: 'Hello, world!',
})
import { generateObject } from 'ai'
import { z } from 'zod'
const result = await generateObject({
model: openai('gpt-4'),
schema: z.object({
name: z.string(),
age: z.number(),
}),
prompt: 'Generate a person',
})
import { ToolLoopAgent } from 'ai'
import { openai } from '@ai-sdk/openai'
const agent = new ToolLoopAgent({
model: openai('gpt-4'),
tools: { /* tool definitions */ },
})
const result = await agent.run({ prompt: 'Task' })
See Production Patterns and Templates for detailed examples.
development
# Skill: wagmi ## Scope - React/Next.js wallet integration with Wagmi v3 for EVM chains - Contract interactions using viem v2 for address validation and transaction building - Transaction state management and error handling - Custom hooks wrapping wagmi for contract-specific interactions Does NOT cover: - Solana frontend development - Backend RPC interactions - Smart contract development ## Assumptions - Wagmi v3.3.2+ - viem v2.44.4 - React 18+ or Next.js 14+ - TypeScript v5+ with strict mo
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Advanced TypeScript patterns for type-safe, maintainable code using sophisticated type system features. Use when building type-safe APIs, implementing complex domain models, or leveraging TypeScript's advanced type capabilities.
development
TanStack Query (React Query) for async operations, data fetching, caching, and state management. Use when: fetching server data, managing async operations, caching responses, handling mutations, or any operation that benefits from automatic state management and caching.