skills/vite-tanstack/SKILL.md
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.
npx skillsauth add jsonlee12138/prompts vite-tanstackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provides configuration references for TanStack libraries in a Vite + React + TypeScript project.
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.
From $ARGUMENTS:
router, query, form, table (space-separated, any combination)all — load all four modulesExamples:
/vite-tanstack router query → load router.md + query.md/vite-tanstack all → load all four references/vite-tanstack → ask which modules are neededdependencies:
@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)
In vite.config.ts, always register the devtools plugin:
import { devtools } from '@tanstack/devtools-vite';
export default defineConfig({
plugins: [
devtools({
removeDevtoolsOnBuild: true,
}),
// ... other plugins
],
});
In main.tsx, the TanStackDevtools component wraps all module-specific devtools panels as plugins:
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.
Load these based on requested modules:
When reviewing or writing TanStack config code, verify:
@tanstack/devtools-vite plugin registered in vite.config.ts with removeDevtoolsOnBuild: trueTanStackDevtools component present in render tree with appropriate module panelsdevelopment
Use when creating, editing, or validating Makefiles. Provides templates for Go, Node, Python, Docker, and Monorepo projects with self-documenting help targets. Also validates existing Makefiles against conventions. Triggers on: Makefile, makefile, make help, validate makefile, lint makefile.
development
Unified design workflow router for critique, accessibility review, developer handoff, design system work, UX copy, user research, and research synthesis. Use when users ask naturally for design feedback, mockup review, a11y audit, handoff specs, UX writing, research planning, research synthesis, or mention Figma, Pencil, or HTML design workflows and should not need to invoke separate sub-skills manually.
development
Use when creating or debugging GitHub Actions workflows that publish npm packages with trusted publishing / OIDC. Triggers on npm publish in CI, ENEEDAUTH, E404 or E422 during publish, tag-triggered releases, setup-node auth behavior, or provenance issues in public vs private GitHub repositories.
tools
Configure UnoCSS with unocss-preset-shadcn using a semi-automatic, framework-agnostic workflow. Use when setting up or updating UnoCSS + shadcn integration, deciding monorepo vs single-project component destinations, enforcing peerDependencies in monorepos, and requiring shadcn MCP + manual component creation mode.