ai-core

ai-core is a skill for Claude Code from TanStack/ai. It costs 120 tokens per session (2,421 once invoked), scanned A, original, MIT.

A starting point for TanStack AI, a software toolkit for building applications that use AI models. It directs you to guidance for chat interfaces, tool use, generated media, typed JSON, provider setup, streaming, logging, and related tasks.

In plain words
What is it for?
Use it when building or configuring AI chat, tool calling, media generation, structured responses, streaming interfaces, analytics, locks, or custom model connections.
Why use it?
It helps you find the relevant instructions without having to know which TanStack AI package or feature handles your task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tanstack-ai plugin — 47 skills shipped together

Good fit Use it when building or configuring AI chat, tool calling, media generation, structured responses, streaming interfaces, analytics, locks, or custom model connections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tanstack/ai/ai-core
About the project

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.

TanStack/ai · 3,395 stars · on GitHub · tanstack.com

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 TanStack/ai --skill ai-core
Clone the repo
git clone --depth 1 https://github.com/TanStack/ai

Made for: Claude Code.

Or install tanstack-ai, the plugin that ships this one along with the rest of its 47 skills.

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-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/tanstack/ai/ai-core/github.svg)](https://agentmods.dev/skills/tanstack/ai/ai-core)
Your own site
<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.

agentmods 80×15 button for ai-core

Your own site · 80×15
<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>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,421 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
How audits are shown
Origin original No closer match found 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.00120 $0.02421
Opus 5.5 $0.00048 $0.00968
Sonnet 5.5 $0.00024 $0.00484
Haiku 4.5 $0.00012 $0.00242

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

Security

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.

packages/ai/skills/ai-core/SKILL.md · 192 lines

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

Read the full file on GitHub · 192 lines

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. 1mo ago Changed · +62 lines · +12 tokens per session cfbeeb560d4a
  2. 3mo ago First seen · 130 lines · 108 tokens per session scan A d69011d75ea8

Subscribe to this mod's changes

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.

Related

ai-core compared with skills from other repositories

ai-core next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-coreTanStack/aiSkill3.4ktodayMITA120Claude Code
claude-apiasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A317Claude Code, Codex
gemini-api-devasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A96Claude Code, Codex
gemini-live-api-devasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A110Claude Code, Codex
claude-api-in-prototypesasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A19Claude Code
gemini-api-cliasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0C49Claude Code, Codex
duckbug-knowledgeduckbugio/flockSkill4558d agoMITA25Claude Code, Codex