Agent skill · Data & Analytics

ai-sdk-core

Expert guidance for AI SDK Core: text generation, structured data, tool calling (tool/dynamicTool), MCP integration (createMCPClient, Experimental_StdioMCPTransport), embeddings/reranking, provider setup, middleware, telemetry, and error handling. Use when building with generateText/streamText, generateObject/streamObject, tools (needsApproval, strict, inputExamples, activeTools, toolChoice, experimental_context), embeddings (embed/embedMany/rerank), or MCP tools/resources/prompts/elicitation.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ai-sdk-core-bjornmelin-dev-skills --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/ai-sdk-core-bjornmelin-dev-skills/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# AI SDK Core Use AI SDK Core to generate text/structured output, call tools, and connect to MCP servers with consistent APIs across providers. ## Quick Start ```bash pnpm add ai @ai-sdk/openai zod@^4.3.5 ``` ```ts import { generateText } from 'ai'; const { text } = await generateText({ model: 'openai/gpt-4o', prompt: 'Explain quantum computing in one paragraph.', }); ``` ## Function Selection | Need | Function | Streaming | |------|----------|-----------| | Text response | `generateText` | No | | Streaming text | `streamText` | Yes | | Structured JSON | `generateObject` | No | | Streaming JSON | `streamObject` | Yes | | Embeddings | `embed` / `embedMany` | No | | Rerank | `rerank` | No | ## Core Patterns ### Generate Text ```ts import { generateText } from 'ai'; const { text, usage } = await generateText({ model: 'anthropic/claude-sonnet-4.5', system: 'You are a helpful assistant.', prompt: 'What is the capital of France?', }); ``` ### Stream Text ```ts import { streamText } from 'ai'; const result = streamText({ model: 'openai/gpt-4o', prompt: 'Write a short story.', }); for await (const chunk of result.textStream) { process.stdout.write(chunk); } ``` ### Generate Structured Data

What's inside
Steps it walks through
  1. Quick Start
  2. Function Selection
  3. Core Patterns
  4. Generate Text
  5. Stream Text
  6. Generate Structured Data
  7. Tool Calling (Typed)
  8. Dynamic Tools (Runtime Schemas)
  9. Multi-Step Tool Execution
  10. Tooling Checklist
  11. MCP Integration (Model Context Protocol)
  12. Reference Files
  13. Error Handling
  14. Provider Setup
Ships with 1 file
  • metadata.json
Commands it runs
pnpm add ai @ai-sdk/openai zod@^4.3.5
More from claude-skill-registry
All skills →
About this skill
What does the ai-sdk-core skill do?

Expert guidance for AI SDK Core: text generation, structured data, tool calling (tool/dynamicTool), MCP integration (createMCPClient, Experimental_StdioMCPTransport), embeddings/reranking, provider setup, middleware, telemetry, and error handling. Use when building with generateText/streamText, generateObject/streamObject, tools (needsApproval, strict, inputExamples, activeTools, toolChoice, experimental_context), embeddings (embed/embedMany/rerank), or MCP tools/resources/prompts/elicitation.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ai-sdk-core-bjornmelin-dev-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going