This is a quick reference for SvelteKit's data loading and form handling patterns. It covers the essential decision points: when to use +page.server.ts versus +page.ts, how to structure load functions, and the proper way to handle form actions with fail(), redirect(), and error(). The included example shows a typical server-side load with form action, and it links out to deeper references on serialization rules and invalidation patterns. It's lean by design, meant to be the cheat sheet you keep open while wiring up routes, not a full tutorial. Good for when you know SvelteKit basics but need to double check the data flow conventions.
npx skills add https://github.com/spences10/svelte-skills-kit --skill sveltekit-data-flow