tanstack-start
Installation
SKILL.md
TanStack Start
Use this skill to apply current, source-backed TanStack guidance. Keep answers aligned with installed package source first, official TanStack docs second, and package-shipped skills third. Read references/current-authority.md when APIs, versions, CLI commands, or source freshness materially affect the task.
Decision Tree
- Need DB, secret, filesystem, or private API work? Use a server function or server route; never put it directly in a loader.
- Need same-origin app RPC? Use
createServerFn(...).validator(...).handler(...). - Need public or cross-origin HTTP? Use Start server routes through route
server.handlers. - Need auth? Enforce it in server functions/routes or middleware;
beforeLoadis UX only. - Need to know where code runs? Read
rules/execution-model.mdbefore designing loaders.