No slash command · from fuse-tanstack-start
Use when loading data in Start routes — isomorphic loaders, TanStack Query in a loader, mutations, or per-route SSR. Do NOT use for generic Router/Query API.
Ships in fuse-tanstack-start. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Critical rules: never touch window/localStorage at loader top level (loaders run on the server too) — gate with ssr: false/'data-only' or useEffect instead; share one queryOptions factory between ensureQueryData (loader) and useQuery (component) so cache keys match; prefetch through the router-context queryClient, never a new one; invalidate loaders/Query cache after every server-function write; and remember ssr only tightens down the route tree, a child can never loosen a parent's ssr: false back to true.
Includes templates for a Query-prefetching route and a selective-SSR route.
Do NOT use this skill for generic TanStack Router/Query API questions — route trees, search params, useQuery/useMutation basics belong to react-expert's react-tanstack-router skill.
Before ANY implementation, spawn in parallel:
src/routes/, existing loaders, router.tsx, queryClient wiring/websites/tanstack_start_framework_reactAfter implementation, run fuse-ai-pilot:sniper.
Generic TanStack Router and TanStack Query — route trees, file-based routing, search-param validation, useQuery/useMutation mechanics, cache config — are covered by react-expert's react-tanstack-router. This skill covers ONLY what is specific to Start:
context.queryClient.ensureQueryData() inside a loader (SSR prefetch + hydration)ssr: true | false | 'data-only'router.invalidate()| Start-specific feature | Description |
|---|---|
| Isomorphic loader | Route.loader runs on server (initial) AND client (navigation) — no window at top level |
| Query in loader | ensureQueryData(queryOptions) prefetches on server, useQuery reads cache in component |
| Selective SSR | ssr flag per route: full SSR, data-only, or client-only |
| Server-fn mutation | Call createServerFn handler, then router.invalidate() to refetch loaders |
window/localStorage at loader top level; gate with ssr: false/'data-only' or useEffect.queryOptions — define once, pass to BOTH ensureQueryData (loader) and useQuery (component) so the cache key matches.context.queryClient — the loader receives queryClient from router context; do not create a new client.router.invalidate() (loader data) or queryClient.invalidateQueries (Query cache).ssr inherits down and only tightens — a child cannot loosen a parent's ssr: false back to true.src/
├── router.tsx # createRouter({ context: { queryClient } })
├── routes/
│ └── posts.$postId.tsx # loader: ensureQueryData + component: useQuery
└── queries/
└── posts.ts # queryOptions factory (shared loader + component)
→ See query-loader-route.md for the complete route
| Topic | Reference | Load when |
|---|---|---|
| Isomorphic loaders | isomorphic-loaders.md | Loader touches browser API or you see hydration mismatch |
| Query in loader | query-in-loader.md | Integrating TanStack Query prefetch with a Start loader |
| Selective SSR | selective-ssr.md | Disabling/tuning SSR per route |
| Mutations | mutations.md | Writing data via server functions and refreshing the UI |
| Template | When to Use |
|---|---|
| query-loader-route.md | Route that prefetches with Query and reads in the component |
| selective-ssr-route.md | Route needing client-only render or data-only SSR |
queryOptions factories in src/queries/ and reuse them loader + componentensureQueryData promise directly from the loader (Start awaits it)ssr: 'data-only' when the component needs window but the data should still SSRlocalStorage/window at loader top level (loader also runs on the server)useEffect when the loader already primed the cachereferences/isomorphic-loaders.md (opens in a new tab)references/mutations.md (opens in a new tab)references/query-in-loader.md (opens in a new tab)references/selective-ssr.md (opens in a new tab)references/templates/query-loader-route.md (opens in a new tab)references/templates/selective-ssr-route.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-tanstack-start9 skills in this plugin
/solid-tanstack-startUse when organizing TanStack Start code, splitting oversized routes/server functions, or reviewing architecture. Do NOT use for setup or plain React SPA./start-authUse when adding auth to a TanStack Start app — route protection, server-function authorization, sessions, CSRF. Do NOT use for generic route guards./start-coreUse when scaffolding a TanStack Start project, wiring the build tool, or debugging setup (blank page, hydration, no client JS).Other plugins' skills for the same job