tanstack-start-server-functions
Installation
SKILL.md
TanStack Start Server Functions
Confirm the boundary
Read ../../docs/server-functions.md and ../../docs/execution-boundaries.md. Use a server function for application RPC. Use a server route when an external caller needs an ordinary HTTP contract.
Build the request pipeline
- Define one explicit serializable input object.
- Validate it before domain work.
- Resolve request context and session per request.
- Authenticate and authorize access to the concrete resource or tenant.
- Call server-only domain or data modules.
- Return an explicit serializable result, framework redirect/not-found value, or intentional raw
Response.
Preserve Start's same-origin protection. Never move secrets or trusted authorization decisions into client-callable code.