Logo di Tanstack Integration

Tanstack Integration

Community
Dicklesworthstone
tanstack-integration

Find opportunities to improve web application code using TanStack libraries (Query, Table, Form, Router, etc.). Avoid man-with-hammer syndrome by applying TanStack after vanilla implementation works.

Panoramica

Pubblicato daDicklesworthstone
Repositoryagent_flywheel_clawdbot_skills_and_integrations
Nome della skilltanstack-integration
Stelle
73
Fork
16
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Dicklesworthstone su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Tanstack Integration in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations/tree/main/skills/tanstack-integration
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations.git /tmp/agent_flywheel_clawdbot_skills_and_integrations
mkdir -p .claude/skills
cp -r /tmp/agent_flywheel_clawdbot_skills_and_integrations/skills/tanstack-integration .claude/skills/tanstack-integration
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Tanstack Integration in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Tanstack Integration non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Tanstack Integration non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

typescript
// 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

typescript
// 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

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

After: TanStack Table

typescript
// 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

bash
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

Domande frequenti

Cosa fa la skill IA Tanstack Integration?

Find opportunities to improve web application code using TanStack libraries (Query, Table, Form, Router, etc.). Avoid man-with-hammer syndrome by applying TanStack after vanilla implementation works.

Perché usare Tanstack Integration su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Tanstack Integration è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Tanstack Integration in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations/tree/main/skills/tanstack-integration. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Tanstack Integration?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Tanstack Integration?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Tanstack Integration: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Tanstack Integration è gratuita?

È pubblicata su GitHub da Dicklesworthstone. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇