Skip to content

sveltekit

Context skill for SvelteKit applications using a feature-slice architecture with Svelte 5 runes.

Philosophy

Features live in libs/feature-X/ and each owns its view models (Zod schemas), services (data transforms), components (pure UI), and a server.ts entry called from +page.server.ts. Routes under apps/web/src/routes/ are thin: they call the feature's server function, pass data to components, and own form actions. The app shell owns layout, navigation, and session helpers. This layering keeps route files small and makes features independently testable.

Recipes

Foundation — understand the system before building pieces:

Building blocks:

Data layer:

Forms and actions:

Auth:

Svelte 5 patterns:

Quality:

Config:

References

Released under the MIT License.