
vercel-labs/ai
5 skills2.7k installs129k starsGitHub
Install
npx skills add https://github.com/vercel-labs/aiSkills in this repo
1Ai Sdkai-sdk is a Claude Code skill for the Vercel AI SDK that answers questions and helps implement AI-powered features. It covers core functions including generateText, streamText, ToolLoopAgent, and embed, plus React hooks useChat and useCompletion. The skill addresses AI providers such as OpenAI, Anthropic, and Google, along with streaming, tool calling, structured output, embeddings, and RAG system patterns. Triggers include AI SDK, Vercel AI SDK, add AI to my app, build an agent, or tool calling queries. Developers reach for ai-sdk when implementing chatbots, agents, or text generation with the official Vercel AI SDK rather than outdated or hallucinated API references.2.6kinstalls2Develop Ai Functions ExampleDevelop AI Functions Example is an internal Vercel AI SDK skill for working inside examples/ai-functions. Solo builders who fork or contribute to the SDK—or who run the official example matrix against their chosen providers—use it when creating, running, or changing scripts under examples/ai-functions/src. Each subdirectory mirrors a public API: generateText and streamText, generateObject and streamObject, ToolLoopAgent workflows, embed and embedMany, plus generateImage, generateSpeech, transcribe, and rerank. The workflow keeps provider validation and feature demos consistent instead of one-off scratch files. It is not a consumer-facing app builder; it is procedural knowledge for the example harness. Pair with broader AI SDK documentation when wiring those patterns into your own agent or API product.65installs3Add Function ExamplesThe add-function-examples skill guides contributors adding examples to examples/ai-functions after branch changes introduce features or fixes worth demonstrating against live provider APIs. Identify affected model kind and top-level function: language models need both generateText and streamText variants while image or speech models use their respective entrypoints like generateImage or generateSpeech. After creating examples run pnpm type-check:full and fix any type errors. Examples double as integration checks with real providers and as end-user reference implementations. Adds examples under examples/ai-functions directory. Language models need generateText and streamText variants. Maps model kind to correct top-level AI function. Runs pnpm type-check:full after adding examples. Supports provider API testing and user documentation. Type-checked examples exercising the relevant provider APIs. User adds examples after AI SDK feature or bugfix work. Vercel AI SDK contributors documenting new capabilities.14installs4Major Version ModeThe major-version-mode skill sets context for AI SDK major version work where breaking changes are acceptable yet consumer disruption should stay minimal. Renamed exports should get deprecated package-level aliases with @deprecated JSDoc when low debt, otherwise confirm clean breaks with the user. Message type changes deprecate in @ai-sdk/provider-utils and retain old Zod shapes in packages/ai consumer layer with removal TODOs for the following major. Provider spec @ai-sdk/provider changes touch only the latest spec version, allow clean breaks for implementers, and require asking which spec version if unclear. Documentation updates go to content/docs and migration guide sections in content/docs/08-migration-guides for consumer-facing migrations. Only invoke when user explicitly calls /major-version-mode.12installs5Island Rescueisland-rescue skill documents How to be rescued from a lonely island. name: island-rescue description: How to be rescued from a lonely island Covers installation, configuration, and when-to-use guidance from the upstream SKILL.md workflow.2installs