aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama. Use for chat APIs, React/Solid frontends with useChat/ChatClient, isomorphic tools, tool approval flows, agent loops, multimodal inputs, or troubleshooting streaming and
Claude Code
$ npx -y skills add secondsky/claude-skills --skill tanstack-ai --agent claude-code
Codex
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a codex -y
Cursor
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a cursor -y
Gemini CLI
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a gemini-cli -y
GitHub Copilot
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a github-copilot -y
OpenCode
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a opencode -y
Windsurf
$ npx skills add secondsky/claude-skills --skill tanstack-ai -a windsurf -y
name: tanstack-ai
description: "TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama. Use for chat APIs, React/Solid frontends with useChat/ChatClient, isomorphic tools, tool approval flows, agent loops, multimodal inputs, or troubleshooting streaming and tool definitions."
metadata:
keywords:
- TanStack AI
- "@tanstack/ai"
- "@tanstack/ai-react"
- "@tanstack/ai-client"
- "@tanstack/ai-solid"
- "@tanstack/ai-openai"
- "@tanstack/ai-anthropic"
- "@tanstack/ai-gemini"
- "@tanstack/ai-ollama"
- toolDefinition
- client tools
- server tools
- tool approval
- agent loop
- streaming
- SSE
- connection adapters
- multimodal
- type-safe models
- TanStack Start
- Next.js API
- toStreamResponse
- fetchServerSentEvents
- chat
- useChat
- ChatClient
- needsApproval
license: MIT**Status**: Production Ready ✅ **Last Updated**: 2025-12-09 **Dependencies**: Node.js 20+, TypeScript 5+; React 19+ for `@tanstack/ai-react`; Solid 1.8+ for `@tanstack/ai-solid` **Latest Versions**: @tanstack/ai@latest (alpha), @tanstack/ai-react@latest, @tanstack/ai-client@latest, adapters: @tanstack/ai-openai@latest @tanstack/ai-anthropic@latest @tanstack/ai-gemini@latest @tanstack/ai-ollama@latest
---
pnpm add @tanstack/ai @tanstack/ai-react @tanstack/ai-openai # swap adapters as needed: @tanstack/ai-anthropic @tanstack/ai-gemini @tanstack/ai-ollama pnpm add zod # recommended for tool schemas
**Why this matters:**
// app/api/chat/route.ts (Next.js) or src/routes/api/chat.ts (TanStack Start)
import { chat, toStreamResponse } from '@tanstack/ai'
import { openai } from '@tanstack/ai-openai'
import { tools } from '@/tools/definitions' // definitions only
export async function POST(request: Request) {
const { messages, conversationId } = await request.json()
const stream = chat({
adapter: openai(),
messages,
model: 'gpt-4o',
tools,
})
return toStreamResponse(stream)
}**CRITICAL:**
// components/Chat.tsx
import { useChat, fetchServerSentEvents } from '@tanstack/ai-react'
import { clientTools } from '@tanstack/ai-client'
import { updateUIDef } from '@/tools/definitions'
const updateUI = updateUIDef.client(({ message }) => {
alert(message)
return { success: true }
})
export function Chat() {
const tools = clientTools(updateUI)
const { messages, sendMessage, isLoading, approval } = useChat({
connection: fetchServerSentEvents('/api/chat'),
tools,
})
return (
<form onSubmit={e => { e.preventDefault(); sendMessage(e.currentTarget.prompt.value) }}>
<textarea name="prompt" disabled={isLoading} />
{approval?.pending && (
<button type="button" onClick={() => approval.approve()}>
Approve tool
</button>
)}
</form>
)
}**CRITICAL:**
---
// tools/definitions.ts
import { z, toolDefinition } from '@tanstack/ai'
export const getWeatherDef = toolDefinition({
name: 'getWeather',
description: 'Get current weather for a city',
inputSchema: z.object({ city: z.string() }),
needsApproval: true,
})
export const getWeather = getWeatherDef.server(async ({ city }) => {
const data = await fetch(`https://api.weather.gov/points?q=${city}`).then(r => r.json())
return { summary: data.properties?.relativeLocation?.properties?.city ?? city }
})
export const showToast = getWeatherDef.client(({ city }) => {
console.log(`Showing toast for ${city}`)
return { acknowledged: true }
})**Key Points:**
---
✅ Stream responses; avoid waiting for full completions. citeturn0search1 ✅ Pass **definitions** to the server and **implem
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations,…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.