Skip to content
Back to skills

Sveltekit

ASecurity

SvelteKit file-based routing (+page, +layout, +server, +error), load functions, form actions, hooks, auth patterns, adapters, endpoints, and progressive enhancement with use:enhance. Use when building SvelteKit full-stack applications.

  • 47 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 12, 2026
devopsapi

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill sveltekit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sveltekit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sveltekit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-sveltekit/badge)](https://www.skillsdirectory.com/skills/skeletorflet-sveltekit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sveltekit
description: SvelteKit file-based routing (+page, +layout, +server, +error), load functions, form actions, hooks, auth patterns, adapters, endpoints, and progressive enhancement with use:enhance. Use when building SvelteKit full-stack applications.
---

## sveltekit

SvelteKit is the full-stack framework built on Svelte.

### Core Concepts
- File-based routing: +page.svelte, +layout.svelte, +server.ts, +error.svelte
- Load functions: +page.server.ts for server data, +page.ts for universal data
- Form actions: default action, named actions, validation patterns

### Common Patterns
- use:enhance for progressive enhancement on form submissions
- Hooks: handle, handleError, handleFetch for request interception
- Cookies and session management via the SvelteKit API

### Best Practices
- Co-locate data loading with pages using load functions
- Use form actions over API routes for mutations
- Choose the right adapter for your deployment target

### Common Code Patterns
- +page.server.ts export const load for server-side data fetching
- export const actions in +page.server.ts for form handling
- hooks.server.ts for global auth and request transformation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.