Sveltekit Best Practices
SvelteKit and Svelte 5 done right. Runes, load functions, form actions, SSR patterns.
Install
npx skills add ofershap/sveltekit-best-practicesInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →SvelteKit Best Practices
SvelteKit and Svelte 5 done right. Runes ($state, $derived, $effect), $props(),
$bindable(), load functions, form actions, +page.server.ts, +layout.server.ts,
hooks.server.ts, snippets, and SSR patterns.
AI coding assistants generate Svelte 4 code -
writable()stores,export letprops,$:reactive declarations,onMountdata fetching. Svelte 5 replaced all of these with runes. This plugin stops your agent from writing dead syntax.
Install
Cursor / Claude Code / Windsurf
npx skills add ofershap/sveltekit-best-practices
Or copy skills/ into your .cursor/skills/ or .claude/skills/ directory.
What's Included
| Type | Name | Description |
|---|---|---|
| Skill | sveltekit-best-practices |
14 rules for Svelte 5 runes, load functions, form actions, SSR, and more |
| Rule | best-practices |
Always-on behavioral rule that enforces Svelte 5 / SvelteKit patterns |
| Command | /audit |
Scan your codebase for Svelte 4 anti-patterns |
What Agents Get Wrong
| What the agent writes (Svelte 4) | What Svelte 5 uses |
|---|---|
writable(), readable() stores |
$state(), $derived() runes |
export let name for props |
let { name } = $props() |
$: doubled = count * 2 |
let doubled = $derived(count * 2) |
$: { sideEffect() } |
$effect(() => { sideEffect() }) |
Data fetching in onMount |
load() in +page.server.ts |
| API routes for form mutations | Form actions in +page.server.ts |
<slot /> for children |
Snippets with {@render children()} |
$app/stores for page data |
$app/state (Svelte 5) |
Related Plugins
- tailwind-best-practices - Tailwind CSS v4 patterns
- typescript-best-practices - TypeScript 5.x strict patterns
- vibe-guard - Security guardrails for SvelteKit endpoints
If this helped your workflow, a star helps others find it.
Author
License
MIT
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…