{"slug":"ai-sdk-documentation","title":"AI SDK Documentation","summary":"This skill should be used when working with Vercel AI SDK, AI Gateway, streamText, generateText, generateObject, streamObject, tool calling, or AI SDK providers. Also relevant for \"ai-sdk\", \"@ai-sdk/*\" packages, or questions about AI SDK patterns, configuration, and best practice","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-01T14:18:40.131897Z","repo":{"url":"https://github.com/malob/nix-config","stars":462,"forks":38,"license":"MIT","updatedAt":"2026-09-27T04:51:44Z"},"bodyHtml":"<hr>\n<h2>name: AI SDK Documentation\ndescription: This skill should be used when working with Vercel AI SDK, AI Gateway, streamText, generateText, generateObject, streamObject, tool calling, or AI SDK providers. Also relevant for \"ai-sdk\", \"@ai-sdk/*\" packages, or questions about AI SDK patterns, configuration, and best practices.</h2>\n<h1>AI SDK Documentation Skill</h1>\n<p>This skill provides tools for accessing Vercel AI SDK documentation and AI Gateway model information. Use the bundled scripts to discover available documentation pages and fetch their full content.</p>\n<h2>Overview</h2>\n<p>The Vercel AI SDK documentation lives at <code>ai-sdk.dev</code> and covers:</p>\n<ul>\n<li><strong>Core SDK</strong> (<code>ai</code> package) - generating text, streaming, tool calling, embeddings</li>\n<li><strong>UI integrations</strong> - React hooks, streaming UI components</li>\n<li><strong>RSC</strong> - React Server Components integration</li>\n<li><strong>Providers</strong> - Configuration for OpenAI, Anthropic, Google, and 30+ other providers</li>\n<li><strong>AI Gateway</strong> - Vercel's multi-provider routing service</li>\n</ul>\n<p>The documentation is large (600+ pages) and frequently updated. Rather than relying on stale knowledge, always use the scripts to fetch current documentation.</p>\n<h2>Scripts</h2>\n<p>All scripts are located in <code>${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/</code>.</p>\n<h3>list-docs.sh</h3>\n<p>Discover available documentation pages.</p>\n<p><strong>Usage:</strong></p>\n<pre><code># List all pages grouped by category\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/list-docs.sh\n\n# List pages in a specific category\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/list-docs.sh docs\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/list-docs.sh cookbook\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/list-docs.sh providers\n</code></pre>\n<p><strong>Categories:</strong></p>\n<ul>\n<li><code>docs</code> - Core documentation (concepts, guides, API reference)</li>\n<li><code>cookbook</code> - Code examples by framework (Next.js, Node.js, etc.)</li>\n<li><code>providers</code> - Provider-specific setup and configuration</li>\n<li><code>elements</code> - UI component library documentation</li>\n<li><code>tools-registry</code> - Third-party tool integrations</li>\n</ul>\n<p><strong>When to use:</strong> Run this first to discover what pages exist. Do not assume documentation structure.</p>\n<h3>fetch-doc.sh</h3>\n<p>Fetch the full markdown content of a specific documentation page.</p>\n<p><strong>Usage:</strong></p>\n<pre><code># Fetch a documentation page\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/fetch-doc.sh /docs/ai-sdk-core/generating-text\n\n# Fetch a cookbook example\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/fetch-doc.sh /cookbook/next/generating-structured-data\n\n# Fetch provider documentation\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/fetch-doc.sh /providers/ai-sdk-providers/openai\n</code></pre>\n<p><strong>Input:</strong> A documentation path (e.g., <code>/docs/ai-sdk-core/tools-and-tool-calling</code>)</p>\n<p><strong>Output:</strong> Full markdown content of the page</p>\n<p><strong>When to use:</strong> After identifying relevant pages with <code>list-docs.sh</code>, fetch the ones that look most relevant to the task.</p>\n<h3>query-models.sh</h3>\n<p>Query the AI Gateway models API for available models and their capabilities.</p>\n<p><strong>Usage:</strong></p>\n<pre><code># List all models with their provider\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh list\n\n# List all providers\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh providers\n\n# List all capability tags\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh tags\n\n# List models from a specific provider\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh --provider anthropic\n\n# List models with a specific capability\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh --tag vision\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh --tag tool-use\n\n# Get full details for a specific model\n${CLAUDE_PLUGIN_ROOT}/skills/ai-sdk-docs/scripts/query-models.sh --details openai/gpt-4o\n</code></pre>\n<p><strong>Model details include:</strong> context window, max tokens, pricing, capability tags (vision, tool-use, reasoning, etc.)</p>\n<p><strong>When to use:</strong> When needing to know what models are available, compare model capabilities, or check pricing/context limits.</p>\n<h2>Workflow Guidelines</h2>\n<h3>Finding Documentation</h3>\n<ol>\n<li><strong>Start with discovery</strong>: Run <code>list-docs.sh</code> to see available pages</li>\n<li><strong>Identify relevant pages</strong>: Look for pages whose paths match the topic</li>\n<li><strong>Fetch content</strong>: Use <code>fetch-doc.sh</code> to get full content of relevant pages</li>\n<li><strong>Read multiple pages if needed</strong>: Topics often span multiple pages (e.g., a concept page + API reference page)</li>\n</ol>\n<h2>Important Notes</h2>\n<ul>\n<li><strong>Always fetch current docs</strong>: Do not rely on potentially outdated knowledge. Use the scripts to get current documentation.</li>\n<li>If a page doesn't appear in <code>list-docs.sh</code> output, it doesn't exist.</li>\n<li><strong>Some pages may not have .md versions</strong>: The script will indicate when this happens.</li>\n<li><strong>Documentation is comprehensive</strong>: The AI SDK docs include guides, API references, examples, and troubleshooting. Check multiple sections for complete information.</li>\n</ul>\n<h2>AI Gateway</h2>\n<p>The AI Gateway is Vercel's unified API for accessing multiple AI providers. Key points:</p>\n<ul>\n<li>Single API endpoint, multiple providers</li>\n<li>Use <code>query-models.sh</code> to see all available models</li>\n<li>Models are identified as <code>provider/model-name</code> (e.g., <code>anthropic/claude-sonnet-4</code>)</li>\n<li>Provider-specific documentation is under <code>/providers/</code></li>\n</ul>\n","files":[{"path":"scripts/fetch-doc.sh","sizeBytes":1505,"isText":true},{"path":"scripts/list-docs.sh","sizeBytes":1396,"isText":true},{"path":"scripts/query-models.sh","sizeBytes":2244,"isText":true},{"path":"SKILL.md","sizeBytes":5153,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-01T14:19:28.590852Z","sha256":"8CA9BA0ED2F4F5B59D799484E9E72D310B7FAD73E82DD67353CEF60BEB99420E","sizeBytes":4242},"review":null,"source":{"repositoryUrl":"https://github.com/malob/nix-config","path":"configs/claude/plugins/ai-sdk/skills/ai-sdk-docs","license":"MIT","commit":"500b474e4d1a7bb5bfe8e14e66fadf3e739394b1","subtreeSha":"9EFC0FEE5AB18E2CA18CE4F67BBF5F7108CF202B0AC19EB3E80FEA54BF2BE18B","lastSyncedAt":"2026-10-01T14:18:38.843139Z"},"reviewedAt":"2026-10-01T14:20:57.816637Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/malob/nix-config/tree/master/configs/claude/plugins/ai-sdk/skills/ai-sdk-docs"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install malob-nix-config@llmmart"},{"target":"git","command":"git clone https://github.com/malob/nix-config.git"}]}