platform: Skill for Claude Code

.agents/skills/ai-sdk/SKILL.md

ai-sdk is a skill for Claude Code, Codex from tutur3u/platform. It costs 21 tokens per session (512 once invoked), scanned A, a copy of ai-sdk, Apache-2.0.

A guide for using the AI SDK, a programming library for adding text generation, chat, and agent behaviour to applications.

In plain words
What is it for?
Use it to build AI agents, chatbots, and text-generation features, or to answer questions about functions, tools, and supported AI providers.
Why use it?
It provides current documentation and source references when you need to understand the SDK or troubleshoot its use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is tutur3u/platform's own configuration. It tells Claude Code and Codex how to work on platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tutur3u/platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tutur3u/platform/main/.agents/skills/ai-sdk/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tutur3u/platform

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/tutur3u/platform/ai-sdk.svg)](https://agentmods.dev/skills/tutur3u/platform/ai-sdk)
Your own site
<a href="https://agentmods.dev/skills/tutur3u/platform/ai-sdk"><img src="https://agentmods.dev/badge/skills/tutur3u/platform/ai-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00021 $0.00512
Opus 5 $0.00010 $0.00256
Sonnet 5 $0.00004 $0.00102
Haiku 4.5 $0.00002 $0.00051

Measured today against content hash 28d65b79229a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 today.

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 — 0 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.

.agents/skills/ai-sdk/SKILL.md · 54 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.

Use documentation matching the installed version. Upgrade only when required by the requested change or explicitly requested.

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. today Changed · -64 tokens per session 28d65b79229a
  2. 6d ago First seen · 54 lines · 85 tokens per session scan A 381668133e23

Subscribe to this mod's changes

ai-sdk is a skill published in the GitHub repository tutur3u/platform (53 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 512 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ai-sdk, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

magic-ui

Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects. It covers component selection, shadcn registry installation (@magicui/), integration patterns, and practical quality checks for accessibility and maintainability.

magicuidesign/magicui · 56 tokens

frontend-engineer

!cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults" !cat .forgewright/codebase-context.md…

buiphucminhtam/forgewright · 55 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

nextjs-app-router

Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient/HydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.

trpc/trpc · 74 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

openapi

Generate OpenAPI 3.1 spec from a tRPC router with @trpc/openapi CLI or programmatic API. Generate typed REST client with @hey-api/openapi-ts and configureTRPCHeyApiClient(). Configure transformers (superjson, EJSON) for generated clients. Alpha status.

trpc/trpc · 64 tokens