Tanstack AI
secondsky/claude-skills
TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.
Portable Agent Skills (SKILL.md) for TanStack AI with @tanstack/ai-skills.
$ npx skills add TanStack/ai --skill ai-skills -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TanStack/ai ai-skills --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/skills/ai-skills .claude/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .claude/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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/skills/ai-skillsType 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-skills -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TanStack/ai ai-skills --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/skills/ai-skills .agents/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .agents/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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-skills -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TanStack/ai ai-skills --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/skills/ai-skills .cursor/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .cursor/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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/skills/ai-skills--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-skills -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TanStack/ai ai-skills --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/skills/ai-skills .gemini/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .gemini/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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-skillsInstalls 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-skills -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/skills/ai-skills .github/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .github/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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-skills -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-skills --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/skills/ai-skills .opencode/skills/ai-skills && 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-skills" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-skills/skills/ai-skills into .opencode/skills/ai-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-skills", 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-skillsPortable Agent Skills (SKILL.md) for TanStack AI with @tanstack/ai-skills.
AI Skills is an agent skill from TanStack/ai. Portable Agent Skills (SKILL.md) for TanStack AI with @tanstack/ai-skills. Renders a skill catalog and a loadskill tool via the withSkills middleware so any tool-calling model loads skills on demand, on any provider. Covers the SkillSource interface, inlineSkill/skillDirectory/staticSkills, the aggregate/ dedupe/filter/cache combinators, readskillresource, and the conformance suite. Use for provider-agnostic runtime skills — NOT hosted provider skills (codeExecutionTool/shellTool), which run in a provider sandbox.
Its SKILL.md is about 1.5k 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.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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 Skills loads about 1.5k tokens when it runs. Until then it costs about 133 tokens; SKILL.md has 451 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). 451 words, ~1,527 tokens.
.claude/skills/ai-skills/SKILL.md (or your agent's skills folder).Builds on the
ai-coreskill in@tanstack/ai. Package:@tanstack/ai-skills.
Portable Agent Skills give a tool-calling model a library of SKILL.md skills it
can load on demand, on any provider, with no server sandbox. This is separate
from hosted Provider Skills (codeExecutionTool / shellTool), which run in
the provider's sandbox and are referenced by ID.
| Need | Use |
|---|---|
| Model loads SKILL.md at runtime, any provider | withSkills (this package) |
| Hosted skill runs in a provider sandbox by ID | codeExecutionTool / shellTool |
| Teach a coding assistant how to use TanStack AI | Ship a SKILL.md, install via Intent |
The portable and hosted paths do not mix in one chat() call: withSkills
throws if a code_execution/shell tool in the same call carries skills.
import { chat, toServerSentEventsResponse } from '@tanstack/ai'
import { anthropicText } from '@tanstack/ai-anthropic'
import { inlineSkill, withSkills } from '@tanstack/ai-skills'
const pptx = inlineSkill({
name: 'pptx-builder',
description: 'Build and edit PowerPoint decks with python-pptx.',
instructions: '# Building a deck\nUse python-pptx. Edit slides, then save.',
})
export async function POST(request: Request) {
const { messages } = await request.json()
const stream = chat({
adapter: anthropicText('claude-sonnet-4-6'),
messages,
middleware: [withSkills(pptx)],
})
return toServerSentEventsResponse(stream)
}withSkills adds a catalog to the system prompt and a load_skill tool whose
name is constrained to your skill names. It renders <available_skills> XML
for Anthropic models and markdown for the rest. Re-loading a skill in the same
conversation returns a short "already loaded" marker.
A SkillSource is bytes only (no filesystem assumption), so the middleware runs
on the edge too.
inlineSkill({ name, description, instructions, resources? }) — one skill in
code or a DB row. Edge-safe.skillDirectory(root, { strict? }) — walk a folder for SKILL.md. Import from
@tanstack/ai-skills/node (uses node:fs). Strict by default.staticSkills(catalog) — build-time bundle via skillsCatalogPlugin (Vite).
Edge-safe, and .names is a typed union.Combine with aggregate, dedupe, filter, cache. withSkills([a, b]) is
sugar for dedupe(aggregate([a, b])). A single source is never auto-wrapped, so
a tenant-scoped source is never cached into a shared bucket.
To let the model read a skill's bundled files, pass createResourceTool(source)
in tools. withSkills detects it and advertises read_skill_resource. Paths
that escape the skill root are rejected.
withSkills inventories a skill's scripts/ in the load_skill result but does
NOT run them (script execution is a later phase). To let a skill run code, pass
your own execution tool to chat({ tools }) alongside withSkills and write the
skill so it tells the model to call that tool. withSkills composes with any
tools you provide.
import { toolDefinition } from '@tanstack/ai'
import { z } from 'zod'
// Your own runner: a provider sandbox, a Code Mode isolate, a remote worker.
import { runSomewhere } from './shell'
const executeShell = toolDefinition({
name: 'execute_shell',
description: 'Run a shell command and return its stdout.',
inputSchema: z.object({ command: z.string() }),
outputSchema: z.object({ stdout: z.string() }),
}).server(async ({ command }) => ({ stdout: await runSomewhere(command) }))
// chat({ tools: [executeShell], middleware: [withSkills(source)] })The skill supplies the command; your tool supplies the ability to run it. Swap in
a provider sandbox, a Code Mode isolate, or a remote worker without changing the
skill. For hosted skills that run in the provider's own sandbox, use
codeExecutionTool / shellTool instead (see provider-skills).
Implement SkillSource (list + load, optional revision/listResources/
readResource), then validate it with the shipped conformance suite:
import { runSkillSourceConformance } from '@tanstack/ai-skills/testing'
// Your SkillSource implementation, seeded with the `alpha` / `beta` fixture
// skills the suite expects.
import { myS3Source } from './my-s3-source'
import { fixtures } from './fixtures'
runSkillSourceConformance(() => myS3Source(fixtures), 's3')@tanstack/ai-skills — types, inlineSkill, combinators, withSkills,
createResourceTool, validateSkill, staticSkills, SkillLimitError.@tanstack/ai-skills/node — skillDirectory, skillsCatalogPlugin (node:fs).@tanstack/ai-skills/testing — runSkillSourceConformance.docs/skills/agent-skills.mddocs/skills/skill-sources.mddocs/skills/writing-adapters.mddocs/tools/provider-skills.md© 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/skills/ai-skills of TanStack/ai.
Open the folder on GitHubat commit 68aeada
AI Skills 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 Skills this skillTanStack/ai | 3.2k | — | ~1.5k | 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
Portable Agent Skills (SKILL.md) for TanStack AI with @tanstack/ai-skills. AI Skills is an agent skill from TanStack/ai.md) for TanStack AI with @tanstack/ai-skills.
AI Skills fits situations like: provider-agnostic runtime skills — NOT hosted provider skills (codeExecutionTool/shellTool); which run in a provider sandbox.
Run `npx skills add TanStack/ai --skill ai-skills -a claude-code`. Or copy the skill folder (packages/ai-skills/skills/ai-skills in TanStack/ai) into .claude/skills/ai-skills in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TanStack/ai --skill ai-skills -a codex`. Or copy the skill folder (packages/ai-skills/skills/ai-skills in TanStack/ai) into .agents/skills/ai-skills 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-skills -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-skills, .gemini/skills/ai-skills, .github/skills/ai-skills and .opencode/skills/ai-skills in your project.
SKILL.md names no scripts, command-line tools or credentials: AI Skills is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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 Skills 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.5k tokens (SKILL.md is roughly 6.1k 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 Skills: 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.