Tanstack AI
secondsky/claude-skills
TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.
Entry point for TanStack AI skills. An agent skill from TanStack/ai.
$ npx skills add TanStack/ai --skill ai-core -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TanStack/ai ai-core --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/ai/skills/ai-core .claude/skills/ai-core && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .claude/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-coreType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add TanStack/ai --skill ai-core -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TanStack/ai ai-core --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/ai/skills/ai-core .agents/skills/ai-core && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .agents/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TanStack/ai --skill ai-core -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TanStack/ai ai-core --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/ai/skills/ai-core .cursor/skills/ai-core && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .cursor/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/TanStack/ai.git --path packages/ai/skills/ai-core--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add TanStack/ai --skill ai-core -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TanStack/ai ai-core --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/ai/skills/ai-core .gemini/skills/ai-core && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .gemini/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install TanStack/ai ai-coreInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add TanStack/ai --skill ai-core -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/ai/skills/ai-core .github/skills/ai-core && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .github/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TanStack/ai --skill ai-core -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install TanStack/ai ai-core --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/ai/skills/ai-core .opencode/skills/ai-core && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ai-core" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai/skills/ai-core into .opencode/skills/ai-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-core", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ai-coreEntry point for TanStack AI skills. An agent skill from TanStack/ai.
AI Core is an agent skill from TanStack/ai. Entry point for TanStack AI skills. Routes to chat-experience, tool-calling, media-generation, structured-outputs, adapter-configuration, ag-ui-protocol, middleware, locks, custom-backend-integration, and debug-logging, plus the skills shipped by companion packages (@tanstack/ai-persistence, @tanstack/ai-code-mode). Use chat() not streamText(), openaiText() not createOpenAI(), toServerSentEventsResponse() not manual SSE, middleware hooks not onEnd callbacks.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Structured output and tool calling. It works with TanStack. The repository describes itself as: 🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 68aeada. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmnpxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
AI Core loads about 1.8k tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 676 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from TanStack/ai at commit 68aeada, republished under its MIT licence (© TanStack). 676 words, ~1,822 tokens.
.claude/skills/ai-core/SKILL.md (or your agent's skills folder).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).
| 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 |
Some capabilities live in their own package and ship their own skills. Install the package, then read its skills — do not guess the API from this file.
@tanstack/ai-persistence — durable chat stateMakes a conversation survive a reload, a server restart, a second device, or a
paused tool approval. It ships the store contracts (MessageStore,
RunStore, InterruptStore, MetadataStore), the withPersistence /
withGenerationPersistence middleware, reconstructChat for server-side
hydrate, an in-memory reference backend, and a conformance testkit. Multi-instance
locks are not in this package — LockStore / withLocks ship in
@tanstack/ai/locks; see ai-core/locks. The runs store contract is typed
against run lifecycle types (RunStatus, RunRecord, RunStore,
defineRunStore, InMemoryRunStore), which ship in @tanstack/ai itself;
see ai-core/middleware.
It does not ship a backend for your database — you implement the stores against Postgres, SQLite, D1, Mongo, or whatever you run, and the package's skills walk you through it (including Drizzle, Prisma, and Cloudflare recipes).
pnpm add @tanstack/ai-persistence
npx @tanstack/intent@latest installThe skills ship inside the package, so they only exist on disk once it is
installed — the second command re-scans node_modules and wires them into the
agent config. Until then the paths below resolve to nothing.
Entry point: node_modules/@tanstack/ai-persistence/skills/ai-persistence/SKILL.md
| Need to... | Read |
|---|---|
| Wire server-side chat history, runs, interrupts | ai-persistence/server/SKILL.md |
| Implement the store interfaces for your DB | ai-persistence/stores/SKILL.md |
| Write the adapter for the DB your app runs | ai-persistence/build-*-adapter/SKILL.md |
Browser-side persistence is not in this package — it ships with the framework packages, so read ai-core/client-persistence instead.
@tanstack/ai-code-mode — LLM code executionSee the ai-code-mode skill in that package.
@tanstack/ai-skills — portable Agent Skills at runtimeGives the model a library of SKILL.md skills it can load on demand, on any
provider, via the withSkills middleware and a load_skill tool. Skills come
from inlineSkill, skillDirectory, or a build-time bundle. This is the
runtime feature for the model inside your app, not the coding-assistant
skills this file is part of, and not the hosted codeExecutionTool /
shellTool skills (those run in a provider sandbox).
pnpm add @tanstack/ai-skills
npx @tanstack/intent@latest installEntry point: node_modules/@tanstack/ai-skills/skills/ai-skills/SKILL.md
@tanstack/ai-persistence skillschat() not streamText(). Use openaiText() not createOpenAI(). Import from @tanstack/ai, not ai.@tanstack/ai-react (or solid/vue/svelte/preact), not @tanstack/ai-client.toServerSentEventsResponse() to convert streams to HTTP responses. Never implement SSE manually.onEnd/onFinish callbacks on chat() — use middleware: [{ onFinish: ... }].chat({ tools }); the client passes the .client() implementation through the clientTools() helper into the tools option — useChat({ tools: clientTools(myTool.client(...)) }). There is no clientTools option. See ai-core/tool-calling.Targets TanStack AI v0.42.0.
© TanStack, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/ai/skills/ai-core of TanStack/ai.
Open the folder on GitHubat commit 68aeada
AI Core next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| AI Core this skillTanStack/ai | 3.2k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Tanstack AIsecondsky/claude-skills | 227 | 1 repos | ~3.6k | Automated safety check: Notes | MIT | |
| Build Agentchmonitor/chmonitor | 299 | — | ~1.8k | Automated safety check: Pass | GPL-3.0 | |
| Planning With Filesjarrodwatts/claude-code-config | 1.1k | 5 repos | ~967 | Automated safety check: Pass | None | |
| Tool Use Data Synthesissunny-glow/Auto-BenchMax | 1.3k | — | ~3.3k | Automated safety check: Pass | None | |
| Agent Harness ConstructionKartikLabhshetwar/mind-mentor | 147 | 7 repos | ~500 | Automated safety check: Pass | Apache-2.0 |
secondsky/claude-skills
TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.
chmonitor/chmonitor
Build an AI-agent application end-to-end — from an empty repo or an existing codebase.
jarrodwatts/claude-code-config
Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.
sunny-glow/Auto-BenchMax
Synthesize training data for ANY tool-use / agentic benchmark, in ANY repo.
KartikLabhshetwar/mind-mentor
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
wshobson/agents
Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.
TanStack/ai
A skill your agent uses when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output.
TanStack/ai
Sweep open (or listed) PRs with up to 100 parallel agents: security-scan outside contributors, rebase onto main when behind (push --force-with-lease), approve pending first-time-contributor CI when…
TanStack/ai
A skill your agent uses when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments).
TanStack/ai
A skill your agent uses when wiring inMemory() from @tanstack/ai-memory/in-memory — explains setup, options (embedder, extract, topK/minScore), when to pick it (dev/tests/single-process demos), and…
TanStack/ai
A skill your agent uses when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking…
TanStack/ai
A skill your agent uses when adding a public teaching example or a docs tutorial.
Works with
Categories
Entry point for TanStack AI skills. An agent skill from TanStack/ai. AI Core is an agent skill from TanStack/ai. Entry point for TanStack AI skills.
AI Core fits situations like: tasks that involve Structured output and tool calling.
Run `npx skills add TanStack/ai --skill ai-core -a claude-code`. Or copy the skill folder (packages/ai/skills/ai-core in TanStack/ai) into .claude/skills/ai-core in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TanStack/ai --skill ai-core -a codex`. Or copy the skill folder (packages/ai/skills/ai-core in TanStack/ai) into .agents/skills/ai-core in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TanStack/ai --skill ai-core -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ai-core, .gemini/skills/ai-core, .github/skills/ai-core and .opencode/skills/ai-core in your project.
Going by SKILL.md and its folder, AI Core needs the command-line tools its instructions call (pnpm and npx). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
AI Core is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with AI Core: Tanstack AI (secondsky/claude-skills, 227 stars), Build Agent (chmonitor/chmonitor, 299 stars), Planning With Files (jarrodwatts/claude-code-config, 1.1k stars) and Tool Use Data Synthesis (sunny-glow/Auto-BenchMax, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
TanStack (a GitHub organization) maintains it in TanStack/ai, which has 3,172 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 8, 2026.
Source: TanStack/ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.