What problem does it solve? TanStack Start's API route patterns changed rapidly and most AI training data contains outdated APIs like createServerFileRoute, causing generated endpoints to fail. This Skill provides the exact current patterns for adding REST endpoints in this TanStack Start + Cloudflare Workers codebase. ## Core Features & Use Cases - File-based route creation: Maps file paths like src/routes/api/items.$id.ts to URLs with dynamic $ segments and correct createFileRoute strings. - Handler structure with validation: Implements GET/POST/PUT/PATCH/DELETE handlers returning Web Response objects, with zod or drizzle-zod input validation. - Binding access: Shows how to use D1, R2, and other Cloudflare bindings via import { env } from "cloudflare:workers" or the Drizzle client. - Use Case: When asked to "add a POST endpoint at /api/orders that validates input and writes to D1", this Skill produces a working route file on the first attempt. ## Quick Start Ask the agent to add a new API endpoint, for example: create a GET and POST route at /api/products that validates the request body and stores items in the D1 database.