ai-sdk

ai-sdk is a skill for Claude Code, Codex from BidingCC/BuildingAI. It costs 85 tokens per session (584 once invoked), scanned A, a copy of ai-sdk, Apache-2.0.

A guide for the AI SDK, a software library for adding text generation, chat, and agent features to applications. It explains where to find current documentation and source code for the SDK and its provider packages.

In plain words
What is it for?
Use it when building or troubleshooting text generation, streaming, chatbots, agents, tool calls, or integrations with providers such as OpenAI and Anthropic.
Why use it?
It helps developers use the right, current API details instead of relying on outdated examples, especially when working with agents, tools, or different AI providers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or troubleshooting text generation, streaming, chatbots, agents, tool calls, or integrations with providers such as OpenAI and Anthropic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bidingcc/buildingai/ai-sdk
About the project

BuildingAI is a visual platform for creating AI applications such as enterprise agents, knowledge-based systems, and customer-service tools without writing everything from code. It is for AI developers, entrepreneurs, and organizations that need configurable applications with features such as agents, MCP, RAG, knowledge bases, and model access. The catalogue skills support workflows around this platform.

BidingCC/BuildingAI · 1,949 stars · on GitHub · buildingai.cc

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BidingCC/BuildingAI --skill ai-sdk
Clone the repo
git clone --depth 1 https://github.com/BidingCC/BuildingAI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/bidingcc/buildingai/ai-sdk/github.svg)](https://agentmods.dev/skills/bidingcc/buildingai/ai-sdk)
Your own site
<a href="https://agentmods.dev/skills/bidingcc/buildingai/ai-sdk"><img src="https://agentmods.dev/badge/skills/bidingcc/buildingai/ai-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/bidingcc/buildingai/ai-sdk"><img src="https://agentmods.dev/badge/skills/bidingcc/buildingai/ai-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.00584
Opus 5.5 $0.00034 $0.00234
Sonnet 5.5 $0.00017 $0.00117
Haiku 4.5 $0.00009 $0.00058

Measured 3mo ago against content hash 1dbae085f2a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ai-sdk — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ai-sdk/SKILL.md · 62 lines

What it actually says

AI SDK Documentation

When you need up-to-date information about the AI SDK:

If using [email protected] or above

Search the bundled documentation and source code in node_modules/ai/:

  1. Documentation: grep "your query" node_modules/ai/docs/
  2. Source code: grep "your query" node_modules/ai/src/

To find specific files:

  • glob "node_modules/ai/docs/**/*.mdx" for documentation files
  • glob "node_modules/ai/src/**/*.ts" for source files

Provider packages (@ai-sdk/openai, @ai-sdk/anthropic, etc.) also include bundled docs in their respective node_modules/@ai-sdk/<provider>/docs/ directories.

When in doubt, update to the latest version of the AI SDK.

Otherwise

  1. Search the docs: https://ai-sdk.dev/api/search-docs?q=your_query
  2. The response includes matches with links ending in .md
  3. Fetch those .md URLs directly to get plain text content (e.g. https://ai-sdk.dev/docs/agents/building-agents.md)

Use these resources for current API details, examples, and usage patterns.

For common errors and troubleshooting, see Common Errors Reference.

For using Vercel AI Gateway, see AI Gateway Reference.

Provider-Specific Information ([email protected]+)

For questions about specific providers (OpenAI, Anthropic, Google, etc.), search their dedicated packages:

  1. Provider documentation: grep "your query" node_modules/@ai-sdk/<provider>/docs/
  2. Provider source code: grep "your query" node_modules/@ai-sdk/<provider>/src/

To find provider files:

  • glob "node_modules/@ai-sdk/<provider>/docs/**/*.mdx" for provider documentation
  • glob "node_modules/@ai-sdk/<provider>/src/**/*.ts" for provider source files

This is especially important for providerOptions, which are provider-specific settings passed to model calls. Each provider has unique options documented in their package.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 62 lines · 85 tokens per session scan A 1dbae085f2a4

Subscribe to this mod's changes

ai-sdk is a skill published in the GitHub repository BidingCC/BuildingAI (1,949 stars, last pushed 14d ago), licensed Apache-2.0. It adds 85 tokens to every session and 584 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to ai-sdk, differing in 22 lines, and is treated as a copy.

Related

ai-sdk compared with skills from other repositories

ai-sdk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-sdkBidingCC/BuildingAISkill1.9k14d agoApache-2.0A85Claude Code, Codex
dspyNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
chromaNousResearch/hermes-agentSkill267ktodayMITA12Claude Code, Codex
faissNousResearch/hermes-agentSkill267ktodayMITA11Claude Code, Codex
ai-engineering-toolkitsickn33/agentic-awesome-skillsSkill51kyesterdayMITA47Claude Code
memory-rag-poisoning-detectionTencent/AI-Infra-GuardSkill7.8ktodayApache-2.0A48Claude Code
autorag-setupMarker-Inc-Korea/AutoRAGSkill6.2ktodayApache-2.0A75Claude Code, Codex