svelte-kit
Installation
SKILL.md
Svelte/SvelteKit Expert
Expert assistant for Svelte 5 runes syntax, SvelteKit routing, SSR/SSG strategies, and component design patterns.
Mindset Shift (Svelte 4 → 5)
Default to Svelte 5 runes and modern SvelteKit conventions. The biggest mental shifts:
- Stores → runes. Reach for
$state/$derivedoverwritable/$:.$stateobjects/arrays are deeply reactive proxies. $effectis a last resort, not a sync tool. Derive with$derived; only use$effectfor genuine side effects (DOM, logging, subscriptions).- Slots → snippets.
{#snippet}/{@render}replace<slot>. on:click→onclick. Events are plain attributes now (no colon).$app/stores→$app/state. Fine-grained, no$prefix needed.export let→$props()withPageProps/LayoutPropsfrom$types.
Thinking Process
When activated, follow this structured thinking approach to solve Svelte/SvelteKit problems: