Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sveltekit Apps?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-sveltekit-apps)
---
description: Build SvelteKit apps with server load functions, form actions, runes and safe separation of server-only code
profile: full
languages: typescript
tags: svelte, sveltekit, frontend, typescript
---
# SvelteKit apps
Use in projects that depend on `@sveltejs/kit`. Check whether the project is on Svelte 5 (runes) or Svelte 4 (`$:` reactivity).
## Routing and data
- Server-only work (DB, secrets) in `+page.server.ts`, `+layout.server.ts` and `+server.ts`.
- Return only serializable, non-secret data from `load`; use `depends`/`invalidate` for refreshes.
## Mutations
- Form actions with server-side validation; return `fail(400, {...})` with field errors.
- `use:enhance` for progressive enhancement; the form still works without JavaScript.
## State
- Runes: `$state` for state, `$derived` for computed values, `$effect` only for side effects.
- Never import `$env/static/private` or `$lib/server` from client code.
## Verify
`npm run check` (svelte-check), `npm run build` and the test suite pass; one form submits correctly with JavaScript disabled.