start-core

Configure TanStack Start projects with server functions, middleware, auth, and deployment patterns.

Updated May 26, 2026
One-click install
npx skills add https://github.com/Albo-Club/albo-os --skill start-core-albo-club
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: start-core
Source: https://github.com/Albo-Club/albo-os/tree/main/.agents/skills/tanstack-start-core
Command: npx skills add https://github.com/Albo-Club/albo-os --skill start-core-albo-club

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-start, @tanstack/react-router, vite, react, react-dom.

What problem does it solve? Building full-stack React apps with TanStack Start requires knowing where code runs (server vs client), how to create type-safe RPCs, and how to avoid framework-confusion mistakes like using Next.js patterns. This Skill provides the core mental model and setup workflow so AI agents generate correct TanStack Start code on the first attempt. ## Core Features & Use Cases - Project Bootstrap: Vite plugin ordering, router factory, root route document shell with HeadContent and Scripts, and tsconfig guidance. - Sub-Skill Routing: A decision tree that directs work to specialized sub-skills for server functions, middleware, auth primitives, server routes, execution model, and deployment. - Mistake Prevention: Explicit warnings against isomorphic-loader secret leaks, missing Scripts components, verbatimModuleSyntax, and Next.js/Remix pattern contamination. - Use Case: When scaffolding a new TanStack Start route that loads data from a database, the Skill ensures the query goes inside createServerFn, the loader calls it directly, and auth is enforced in the handler rather than relying on a route guard. ## Quick Start Ask the agent to scaffold a new TanStack Start route with a server function that loads data and enforces authentication.

Frequently Asked Questions about start-core

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

FAQPage Schema
How do I run server-only code in TanStack Start?

Use createServerFn to define a type-safe RPC that runs exclusively on the server. Route loaders are isomorphic and run on both server and client, so database queries, secrets, and filesystem access must go inside a createServerFn handler, never directly in a loader.

How do I set up a TanStack Start project from scratch?

Install @tanstack/react-start, @tanstack/react-router, react, and react-dom, then configure Vite with tanstackStart() before the React plugin. Create a getRouter factory, a root route rendering HeadContent, Outlet, and Scripts, and let the build generate routeTree.gen.ts.

Does TanStack Start support Next.js patterns like getServerSideProps?

No. TanStack Start does not use getServerSideProps, "use server" directives, or app/layout.tsx conventions. Server-only logic uses createServerFn, routes use createFileRoute in src/routes, and data flows through loaders calling server functions.

Why is my TanStack Start page not hydrating on the client?

Hydration fails when the Scripts component is missing from the root route's body element. Ensure RootComponent renders HeadContent in the head and both Outlet and Scripts inside the body of the document shell.

Does a beforeLoad route guard protect my server functions?

No. A beforeLoad redirect only protects the route's UI; server functions are callable endpoints reachable directly via HTTP. Enforce authentication inside the handler or via middleware on every createServerFn that touches private data.

Where can I deploy a TanStack Start application?

TanStack Start deploys to Cloudflare Workers, Netlify, Vercel, Node.js, Docker, Bun, and Railway via Vite and Nitro. Cloudflare Workers requires the nodejs_compat compatibility flag and per-request environment variable reads.