svelte

Optimize Svelte and SvelteKit projects for reactivity, routing, SSR, and form handling.

26|8|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/arbazkhan971/godmode --skill svelte-arbazkhan971
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte
Source: https://github.com/arbazkhan971/godmode/tree/main/skills/svelte
Command: npx skills add https://github.com/arbazkhan971/godmode --skill svelte-arbazkhan971

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers through correct Svelte and SvelteKit architecture, reactivity choices, routing, form handling, SSR/adapter configuration, and testing to avoid performance regressions, hydration errors, and insecure server/client boundaries.

Core Features & Use Cases

  • Reactivity & Migration Guidance: Recommends runes for Svelte 5, migration strategies from legacy $: patterns, and when to keep existing implementations.
  • State & Stores Best Practices: Defines store boundaries, derived stores, and server-safe state patterns for auth, cart, and notifications.
  • Routing, Forms & SSR: Prescribes SvelteKit file-based routing, server load functions, form actions with use:enhance, adapter selection, and prerender/SSR strategies for pages.
  • Testing & Validation: Provides testing targets and checks including vitest/playwright, type safety, build validation, and strict keep/discard discipline for iterative changes.

Quick Start

Create a SvelteKit project using runes-based reactivity, add server load functions for data, set up form actions with use:enhance, configure the appropriate adapter for your host, and run the test and build checks.

Frequently Asked Questions about svelte

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate legacy Svelte 3 or 4 reactivity to Svelte 5 runes?

Migrate legacy Svelte 3 or 4 reactivity to Svelte 5 runes by evaluating existing dollar-sign patterns and replacing them with rune-based state declarations. This Skill guides migration strategies and identifies when to keep existing implementations intact.

What is the best way to handle form submissions in SvelteKit?

The best way to handle form submissions in SvelteKit is using form actions with use:enhance. This approach ensures progressive enhancement, secure server-side processing, and robust client-side validation without full page reloads.

How do I configure SvelteKit adapters for server-side rendering?

Configure SvelteKit adapters for server-side rendering by selecting the appropriate adapter for your hosting environment. This Skill prescribes adapter-specific build configurations and prerender or SSR strategies for individual pages.

Does this Svelte Skill support type-safe routing and data loading?

Yes, this Svelte Skill supports type-safe routing and data loading. It ensures type-checked code across your project by defining strict server load functions, store boundaries, and derived stores for auth and cart state.

Why does my SvelteKit app have hydration errors and insecure server boundaries?

SvelteKit hydration errors and insecure server boundaries occur from incorrect state management and improper client-server data passing. This Skill defines server-safe state patterns and strict boundaries to prevent these regressions.

What testing targets should I use for a SvelteKit application?

Use Vitest and Playwright as testing targets for a SvelteKit application. This Skill provides testing checks for type safety, build validation, and strict keep or discard discipline during iterative development changes.