Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

tanstack-integrationtanstack 集成

Agent Skill

tanstack-integration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,152

周安装

48

GitHub Stars

63

下载量

384
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tanstack-integration(tanstack 集成)
来源仓库:https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations
仓库路径:skills/tanstack-integration
安装命令:
npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill tanstack-integration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill tanstack-integration

简介

tanstack-integration 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

TanStack Integration — Strategic Library Adoption

Philosophy: Avoid "man with a hammer syndrome" (to whom everything appears as a nail). Start vanilla, then strategically adopt TanStack where it provides clear benefits. Timing: Use this AFTER your app is already working pretty well in vanilla Next.js/React/Tailwind.

What is TanStack?

TanStack is a set of high-quality libraries for web applications:

LibraryPurpose
TanStack QueryServer state management, caching, synchronization
TanStack TableHeadless table/grid logic
TanStack FormForm state management and validation
TanStack RouterType-safe routing
TanStack VirtualVirtualization for large lists
TanStack RangerRange/slider components

The Anti-Pattern: Premature Adoption

Don't do this:

  1. Start new project
  2. Immediately install all TanStack libraries
  3. Force everything through TanStack patterns
  4. End up with over-engineered code

Why it's bad:

  • Not every feature needs TanStack
  • Adds complexity where simple solutions work
  • Makes code harder to understand for no benefit
  • "Man with a hammer" sees every problem as a nail

The Correct Pattern: Strategic Adoption

Do this instead:

  1. Build with vanilla Next.js 16, React 19, Tailwind
  2. Get the app working well
  3. Run the TanStack analysis prompt
  4. Adopt TanStack only where it clearly improves things
  5. Repeat several rounds

THE EXACT PROMPT — TanStack Analysis

Ok, I want you to look through the ENTIRE project and look for areas where, if we leveraged one of the many TanStack libraries (e.g., query, table, forms, etc), we could make part of the code much better, simpler, more performant, more maintainable, elegant, shorter, more reliable, etc. Use ultrathink

When to Use Each TanStack Library

TanStack Query

Good candidates:

  • API calls that need caching
  • Data that's fetched frequently
  • Optimistic updates
  • Background refetching
  • Pagination with caching
  • Infinite scroll

Skip if:

  • Simple one-time fetches
  • Static data
  • Data that doesn't need synchronization

TanStack Table

Good candidates:

  • Complex data tables with sorting/filtering
  • Tables with pagination
  • Column resizing/reordering
  • Row selection
  • Expandable rows
  • Server-side data tables

Skip if:

  • Simple static tables
  • Tables with < 20 rows
  • No interactivity needed

TanStack Form

Good candidates:

  • Complex multi-step forms
  • Forms with complex validation
  • Forms with dynamic fields
  • Forms with async validation
  • Wizard-style workflows

Skip if:

  • Simple contact forms
  • Forms with 3-4 fields
  • Basic validation needs

TanStack Router

Good candidates:

  • Large apps needing type-safe routing
  • Complex nested routes
  • Route-based code splitting
  • Search params management

Skip if:

  • Using Next.js App Router (already good)
  • Simple navigation needs
  • Few routes

TanStack Virtual

Good candidates:

  • Lists with 1000+ items
  • Infinite scroll views
  • Large data grids
  • Chat message lists

Skip if:

  • Lists with < 100 items
  • Already using windowing elsewhere
  • Performance is fine without it

Integration Workflow

Step 1: Get App Working

Build your app with vanilla patterns first:

  • fetch or axios for API calls
  • Native form handling
  • Simple HTML tables
  • Next.js routing

Step 2: Run Analysis

Use the TanStack analysis prompt with Claude Code + Opus 4.5 or Codex + GPT 5.2 (High reasoning effort).

Step 3: Evaluate Suggestions

The model will identify opportunities. For each:

  • Does the complexity justify the benefit?
  • Is the current solution actually problematic?
  • Will this improve maintainability?

Step 4: Selective Adoption

Only adopt where there's clear benefit. It's fine to:

  • Use TanStack Query but not Table
  • Use Table for one complex table, not all tables
  • Mix vanilla and TanStack approaches

Step 5: Repeat

Run the analysis again after changes. New opportunities may emerge.


Best Models for This Task

ModelConfiguration
Claude Code + Opus 4.5Use ultrathink
Codex + GPT 5.2High or Extra-High reasoning effort

Example Improvements

Before: Manual Data Fetching

// Vanilla approach
const [data, setData] = useState(null);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);

useEffect(() => {
  fetch('/api/users')
    .then(res => res.json())
    .then(setData)
    .catch(setError)
    .finally(() => setLoading(false));
}, []);

After: TanStack Query

// TanStack Query approach
const { data, isLoading, error } = useQuery({
  queryKey: ['users'],
  queryFn: () => fetch('/api/users').then(res => res.json()),
});

Benefits:

  • Built-in caching
  • Automatic refetching
  • Request deduplication
  • DevTools support

Before: Complex Table Logic

// Vanilla approach with manual sorting, filtering, pagination
// ... 200+ lines of state management

After: TanStack Table

// TanStack Table handles sorting, filtering, pagination
const table = useReactTable({
  data,
  columns,
  getCoreRowModel: getCoreRowModel(),
  getSortedRowModel: getSortedRowModel(),
  getFilteredRowModel: getFilteredRowModel(),
  getPaginationRowModel: getPaginationRowModel(),
});

Benefits:

  • Headless (you control the UI)
  • All table logic handled
  • Consistent behavior
  • Much less code

Creating Beads for TanStack Work

br create "Evaluate TanStack Query opportunities" -t enhancement -p 3
br create "Migrate user data fetching to TanStack Query" -t enhancement -p 2
br create "Implement data table with TanStack Table" -t feature -p 2
br create "Add TanStack Virtual to chat message list" -t performance -p 2

Complete Prompt Reference

TanStack Analysis

Ok, I want you to look through the ENTIRE project and look for areas where, if we leveraged one of the many TanStack libraries (e.g., query, table, forms, etc), we could make part of the code much better, simpler, more performant, more maintainable, elegant, shorter, more reliable, etc. Use ultrathink

Focused Query Analysis

Look through the project for data fetching patterns that would benefit from TanStack Query. Consider caching needs, refetching patterns, and optimistic updates. Identify the top 3 opportunities. Use ultrathink.

Focused Table Analysis

Look through the project for table/grid components that would benefit from TanStack Table. Consider sorting, filtering, pagination, and column management needs. Identify candidates. Use ultrathink.

Tips

  1. Don't over-adopt — Some vanilla patterns are fine
  2. Measure the benefit — Does it actually improve the code?
  3. Consider team familiarity — TanStack has a learning curve
  4. Check bundle size — Only import what you need
  5. Read the docs — TanStack documentation is excellent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.3%
按下载量换算105

Gemini CLI

25.64%
按下载量换算98

Antigravity

16.73%
按下载量换算64

OpenCode

13.55%
按下载量换算52

Codex

7.67%
按下载量换算29

windsurf

3.71%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills