start-core

Scaffolds and configures TanStack Start projects with Vite plugin wiring and router setup.

1|Updated Jul 29, 2026
One-click install
npx skills add https://github.com/fusengine/kimi-code --skill start-core-fusengine
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: start-core
Source: https://github.com/fusengine/kimi-code/tree/main/plugins/tanstack-start-expert/skills/start-core
Command: npx skills add https://github.com/fusengine/kimi-code --skill start-core-fusengine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up a TanStack Start project involves non-obvious wiring: plugin order in the Vite config, a getRouter() factory, a root route document shell, and a generated route tree that must never be edited. Missteps cause blank pages, missing hydration, or server code leaking into the client bundle, and developers coming from Next.js often apply patterns that do nothing in Start. ## Core Features & Use Cases - Project Scaffolding Guidance: Covers dependency installation, package.json scripts, tsconfig settings, and both Vite and Rsbuild plugin configuration for @tanstack/react-start v1.166.2. - Project Anatomy Reference: Explains the two required hand-written files (src/router.tsx and src/routes/__root.tsx) plus the generated routeTree.gen.ts, including the mandatory HeadContent, Outlet, and Scripts components. - Setup Troubleshooting: Diagnoses common failures such as reversed plugin order, missing <Scripts />, verbatimModuleSyntax leaks, and Next.js pattern misuse, with a symptom-to-cause triage table. - Use Case: You are starting a new full-stack React app with TanStack Start and the dev server renders a blank page. This Skill identifies that the React Vite plugin was placed before tanstackStart() and provides the corrected config plus a complete minimal project template. ## Quick Start Ask the agent to scaffold a minimal TanStack Start project with Vite config, router factory, and root route, then verify the setup against the common mistakes checklist.

Frequently Asked Questions about start-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a TanStack Start project with Vite?▼

Install @tanstack/react-start, @tanstack/react-router, react, and vite, then add tanstackStart() before viteReact() in vite.config.ts. Create src/router.tsx with a getRouter() factory and src/routes/__root.tsx as the document shell; the plugin generates routeTree.gen.ts on first dev run.

How to create a new TanStack Start app from scratch?▼

Run npx @tanstack/cli@latest create to scaffold a working project, or clone an official example with npx gitpick from the TanStack router repository. Alternatively, assemble the minimal project manually using the package.json, tsconfig, vite config, router, and root route files.

Why is my TanStack Start page blank or not interactive?▼

A blank or inert page usually means the React Vite plugin was placed before tanstackStart(), or <Scripts /> is missing from the root route's body. Without <Scripts />, the client bundle never loads, so SSR HTML renders but hydration and event handlers never activate.

Does TanStack Start support Rsbuild instead of Vite?▼

Yes, TanStack Start supports Rsbuild as an alternative bundler via the @tanstack/react-start/plugin/rsbuild entry. With Rsbuild, the public environment variable prefix is PUBLIC_ instead of VITE_.

Can I use Next.js patterns like getServerSideProps in TanStack Start?▼

No, TanStack Start is built on TanStack Router and Vite, not Next.js. getServerSideProps, "use server" directives, and app/layout.tsx do nothing; use loaders, createServerFn for server-only code, and src/routes/__root.tsx as the document shell instead.

Why should verbatimModuleSyntax be disabled in TanStack Start?▼

Enabling verbatimModuleSyntax in tsconfig causes server bundles to leak into the client bundle. Keep it omitted or set to false so server-only code stays out of the browser build.