Tanstack Devtools

## Basic Setup

v1.0.0

关于此技能

安装 Tanstack Devtools,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

功能特性

React: @tanstack/react-devtools
Core: @tanstack/devtools
npm install @tanstack/react-devtools
import { TanStackDevtools } from '@tanstack/react-devtools'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
DreamEcho100 DreamEcho100
[1]
[0]
更新于: 5/1/2026

技能概览

先看适用场景、限制条件和安装路径,再决定是否继续深入。

安装 Tanstack Devtools,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

核心价值

推荐说明: tanstack-devtools helps agents react: @tanstack/react-devtools. Overview TanStack Devtools provides a unified debugging interface that consolidates devtools for TanStack Query, Router, and other libraries into a

适用 Agent 类型

适用场景: react: @tanstack/react-devtools.

赋予的主要能力 · Tanstack Devtools

适用任务: React: @tanstack/react-devtools
适用任务: Core: @tanstack/devtools
适用任务: npm install @tanstack/react-devtools

! 使用限制与门槛

  • 限制说明: Requires repository-specific context from the skill documentation
  • 限制说明: Works best when the underlying tools and dependencies are already configured

! 来源说明

此页面仍可作为安装与查阅参考。继续使用前,请结合上方适用场景、限制条件和上游仓库说明一起判断。

SKILL.md
Readonly

Overview

TanStack Devtools provides a unified debugging interface that consolidates devtools for TanStack Query, Router, and other libraries into a single panel. It features a framework-agnostic plugin architecture, real-time state inspection, and support for custom plugins. Built with Solid.js for lightweight performance.

React: @tanstack/react-devtools Core: @tanstack/devtools Status: Alpha

Installation

bash
1npm install @tanstack/react-devtools

Basic Setup

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2import { QueryClient, QueryClientProvider } from '@tanstack/react-query' 3 4const queryClient = new QueryClient() 5 6function App() { 7 return ( 8 <QueryClientProvider client={queryClient}> 9 <TanStackDevtools /> 10 {/* Your app content */} 11 <MyApp /> 12 </QueryClientProvider> 13 ) 14}

Built-in Plugins

Query Devtools

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools' 3 4function App() { 5 return ( 6 <QueryClientProvider client={queryClient}> 7 <TanStackDevtools 8 plugins={[ 9 { 10 id: 'react-query', 11 name: 'React Query', 12 render: () => <ReactQueryDevtoolsPanel />, 13 }, 14 ]} 15 /> 16 <MyApp /> 17 </QueryClientProvider> 18 ) 19}

Router Devtools

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools' 3 4function App() { 5 return ( 6 <TanStackDevtools 7 plugins={[ 8 { 9 id: 'router', 10 name: 'Router', 11 render: () => <TanStackRouterDevtoolsPanel router={router} />, 12 }, 13 ]} 14 /> 15 ) 16}

Combined Setup

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools' 3import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools' 4 5function App() { 6 return ( 7 <QueryClientProvider client={queryClient}> 8 <TanStackDevtools 9 plugins={[ 10 { 11 id: 'react-query', 12 name: 'React Query', 13 render: () => <ReactQueryDevtoolsPanel />, 14 }, 15 { 16 id: 'router', 17 name: 'Router', 18 render: () => <TanStackRouterDevtoolsPanel router={router} />, 19 }, 20 ]} 21 /> 22 <MyApp /> 23 </QueryClientProvider> 24 ) 25}

AI Devtools

For debugging TanStack AI workflows:

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2import { AIDevtoolsPanel } from '@tanstack/ai-react/devtools' 3 4function App() { 5 return ( 6 <TanStackDevtools 7 plugins={[ 8 { 9 id: 'ai', 10 name: 'AI', 11 render: () => <AIDevtoolsPanel />, 12 }, 13 ]} 14 /> 15 ) 16}

AI Devtools features:

  • Message Inspector - View full conversation history with metadata
  • Token Usage - Track input/output tokens and costs per request
  • Streaming Visualization - Real-time view of streaming chunks
  • Tool Call Debugging - Inspect tool calls, parameters, and results
  • Thinking/Reasoning Viewer - Debug reasoning tokens from thinking models
  • Adapter Switching - Test different providers in development

Plugin System

Plugin Interface

typescript
1interface DevtoolsPlugin { 2 id: string // Unique identifier 3 name: string // Display name in the devtools panel 4 render: () => JSX.Element // React component to render 5}

Custom Plugins

tsx
1import { TanStackDevtools } from '@tanstack/react-devtools' 2 3// Custom state inspector plugin 4const stateInspectorPlugin = { 5 id: 'state-inspector', 6 name: 'State', 7 render: () => ( 8 <div style={{ padding: '16px' }}> 9 <h3>Application State</h3> 10 <pre>{JSON.stringify(appState, null, 2)}</pre> 11 </div> 12 ), 13} 14 15// Custom network logger plugin 16const networkLoggerPlugin = { 17 id: 'network-logger', 18 name: 'Network', 19 render: () => <NetworkLoggerPanel />, 20} 21 22function App() { 23 return ( 24 <TanStackDevtools 25 plugins={[ 26 stateInspectorPlugin, 27 networkLoggerPlugin, 28 ]} 29 /> 30 ) 31}

Dynamic Plugin Registration

tsx
1function App() { 2 const [plugins, setPlugins] = useState<DevtoolsPlugin[]>([]) 3 4 useEffect(() => { 5 // Register plugins conditionally 6 const activePlugins: DevtoolsPlugin[] = [] 7 8 if (process.env.NODE_ENV === 'development') { 9 activePlugins.push({ 10 id: 'debug', 11 name: 'Debug', 12 render: () => <DebugPanel />, 13 }) 14 } 15 16 setPlugins(activePlugins) 17 }, []) 18 19 return <TanStackDevtools plugins={plugins} /> 20}

Vite Plugin Integration

typescript
1// vite.config.ts 2import { defineConfig } from 'vite' 3import { tanstackDevtools } from '@tanstack/devtools/vite' 4 5export default defineConfig({ 6 plugins: [ 7 tanstackDevtools(), 8 ], 9})

Production Considerations

tsx
1// Only include devtools in development 2function App() { 3 return ( 4 <> 5 {process.env.NODE_ENV === 'development' && ( 6 <TanStackDevtools plugins={plugins} /> 7 )} 8 <MyApp /> 9 </> 10 ) 11} 12 13// Or use lazy loading 14const TanStackDevtools = lazy(() => 15 import('@tanstack/react-devtools').then((m) => ({ default: m.TanStackDevtools })) 16)

Framework Support

FrameworkPackageStatus
React@tanstack/react-devtoolsAlpha
Solid@tanstack/solid-devtoolsPlanned
Vue@tanstack/vue-devtoolsPlanned
Angular@tanstack/angular-devtoolsPlanned

Features

  • Unified Panel - Single interface for all TanStack debugging
  • Real-time Updates - Live monitoring of state changes
  • Plugin Architecture - Extensible with custom and third-party plugins
  • Built-in Plugins - Query, Router, and AI devtools panels
  • Lightweight - Built with Solid.js for minimal overhead
  • Type-safe - Full TypeScript support for plugin definitions
  • Framework-agnostic Core - Plugin logic works across frameworks

Best Practices

  1. Conditionally include in production - use environment checks or code splitting
  2. Use specific plugins rather than loading all available ones
  3. Give plugins unique IDs to prevent conflicts
  4. Keep plugin render functions lightweight - avoid expensive computations
  5. Use the Vite plugin for automatic setup in Vite-based projects
  6. Combine Query + Router + AI plugins for full-stack TanStack debugging
  7. Create domain-specific plugins for app-level state inspection
  8. Use AI devtools when debugging streaming, tool calls, or token usage

Common Pitfalls

  • Including devtools in production builds without tree-shaking
  • Using duplicate plugin IDs (causes rendering conflicts)
  • Heavy render functions in plugins (slows down the devtools panel)
  • Forgetting to wrap with QueryClientProvider when using Query plugin
  • Not passing the router instance to Router devtools panel

常见问题与安装步骤

与页面结构化数据保持一致,便于搜索引擎理解。

安装步骤

  1. 1

    打开终端

    在你的项目目录中打开终端或命令行。

  2. 2

    执行安装命令

    运行:npx killer-skills add DreamEcho100/budget-tracker。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3

    开始使用技能

    Tanstack Devtools 已启用,可立即在当前项目中调用。

? FAQ

Tanstack Devtools 是什么?
安装 Tanstack Devtools,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。
如何安装 Tanstack Devtools?
运行命令:npx killer-skills add DreamEcho100/budget-tracker。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。
Tanstack Devtools 适用于哪些场景?
典型场景包括:适用任务: React: @tanstack/react-devtools、适用任务: Core: @tanstack/devtools、适用任务: npm install @tanstack/react-devtools。
Tanstack Devtools 支持哪些 IDE 或 Agent?
该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。
Tanstack Devtools 有哪些限制?
限制说明: Requires repository-specific context from the skill documentation;限制说明: Works best when the underlying tools and dependencies are already configured。

相关技能

寻找 Tanstack Devtools 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat. It covers ai, artificial-intelligence, awesome-list workflows. Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review. It covers autograd, deep-learning, gpu workflows. Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具