Mental-model reset for SvelteKit apps. Use when writing or reviewing routes, layouts, load functions, form actions, remote functions, hooks, auth, cookies, endpoints, redirects, errors, SSR, progressive enhancement, or app-level data flow. Triggers on SvelteKit, +page, +layout, +server, +page.server.ts, +layout.server.ts, hooks.server.ts, load, actions, fail(), redirect(), error(), cookies, locals, route groups, protected routes, sessions, form actions, enhance, remote functions, command(), query(), form(), getRequestEvent(), SSR, hydration, and serialization. Use svelte5 for component-level runes, snippets, accessibility, actions, transitions, and component API review.
96
95%
Does it follow best practices?
Impact
100%
1.05xAverage score across 3 eval scenarios
Passed
No known issues
Auth boundaries and route protection structure
Route group separation
100%
100%
Hooks populate only
100%
100%
Hooks throws on missing DB
70%
100%
Layout uses throw redirect
100%
100%
Layout redirect correctness
100%
100%
Endpoint self-auth
100%
100%
Endpoint returns 401 unauthorized
100%
100%
Login redirect for authenticated
100%
100%
Login throw redirect
100%
100%
Structure file present
100%
100%
TypeScript types used
100%
100%
Form action with server validation and progressive enhancement
Action in page.server.ts
100%
100%
fail() returned
100%
100%
Field-shaped errors
75%
100%
throw redirect on success
70%
100%
Server-side validation
100%
100%
Native form structure
100%
100%
Field.* error components
70%
100%
use:enhance present
100%
100%
Serializable load data
100%
100%
Schema in $lib/schemas
100%
100%
form prop used for errors
75%
100%
Data ownership, SSR safety, and load function boundaries
User data moved to server
100%
100%
No secrets in universal load
100%
100%
localStorage in effect or removed
100%
100%
No $effect for URL navigation
100%
100%
Serializable load return data
100%
100%
onMount not used for server data
100%
100%
CHANGES.md present
100%
100%
CHANGES explains server load boundary
100%
100%
CHANGES explains browser API fix
100%
100%
CHANGES explains effect/navigation fix
100%
100%
Output files present
100%
100%
d20109a
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.