TanStack AI is a TypeScript SDK for building applications that stream AI responses, call tools, run agents, produce structured output, and handle multimodal or realtime interactions. Developers use it across frameworks and AI providers through shared typed interfaces and provider adapters. The catalogue entries are add-ons for working with this SDK.
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.
npx skills add TanStack/ai --skill ai-coregit clone --depth 1 https://github.com/TanStack/aiWrote 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.
[](https://agentmods.dev/skills/tanstack/ai/ai-core)<a href="https://agentmods.dev/skills/tanstack/ai/ai-core"><img src="https://agentmods.dev/badge/skills/tanstack/ai/ai-core/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.
<a href="https://agentmods.dev/skills/tanstack/ai/ai-core"><img src="https://agentmods.dev/badge/skills/tanstack/ai/ai-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 66 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 99 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium Agent Snooping · line 73 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 102 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.02421 |
| Opus 5.5 | $0.00048 | $0.00968 |
| Sonnet 5.5 | $0.00024 | $0.00484 |
| Haiku 4.5 | $0.00012 | $0.00242 |
Grade A, and why
ai-core 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TanStack AI — Core Concepts
TanStack AI is a type-safe, provider-agnostic AI SDK. Server-side functions
live in @tanstack/ai and provider adapter packages. Client-side hooks live
in framework packages (@tanstack/ai-react, @tanstack/ai-solid, etc.).
Always import from the framework package on the client — never from
@tanstack/ai-client directly (unless vanilla JS).
Sub-Skills
| Need to... | Read |
|---|---|
| Build a chat UI with streaming | ai-core/chat-experience/SKILL.md |
| Survive a browser reload (no extra package) | ai-core/client-persistence/SKILL.md |
| Add tool calling (server, client, or both) | ai-core/tool-calling/SKILL.md |
| Generate images, video, speech, or transcriptions | ai-core/media-generation/SKILL.md |
| Get typed JSON responses from the LLM | ai-core/structured-outputs/SKILL.md |
| Choose and configure a provider adapter | ai-core/adapter-configuration/SKILL.md |
| Implement AG-UI streaming protocol server-side | ai-core/ag-ui-protocol/SKILL.md |
| Add analytics, logging, or lifecycle hooks | ai-core/middleware/SKILL.md |
| Coordinate multi-instance work with locks | ai-core/locks/SKILL.md |
| Connect to a non-TanStack-AI backend | ai-core/custom-backend-integration/SKILL.md |
| Turn on/off debug logging, pipe into pino/winston | ai-core/debug-logging/SKILL.md |
| Persist chats server-side (history, runs) | See @tanstack/ai-persistence package skills |
| Set up Code Mode (LLM code execution) | See @tanstack/ai-code-mode package skills |
| Give the model a catalog of SKILL.md skills | See @tanstack/ai-skills package skills |
| Let the model use a browser or a desktop | See "Computer use" below |
What ships with it
19 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.
- adapter-configuration/references/anthropic-adapter.md 4.8 KB
- adapter-configuration/references/byteplus-adapter.md 6.9 KB
- adapter-configuration/references/gemini-adapter.md 3.5 KB
- adapter-configuration/references/grok-adapter.md 2.7 KB
- adapter-configuration/references/groq-adapter.md 2.8 KB
- adapter-configuration/references/ollama-adapter.md 3.5 KB
- adapter-configuration/references/openai-adapter.md 4.2 KB
- adapter-configuration/references/openrouter-adapter.md 3.6 KB
- adapter-configuration/SKILL.md 29 KB
- ag-ui-protocol/SKILL.md 15 KB
- chat-experience/SKILL.md 34 KB
- client-persistence/SKILL.md 11 KB
- custom-backend-integration/SKILL.md 15 KB
- debug-logging/SKILL.md 11 KB
- locks/SKILL.md 5.5 KB
- media-generation/SKILL.md 57 KB
- middleware/SKILL.md 39 KB
- structured-outputs/SKILL.md 30 KB
- tool-calling/SKILL.md 33 KB
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.
- 1mo ago Changed · +62 lines · +12 tokens per session cfbeeb560d4a
- 3mo ago First seen · 130 lines · 108 tokens per session scan A d69011d75ea8
ai-core is a skill published in the GitHub repository TanStack/ai (3,395 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 2,421 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ai-core compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ai-coreTanStack/ai | Skill | 3.4k | today | MIT | A | 120 | Claude Code |
| claude-apiasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 317 | Claude Code, Codex |
| gemini-api-devasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 96 | Claude Code, Codex |
| gemini-live-api-devasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 110 | Claude Code, Codex |
| claude-api-in-prototypesasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 19 | Claude Code |
| gemini-api-cliasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | C | 49 | Claude Code, Codex |
| duckbug-knowledgeduckbugio/flock | Skill | 455 | 8d ago | MIT | A | 25 | Claude Code, Codex |