Skip to content
Agentmart
Submit a tool

vite-tanstack

TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects.

Skill by JsonLee12138

IndexedApache-2.0★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jsonlee12138-vite-tanstack

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects. Covers Vite plugin setup, main.tsx registration, DevTools configuration, and editor settings. Use when setting up or reviewing TanStack config in a Vite project. Triggers on: vite-tanstack, tanstack config, tanstack router setup, tanstack query setup, tanstack form setup, tanstack table setup.

Use cases: frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/vite-tanstack

What's inside

Skill name
vite-tanstack
Description
TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects. Covers Vite plugin setup, main.tsx registration, DevTools configuration, and editor settings. Use when setting up or reviewing TanStack config in a Vite project. Triggers on: vite-tanstack, tanstack config, tanstack router setup, tanstack query setup, tanstack form setup, tanstack table setup.
License
Apache-2.0
Instructions
106 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • form.md · references/
  • query.md · references/
  • router.md · references/
  • table.md · references/

SKILL.md (first lines)

# Vite + TanStack Configuration Guide

Provides configuration references for TanStack libraries in a Vite + React + TypeScript project.

## Modules

Four optional modules — load only what's needed:

| Module | What it covers |
|--------|---------------|
| **router** | Vite plugin, createRouter, RouterProvider, type registration, VSCode settings |
| **query** | QueryClient init, QueryClientProvider |
| **form** | Form provider setup |
| **table** | react-table initialization |

All modules share a unified DevTools setup via `@tanstack/react-devtools` + `@tanstack/devtools-vite`.

## Argument Parsing

From `$ARGUMENTS`:
- Module names: `router`, `query`, `form`, `table` (space-separated, any combination)
- `all` — load all four modules
- No arguments — ask user which modules they need using AskUserQuestion (multiSelect)

**Examples:**
- `/vite-tanstack router query` → load router.md + query.md
- `/vite-tanstack all` → load all four references
- `/vite-tanstack` → ask which modules are needed

## Shared Configuration

### Package Dependencies

**dependencies:**
```
@tanstack/react-devtools
@tanstack/react-router           (if router)
@tanstack/react-router-devtools  (if router)
@tanstack/react-query            (if query)
@tanstack/react-query-devtools   (if query)
@tanstack/react-form             (if form)
@tanstack/react-form-devtools    (if form)
@tanstack/react-table            (if table)
```

**devDependencies:**
```
@tanstack/devtools-vite
@tanstack/router-plugin          (if router)
```

### Vite Plugin: Unified DevTools

In `vite.config.ts`, always register the devtools plugin:

```ts
import { devtools } from '@tanstack/devtools-vite';

export default defineConfig({
  plugins: [
    devtools({
      removeDevtoolsOnBuild: true,
    }),
    // ... other plugins
  ],
});
```

### main.tsx: TanStackDevtools Component

In `main.tsx`, the `TanStackDevtools` component wraps all module-specific devtools panels as plugins:

```tsx
import { TanStackDevtools } from '@tanstack/react-devtools';

// Inside render tree:
<TanStackDevtools
  plugins={[
    // Add each module's devtools panel as a plugin here
    // See individual module references for specifics
  ]}
/>
```

**Component nesting order:** `QueryClientProvider` wraps `TanStackDevtools` + `RouterProvider`. Each module reference shows its specific position.

## Module References

Load these based on requested modules:

- **Router**: See [references/router.md](references/router.md) for Vite plugin, router creation, type registration, VSCode settings, and Router DevTools panel
- **Query**: See [references/query.md](references/query.md) for QueryClient initialization, provider setup, and Query DevTools panel
- **Form**: See [references/form.md](references/form.md) for Form provider setup and Form DevTools panel
- **Table**: See [references/table.md](references/table.md) for react-table initialization

## Compliance Checklist

When reviewing or writing TanStack config code, verify:

- [ ] `@tanstack/devtools-vite` plugin registered in `vite.config.ts` with `removeDevtoolsOnBuild: true`
- [ ] `TanStackDevtools` component present in render tree with appropriate module panels
- [ ] Each module's provider is registered in correct nesting order
- [ ] TypeScript module augmentation declared for router (if using router)
- [ ] VSCode settings configured for generated files (if using router)

From JsonLee12138/prompts, Apache-2.0.

More from JsonLee12138/prompts

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Feb 24, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JsonLee12138

Cite this page

vite-tanstack skill. Agent Mart. https://agentmart.dev/skills/jsonlee12138-vite-tanstack (last updated 2026-10-24)