What problem does it solve? Mixing raw database logic with client-callable server function wrappers in one file causes import errors, security leaks, and inconsistent patterns. This Skill enforces a two-file convention so server-side code in a TanStack Start project stays organized and safe. ## Core Features & Use Cases - Two-File Convention: Generates a server.ts file for raw Prisma/auth logic and a functions.ts file for createServerFn wrappers under the owning domain in src/app/. - Auth & Validation Patterns: Applies authMiddleware for protected functions and zod schemas via .validator() for typed input handling. - Method & Naming Rules: Enforces { method: "POST" } for mutations, GET defaults for reads, Fn suffixes on exports, and .toNumber() conversion for Prisma Decimal fields. - Use Case: When adding a new transaction creation endpoint to a finance dashboard, use this Skill to scaffold both the database function and its validated, auth-protected server function wrapper following project conventions. ## Quick Start Create a server function for adding a new transaction with description and amount fields, protected by auth middleware.